[03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:45]accept exits with 7 [03:09:45]New connection [03:09:45]New thread 3067624804 created [03:09:45]Thread 3067481444 joined [03:09:45]Waiting for new connection... [03:09:45] Sock 7.Parse request [03:09:45]Sock 7.Check first char [03:09:45]Sock 7.First char is OK [03:09:45]request: POST /json_proto HTTP/1.0 [03:09:45]Method: POST [03:09:45]URL: /json_proto [03:09:45]Method is POST - this is cgi request [03:09:45]url: /json_proto [03:09:45]query_string will be loaded in cgi processing [03:09:45]execute_cgi json_proto POST (null) [03:09:45]execute_cgi path=json_proto method=POST [03:09:45]POST find Content-Length [03:09:45]Host: 172.17.45.132:8080 [03:09:45]Content-Length: 624 [03:09:45]Content-Type: application/json [03:09:45] [03:09:45]POST finish read [03:09:45]Found Content-Length = 624 [03:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126750", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:45]execute_script... [03:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126750", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:45]POST & json_proto [03:09:45]process_json_proto [03:09:45]json parsed OK: [03:09:45]protocol is kg_v1.0 [03:09:45]action value=close_receipt [03:09:45]process_action close_receipt [03:09:45]cmd_close_receipt [03:09:45]MH_GetDate [03:09:45]Write to MH i2c: F0 00 00 AA 3D D6 [03:09:45]Write i2c OK [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 09 00 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 09 00 AA 3D 00 00 AB A9 66 E3 0B 90 66 7D [03:09:45]GetLastDocTimeStamp 1722393610 [03:09:45]current date 1722395392 [03:09:45]FM_GetShiftState [03:09:45]SAM_PROTO_GetShiftState [03:09:45]wFMCommunicate request_size=4 [03:09:45]MH_SAM_APDU [03:09:45]CAPDU: 80 13 01 00 [03:09:45]Write to MH i2c: E2 08 00 AB 3D 80 13 01 00 00 00 00 00 65 [03:09:45]Write i2c OK [03:09:45]MH_I2C_Read... [03:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:45]Read from MH i2c: E2 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: E2 0E 00 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: E2 0E 00 AB 3D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 32 [03:09:45]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:09:45]wFMCommunicate OK [03:09:45]SAM_PROTO_GetShiftState done [03:09:45]FM_GetShiftState done [03:09:45]opened in 1722384689 [03:09:45]opened+sec_in_day 1722471089 [03:09:45]quantity*price = 30000 [03:09:45]sum+1 = 30001 [03:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 17 31.07.2024 03:09 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2564 ФПД: 206746401451214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T030952&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2564&fm=206746401451214&tin=02508201610067®Number=0000000000189667&sum=30000 0 [03:09:47]StoreToDocumentArchive [03:09:47]shift 17 fd 2564 [03:09:47]save to /storage/0017/doc_00002564 [03:09:47]save last doc name /storage/0017/doc_00002564 to /storage/kkm_last_doc_name [03:09:47]save OK [03:09:47]Clear old archive folders... [03:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=268 [03:09:47]tlvbuf is B6FF9320 [03:09:47]SAM_PROTO_ClearQueue [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 09 00 00 [03:09:47]Write to MH i2c: E2 08 00 B8 3D 80 09 00 00 00 00 00 00 67 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 B8 3D 00 90 00 69 [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]SAM_PROTO_ClearQueue done [03:09:47]KKMCreateOFDPacket [03:09:47]OFDProtocolAddRootSTLVToBuf [03:09:47]FM_MakeSignedData [03:09:47]FM_MakeSignedData [03:09:47]SAM_PROTO_SignData [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 01 02 [03:09:47]Write to MH i2c: E2 08 00 B9 3D 80 0D 01 02 00 00 00 00 6F [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 B9 3D 00 90 00 6A [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]wFMCommunicate request_size=255 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 00 00 00 F4 03 04 00 00 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [03:09:47]Write to MH i2c: E2 02 01 BA 3D 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 00 00 00 F4 03 04 00 00 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 FE [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]wFMCommunicate request_size=27 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 04 0A 00 00 35 04 06 00 BC 08 E5 D1 2C CE [03:09:47]Write to MH i2c: E2 1E 00 BB 3D 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 04 0A 00 00 35 04 06 00 BC 08 E5 D1 2C CE 00 00 49 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 03 02 [03:09:47]Write to MH i2c: E2 08 00 BC 3D 80 0D 03 02 00 00 00 00 74 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 0B 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 0B 00 BC 3D 00 CB 5B 2A 90 11 F2 DC 50 90 00 84 [03:09:47]RAPDU: CB 5B 2A 90 11 F2 DC 50 90 00 [03:09:47]wFMCommunicate OK [03:09:47]SAM_PROTO_SignData done [03:09:47]FM_MakeSignedData done [03:09:47]CreateOFDProtocolMessage [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 11 00 00 [03:09:47]Write to MH i2c: E2 08 00 BD 3D 80 11 00 00 00 00 00 00 74 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 17 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 17 00 BD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C4 [03:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:09:47]wFMCommunicate OK [03:09:47]CreateOFDProtocolMessage done [03:09:47]OFDSenderStorePacket 2564 [03:09:47]StoreOFDPacket docnum=2564 [03:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 1A 49 18 01 F5 AA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 00 00 00 F4 03 04 00 00 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 0A 00 00 35 04 06 00 BC 08 E5 D1 2C CE CB 5B 2A 90 11 F2 DC 50 [03:09:47]CheckFolder [03:09:47]dirname=/storage/ofd_packets [03:09:47]CheckFolder done [03:09:47]ProducePacketName [03:09:47]name=ofd_packets/00002564 [03:09:47]NVStorageSaveData ofd_packets/00002564 [03:09:47]File name is /storage/ofd_packets/00002564 [03:09:47]Write 318 bytes [03:09:47]NVStorageSaveData done [03:09:47]OFDSenderStorePacket done [03:09:47]KKMCreateOFDPacket done [03:09:47]NVStorageSaveData kkm_last_timestamp [03:09:47]File name is /storage/kkm_last_timestamp [03:09:47]Write 4 bytes [03:09:47]NVStorageSaveData done [03:09:47]ExternCall_PrintAddStr [03:09:47]wPrintStart [03:09:47]Write to MH i2c: 01 00 00 BE 3D FB [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 BE 3D 00 00 00 00 00 FF 0F 10 [03:09:47]RasterBufferAndPrint [03:09:47]line Счет N : (3)126750 [03:09:47]line ИНН: 02508201610067 [03:09:47]line Контрольно-Кассовый Чек [03:09:47]line ПРОДАЖА [03:09:47]line Товар: 4600721021627 [03:09:47]line Пиво БАД 0,5л ст [03:09:47]line 2.000 * 150.00 [03:09:47]line = 300.00 [03:09:47]line НДС 12% НСП 1% [03:09:47]line > о реализуемом товаре [03:09:47]line ИТОГО: 300.00 [03:09:47]line НСП 1% : 2.65 [03:09:47]line НДС 12% : 31.86 [03:09:47]line Наличными: 300.00 [03:09:47]line Безнал.: 0.00 [03:09:47]line Место: АЗС № 127 "Партнер Нефть" [03:09:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:09:47]line СНО: Общий режим [03:09:47]line Чек 17 31.07.2024 03:09 [03:09:47]line Смена: 17 ФФД: 1.0 [03:09:47]line ЗНМ: 0300000161 [03:09:47]line РНМ: 0000000000189667 [03:09:47]line Версия ККМ: v1.0 [03:09:47]line ФМ: 0000000002094248 [03:09:47]line ФД: 2564 [03:09:47]line ФПД: 206746401451214 [03:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T030952&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2564&fm=206746401451214&tin=02508201610067®Number=0000000000189667&sum=30000 [03:09:47]line 0 [03:09:47]OFD Sender: Processing packet 2564 [packets to send 1, broken 0] [03:09:47]ProducePacketName [03:09:47]name=ofd_packets/00002564 [03:09:47]OFD Sender: To server: pG, [03:09:47]CommunicateWithHost lk.salyk.kg:30040 [03:09:47]ConnectInit lk.salyk.kg [03:09:47]written 0, free lines is 4095 [03:09:48]Connected sock=10 [03:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 1A 49 18 01 F5 AA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 00 00 00 F4 03 04 00 00 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 0A 00 00 35 04 06 00 BC 08 E5 D1 2C CE CB 5B 2A 90 11 F2 DC 50 [03:09:48]Write to MH i2c: 01 00 00 E6 3D 23 [03:09:48]Write i2c OK [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: 01 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: 01 07 00 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: 01 07 00 E6 3D 00 00 00 00 00 0F 0D 46 [03:09:48]RasterBufferAndPrint [03:09:48]line [03:09:48]line [03:09:48]line [03:09:48]line [03:09:48]line [03:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F F7 47 00 EB 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 0A 00 00 F4 03 04 00 68 56 A9 66 B6 04 01 00 00 23 71 99 26 CE 3A 0B 98 [03:09:48]CommunicateWithHost err = 0 [03:09:48]CheckOFDResponse [03:09:48]1017 (14) - 77093643461234 [03:09:48]1041 (16) - 0000000002094248 [03:09:48]1040 (4) - 2564 [03:09:48]1012 (4) - 30.07.2024 21:08 [03:09:48]1206 (1) - 0 [03:09:48]OFD Sender: Remove packet 2564 [03:09:48]ProducePacketName [03:09:48]name=ofd_packets/00002564 [03:09:48]NVStorageDeleteData [03:09:48]written 0, free lines is 3362 [03:09:48]MH_Cut [03:09:48]Write to MH i2c: D1 01 00 ED 3D 01 FC [03:09:48]Write i2c OK [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: D1 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: D1 01 00 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: D1 01 00 ED 3D 00 FB [03:09:48]Write to MH i2c: 01 00 00 EE 3D 2B [03:09:48]Write i2c OK [03:09:48]MH_I2C_Read... [03:09:48]OFD Sender: No OFD packet to send [03:09:48]*** Cut start [03:09:48]*** Partial cut [03:09:48]*** CUTSNS_PIN = 1 [03:09:49]*** CUTSNS_PIN = 0 [03:09:49]*** Brake cut motor [03:09:49]Read from MH i2c: 01 [03:09:49]MH_I2C_Read... [03:09:49]*** Stop cut motor [03:09:49]*** Cut end [03:09:49]Read from MH i2c: 01 07 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: 01 07 00 EE 3D 00 00 00 00 00 FF 0F 40 [03:09:49]process_action close_receipt done [03:09:49]requested_data is exist [03:09:49]produce_requested_data [03:09:49]requested_item fm.sn is exist - process it [03:09:49]wFMCommunicate request_size=4 [03:09:49]MH_SAM_APDU [03:09:49]CAPDU: 80 11 00 00 [03:09:49]Write to MH i2c: E2 08 00 EF 3D 80 11 00 00 00 00 00 00 A6 [03:09:49]Write i2c OK [03:09:49]MH_I2C_Read... [03:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:49]Read from MH i2c: E2 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 17 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 17 00 EF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [03:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:09:49]wFMCommunicate OK [03:09:49]requested_item fd.num is exist - process it [03:09:49]SAM_PROTO_GetFieldsCounters [03:09:49]wFMCommunicate request_size=4 [03:09:49]MH_SAM_APDU [03:09:49]CAPDU: 80 13 00 00 [03:09:49]Write to MH i2c: E2 08 00 F0 3D 80 13 00 00 00 00 00 00 A9 [03:09:49]Write i2c OK [03:09:49]MH_I2C_Read... [03:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:49]Read from MH i2c: E2 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 62 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 62 00 F0 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 0A 00 00 0E 04 04 00 11 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 25 [03:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 0A 00 00 0E 04 04 00 11 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 [03:09:49]wFMCommunicate OK [03:09:49]SAM_PROTO_GetFieldsCounters done [03:09:49]requested_item shift.num is exist - process it [03:09:49]requested_item shift.opened is exist - process it [03:09:49]req_shift_opened [03:09:49]FM_GetShiftState [03:09:49]SAM_PROTO_GetShiftState [03:09:49]wFMCommunicate request_size=4 [03:09:49]MH_SAM_APDU [03:09:49]CAPDU: 80 13 01 00 [03:09:49]Write to MH i2c: E2 08 00 F1 3D 80 13 01 00 00 00 00 00 AB [03:09:49]Write i2c OK [03:09:49]MH_I2C_Read... [03:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:49]Read from MH i2c: E2 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 0E 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 0E 00 F1 3D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 78 [03:09:49]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:09:49]wFMCommunicate OK [03:09:49]SAM_PROTO_GetShiftState done [03:09:49]FM_GetShiftState done [03:09:49]req_shift_opened done [03:09:49]requested_item shift.open_date is exist - process it [03:09:49]req_shift_open_date [03:09:49]req_shift_open_date done [03:09:49]produce_requested_data done [03:09:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2564,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:09:49]process_action_free close_receipt [03:09:49]json_value_free [03:09:49]json_value_free done [03:09:49]process_json_proto returns [03:09:49]Send response to host [03:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2564,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:09:49]free response buf [03:09:49]execute_script done [03:09:49]execute_script returns [03:09:49]free content buf [03:09:49]Sock 7.Close socket [03:09:49]Sock 7.Thread stoped [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:11]accept exits with 9 [03:12:11]New connection [03:12:11]New thread 3067481444 created [03:12:11]Thread 3067624804 joined [03:12:11]Waiting for new connection... [03:12:11] Sock 9.Parse request [03:12:11]Sock 9.Check first char [03:12:11]Sock 9.First char is OK [03:12:11]request: POST /json_proto HTTP/1.0 [03:12:11]Method: POST [03:12:11]URL: /json_proto [03:12:11]Method is POST - this is cgi request [03:12:11]url: /json_proto [03:12:11]query_string will be loaded in cgi processing [03:12:11]execute_cgi json_proto POST (null) [03:12:11]execute_cgi path=json_proto method=POST [03:12:11]POST find Content-Length [03:12:11]Host: 172.17.45.132:8080 [03:12:11]Content-Length: 709 [03:12:11]Content-Type: application/json [03:12:11] [03:12:11]POST finish read [03:12:11]Found Content-Length = 709 [03:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126751", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:11]execute_script... [03:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126751", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:11]POST & json_proto [03:12:11]process_json_proto [03:12:11]json parsed OK: [03:12:11]protocol is kg_v1.0 [03:12:11]action value=close_receipt [03:12:11]process_action close_receipt [03:12:11]cmd_close_receipt [03:12:11]MH_GetDate [03:12:11]Write to MH i2c: F0 00 00 F2 3D 1E [03:12:11]Write i2c OK [03:12:11]MH_I2C_Read... [03:12:11]Read from MH i2c: F0 [03:12:11]MH_I2C_Read... [03:12:11]Read from MH i2c: F0 09 00 [03:12:11]MH_I2C_Read... [03:12:11]Read from MH i2c: F0 09 00 F2 3D 00 92 AB A9 66 E3 0B 90 66 57 [03:12:11]GetLastDocTimeStamp 1722395392 [03:12:11]current date 1722395538 [03:12:11]FM_GetShiftState [03:12:11]SAM_PROTO_GetShiftState [03:12:11]wFMCommunicate request_size=4 [03:12:11]MH_SAM_APDU [03:12:11]CAPDU: 80 13 01 00 [03:12:11]Write to MH i2c: E2 08 00 F3 3D 80 13 01 00 00 00 00 00 AD [03:12:11]Write i2c OK [03:12:11]MH_I2C_Read... [03:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:11]Read from MH i2c: E2 [03:12:11]MH_I2C_Read... [03:12:11]Read from MH i2c: E2 0E 00 [03:12:11]MH_I2C_Read... [03:12:11]Read from MH i2c: E2 0E 00 F3 3D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7A [03:12:11]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:12:11]wFMCommunicate OK [03:12:11]SAM_PROTO_GetShiftState done [03:12:11]FM_GetShiftState done [03:12:11]opened in 1722384689 [03:12:11]opened+sec_in_day 1722471089 [03:12:11]quantity*price = 9500 [03:12:11]sum+1 = 9501 [03:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 18 31.07.2024 03:12 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2565 ФПД: 234931690856610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2565&fm=234931690856610&tin=02508201610067®Number=0000000000189667&sum=9500 0 [03:12:12]StoreToDocumentArchive [03:12:12]shift 17 fd 2565 [03:12:12]save to /storage/0017/doc_00002565 [03:12:12]save last doc name /storage/0017/doc_00002565 to /storage/kkm_last_doc_name [03:12:12]save OK [03:12:12]Clear old archive folders... [03:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=304 [03:12:12]tlvbuf is B6E4C520 [03:12:12]SAM_PROTO_ClearQueue [03:12:12]wFMCommunicate request_size=4 [03:12:12]MH_SAM_APDU [03:12:12]CAPDU: 80 09 00 00 [03:12:12]Write to MH i2c: E2 08 00 00 3E 80 09 00 00 00 00 00 00 B0 [03:12:12]Write i2c OK [03:12:12]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 00 3E 00 90 00 B2 [03:12:13]RAPDU: 90 00 [03:12:13]wFMCommunicate OK [03:12:13]SAM_PROTO_ClearQueue done [03:12:13]KKMCreateOFDPacket [03:12:13]OFDProtocolAddRootSTLVToBuf [03:12:13]FM_MakeSignedData [03:12:13]FM_MakeSignedData [03:12:13]SAM_PROTO_SignData [03:12:13]wFMCommunicate request_size=4 [03:12:13]MH_SAM_APDU [03:12:13]CAPDU: 80 0D 01 02 [03:12:13]Write to MH i2c: E2 08 00 01 3E 80 0D 01 02 00 00 00 00 B8 [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 01 3E 00 90 00 B3 [03:12:13]RAPDU: 90 00 [03:12:13]wFMCommunicate OK [03:12:13]wFMCommunicate request_size=255 [03:12:13]MH_SAM_APDU [03:12:13]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 92 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 [03:12:13]Write to MH i2c: E2 02 01 02 3E 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 92 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 00 00 6D [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 02 3E 00 90 00 B4 [03:12:13]RAPDU: 90 00 [03:12:13]wFMCommunicate OK [03:12:13]wFMCommunicate request_size=63 [03:12:13]MH_SAM_APDU [03:12:13]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 0A 00 00 35 04 06 00 D5 AB 4B FA E0 A2 [03:12:13]Write to MH i2c: E2 42 00 03 3E 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 0A 00 00 35 04 06 00 D5 AB 4B FA E0 A2 00 00 64 [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 03 00 03 3E 00 90 00 B5 [03:12:13]RAPDU: 90 00 [03:12:13]wFMCommunicate OK [03:12:13]wFMCommunicate request_size=4 [03:12:13]MH_SAM_APDU [03:12:13]CAPDU: 80 0D 03 02 [03:12:13]Write to MH i2c: E2 08 00 04 3E 80 0D 03 02 00 00 00 00 BD [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 0B 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 0B 00 04 3E 00 5D 62 C5 90 85 56 38 EB 90 00 D0 [03:12:13]RAPDU: 5D 62 C5 90 85 56 38 EB 90 00 [03:12:13]wFMCommunicate OK [03:12:13]SAM_PROTO_SignData done [03:12:13]FM_MakeSignedData done [03:12:13]CreateOFDProtocolMessage [03:12:13]wFMCommunicate request_size=4 [03:12:13]MH_SAM_APDU [03:12:13]CAPDU: 80 11 00 00 [03:12:13]Write to MH i2c: E2 08 00 05 3E 80 11 00 00 00 00 00 00 BD [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:13]Read from MH i2c: E2 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 17 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: E2 17 00 05 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0D [03:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:12:13]wFMCommunicate OK [03:12:13]CreateOFDProtocolMessage done [03:12:13]OFDSenderStorePacket 2565 [03:12:13]StoreOFDPacket docnum=2565 [03:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 A3 1F 3C 01 12 4D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 92 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 0A 00 00 35 04 06 00 D5 AB 4B FA E0 A2 5D 62 C5 90 85 56 38 EB [03:12:13]CheckFolder [03:12:13]dirname=/storage/ofd_packets [03:12:13]CheckFolder done [03:12:13]ProducePacketName [03:12:13]name=ofd_packets/00002565 [03:12:13]NVStorageSaveData ofd_packets/00002565 [03:12:13]File name is /storage/ofd_packets/00002565 [03:12:13]Write 354 bytes [03:12:13]NVStorageSaveData done [03:12:13]OFDSenderStorePacket done [03:12:13]KKMCreateOFDPacket done [03:12:13]NVStorageSaveData kkm_last_timestamp [03:12:13]File name is /storage/kkm_last_timestamp [03:12:13]Write 4 bytes [03:12:13]NVStorageSaveData done [03:12:13]ExternCall_PrintAddStr [03:12:13]wPrintStart [03:12:13]Write to MH i2c: 01 00 00 06 3E 44 [03:12:13]Write i2c OK [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: 01 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: 01 07 00 [03:12:13]MH_I2C_Read... [03:12:13]Read from MH i2c: 01 07 00 06 3E 00 00 00 00 00 FF 0F 59 [03:12:13]RasterBufferAndPrint [03:12:13]line Счет N : (3)126751 [03:12:13]line ИНН: 02508201610067 [03:12:13]line Контрольно-Кассовый Чек [03:12:13]line ПРОДАЖА [03:12:13]line Товар: 4700000480302 [03:12:13]line Напиток энерг Nitro манго-клуб 0.45 ж/б [03:12:13]line 1.000 * 95.00 [03:12:13]line = 95.00 [03:12:13]line НДС 12% НСП 1% [03:12:13]line > о реализуемом товаре [03:12:13]line ИТОГО: 95.00 [03:12:13]line НСП 1% : 0.84 [03:12:13]line НДС 12% : 10.09 [03:12:13]line Наличными: 95.00 [03:12:13]line Безнал.: 0.00 [03:12:13]line Место: АЗС № 127 "Партнер Нефть" [03:12:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:12:13]line СНО: Общий режим [03:12:13]line Чек 18 31.07.2024 03:12 [03:12:13]line Смена: 17 ФФД: 1.0 [03:12:13]line ЗНМ: 0300000161 [03:12:13]line РНМ: 0000000000189667 [03:12:13]line Версия ККМ: v1.0 [03:12:13]line ФМ: 0000000002094248 [03:12:13]line ФД: 2565 [03:12:13]line ФПД: 234931690856610 [03:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2565&fm=234931690856610&tin=02508201610067®Number=0000000000189667&sum=9500 [03:12:13]line 0 [03:12:13]OFD Sender: Processing packet 2565 [packets to send 1, broken 0] [03:12:13]ProducePacketName [03:12:13]name=ofd_packets/00002565 [03:12:13]OFD Sender: To server: pG, [03:12:13]CommunicateWithHost lk.salyk.kg:30040 [03:12:13]ConnectInit lk.salyk.kg [03:12:13]written 0, free lines is 4095 [03:12:14]Connected sock=10 [03:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 A3 1F 3C 01 12 4D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 92 AB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 0A 00 00 35 04 06 00 D5 AB 4B FA E0 A2 5D 62 C5 90 85 56 38 EB [03:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EA 0F 47 00 9D 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 32 30 39 34 32 34 38 10 04 04 00 05 0A 00 00 F4 03 04 00 FA 56 A9 66 B6 04 01 00 00 91 D2 C4 AD 42 EA 53 B3 [03:12:14]CommunicateWithHost err = 0 [03:12:14]CheckOFDResponse [03:12:14]1017 (14) - 77093643461234 [03:12:14]1041 (16) - 0000000002094248 [03:12:14]1040 (4) - 2565 [03:12:14]1012 (4) - 30.07.2024 21:11 [03:12:14]1206 (1) - 0 [03:12:14]OFD Sender: Remove packet 2565 [03:12:14]ProducePacketName [03:12:14]name=ofd_packets/00002565 [03:12:14]NVStorageDeleteData [03:12:14]Write to MH i2c: 01 00 00 2F 3E 6D [03:12:14]Write i2c OK [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: 01 [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: 01 07 00 [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: 01 07 00 2F 3E 00 00 00 00 00 0D 0D 8E [03:12:14]RasterBufferAndPrint [03:12:14]line [03:12:14]line [03:12:14]line [03:12:14]line [03:12:14]line [03:12:14]written 0, free lines is 3348 [03:12:14]MH_Cut [03:12:14]Write to MH i2c: D1 01 00 36 3E 01 46 [03:12:14]Write i2c OK [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: D1 [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: D1 01 00 [03:12:14]MH_I2C_Read... [03:12:14]Read from MH i2c: D1 01 00 36 3E 00 45 [03:12:14]Write to MH i2c: 01 00 00 37 3E 75 [03:12:14]Write i2c OK [03:12:14]MH_I2C_Read... [03:12:14]OFD Sender: No OFD packet to send [03:12:14]*** Cut start [03:12:14]*** Partial cut [03:12:14]*** CUTSNS_PIN = 1 [03:12:15]*** CUTSNS_PIN = 0 [03:12:15]*** Brake cut motor [03:12:15]Read from MH i2c: 01 [03:12:15]MH_I2C_Read... [03:12:15]*** Stop cut motor [03:12:15]*** Cut end [03:12:15]Read from MH i2c: 01 07 00 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: 01 07 00 37 3E 00 00 00 00 00 FF 0F 8A [03:12:15]process_action close_receipt done [03:12:15]requested_data is exist [03:12:15]produce_requested_data [03:12:15]requested_item fm.sn is exist - process it [03:12:15]wFMCommunicate request_size=4 [03:12:15]MH_SAM_APDU [03:12:15]CAPDU: 80 11 00 00 [03:12:15]Write to MH i2c: E2 08 00 38 3E 80 11 00 00 00 00 00 00 F0 [03:12:15]Write i2c OK [03:12:15]MH_I2C_Read... [03:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:15]Read from MH i2c: E2 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 17 00 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 17 00 38 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [03:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:12:15]wFMCommunicate OK [03:12:15]requested_item fd.num is exist - process it [03:12:15]SAM_PROTO_GetFieldsCounters [03:12:15]wFMCommunicate request_size=4 [03:12:15]MH_SAM_APDU [03:12:15]CAPDU: 80 13 00 00 [03:12:15]Write to MH i2c: E2 08 00 39 3E 80 13 00 00 00 00 00 00 F3 [03:12:15]Write i2c OK [03:12:15]MH_I2C_Read... [03:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:12:15]Read from MH i2c: E2 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 62 00 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 62 00 39 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 0A 00 00 0E 04 04 00 11 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 73 [03:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 0A 00 00 0E 04 04 00 11 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 [03:12:15]wFMCommunicate OK [03:12:15]SAM_PROTO_GetFieldsCounters done [03:12:15]requested_item shift.num is exist - process it [03:12:15]requested_item shift.opened is exist - process it [03:12:15]req_shift_opened [03:12:15]FM_GetShiftState [03:12:15]SAM_PROTO_GetShiftState [03:12:15]wFMCommunicate request_size=4 [03:12:15]MH_SAM_APDU [03:12:15]CAPDU: 80 13 01 00 [03:12:15]Write to MH i2c: E2 08 00 3A 3E 80 13 01 00 00 00 00 00 F5 [03:12:15]Write i2c OK [03:12:15]MH_I2C_Read... [03:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:15]Read from MH i2c: E2 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 0E 00 [03:12:15]MH_I2C_Read... [03:12:15]Read from MH i2c: E2 0E 00 3A 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C2 [03:12:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:12:15]wFMCommunicate OK [03:12:15]SAM_PROTO_GetShiftState done [03:12:15]FM_GetShiftState done [03:12:15]req_shift_opened done [03:12:15]requested_item shift.open_date is exist - process it [03:12:15]req_shift_open_date [03:12:15]req_shift_open_date done [03:12:15]produce_requested_data done [03:12:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2565,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:12:15]process_action_free close_receipt [03:12:15]json_value_free [03:12:15]json_value_free done [03:12:15]process_json_proto returns [03:12:15]Send response to host [03:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2565,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:12:15]free response buf [03:12:15]execute_script done [03:12:15]execute_script returns [03:12:15]free content buf [03:12:15]Sock 9.Close socket [03:12:15]Sock 9.Thread stoped [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:36]accept exits with 7 [03:14:36]New connection [03:14:36]New thread 3067624804 created [03:14:36]Thread 3067481444 joined [03:14:36]Waiting for new connection... [03:14:36] Sock 7.Parse request [03:14:36]Sock 7.Check first char [03:14:36]Sock 7.First char is OK [03:14:36]request: POST /json_proto HTTP/1.0 [03:14:36]Method: POST [03:14:36]URL: /json_proto [03:14:36]Method is POST - this is cgi request [03:14:36]url: /json_proto [03:14:36]query_string will be loaded in cgi processing [03:14:36]execute_cgi json_proto POST (null) [03:14:36]execute_cgi path=json_proto method=POST [03:14:36]POST find Content-Length [03:14:36]Host: 172.17.45.132:8080 [03:14:36]Content-Length: 886 [03:14:36]Content-Type: application/json [03:14:36] [03:14:36]POST finish read [03:14:36]Found Content-Length = 886 [03:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126752", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:36]execute_script... [03:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126752", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:36]POST & json_proto [03:14:36]process_json_proto [03:14:36]json parsed OK: [03:14:36]protocol is kg_v1.0 [03:14:36]action value=close_receipt [03:14:36]process_action close_receipt [03:14:36]cmd_close_receipt [03:14:36]MH_GetDate [03:14:36]Write to MH i2c: F0 00 00 3B 3E 68 [03:14:36]Write i2c OK [03:14:36]MH_I2C_Read... [03:14:36]Read from MH i2c: F0 [03:14:36]MH_I2C_Read... [03:14:36]Read from MH i2c: F0 09 00 [03:14:36]MH_I2C_Read... [03:14:36]Read from MH i2c: F0 09 00 3B 3E 00 23 AC A9 66 E3 0B 90 66 33 [03:14:36]GetLastDocTimeStamp 1722395538 [03:14:36]current date 1722395683 [03:14:36]FM_GetShiftState [03:14:36]SAM_PROTO_GetShiftState [03:14:36]wFMCommunicate request_size=4 [03:14:36]MH_SAM_APDU [03:14:36]CAPDU: 80 13 01 00 [03:14:36]Write to MH i2c: E2 08 00 3C 3E 80 13 01 00 00 00 00 00 F7 [03:14:36]Write i2c OK [03:14:36]MH_I2C_Read... [03:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:36]Read from MH i2c: E2 [03:14:36]MH_I2C_Read... [03:14:36]Read from MH i2c: E2 0E 00 [03:14:36]MH_I2C_Read... [03:14:36]Read from MH i2c: E2 0E 00 3C 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C4 [03:14:36]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:14:36]wFMCommunicate OK [03:14:36]SAM_PROTO_GetShiftState done [03:14:36]FM_GetShiftState done [03:14:36]opened in 1722384689 [03:14:36]opened+sec_in_day 1722471089 [03:14:36]quantity*price = 11100 [03:14:36]sum+1 = 11101 [03:14:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 196.00 НСП 1% : 1.73 НДС 12% : 20.82 Наличными: 196.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 19 31.07.2024 03:14 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2566 ФПД: 222057176346896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031443&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2566&fm=222057176346896&tin=02508201610067®Number=0000000000189667&sum=19600 0 [03:14:37]StoreToDocumentArchive [03:14:37]shift 17 fd 2566 [03:14:37]save to /storage/0017/doc_00002566 [03:14:37]save last doc name /storage/0017/doc_00002566 to /storage/kkm_last_doc_name [03:14:37]save OK [03:14:37]Clear old archive folders... [03:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=390 [03:14:37]tlvbuf is 009204E0 [03:14:37]SAM_PROTO_ClearQueue [03:14:37]wFMCommunicate request_size=4 [03:14:37]MH_SAM_APDU [03:14:37]CAPDU: 80 09 00 00 [03:14:37]Write to MH i2c: E2 08 00 49 3E 80 09 00 00 00 00 00 00 F9 [03:14:37]Write i2c OK [03:14:37]MH_I2C_Read... [03:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:37]Read from MH i2c: E2 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 49 3E 00 90 00 FB [03:14:37]RAPDU: 90 00 [03:14:37]wFMCommunicate OK [03:14:37]SAM_PROTO_ClearQueue done [03:14:37]KKMCreateOFDPacket [03:14:37]OFDProtocolAddRootSTLVToBuf [03:14:37]FM_MakeSignedData [03:14:37]FM_MakeSignedData [03:14:37]SAM_PROTO_SignData [03:14:37]wFMCommunicate request_size=4 [03:14:37]MH_SAM_APDU [03:14:37]CAPDU: 80 0D 01 02 [03:14:37]Write to MH i2c: E2 08 00 4A 3E 80 0D 01 02 00 00 00 00 01 [03:14:37]Write i2c OK [03:14:37]MH_I2C_Read... [03:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:37]Read from MH i2c: E2 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 4A 3E 00 90 00 FC [03:14:37]RAPDU: 90 00 [03:14:37]wFMCommunicate OK [03:14:37]wFMCommunicate request_size=255 [03:14:37]MH_SAM_APDU [03:14:37]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [03:14:37]Write to MH i2c: E2 02 01 4B 3E 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 65 [03:14:37]Write i2c OK [03:14:37]MH_I2C_Read... [03:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:37]Read from MH i2c: E2 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 [03:14:37]MH_I2C_Read... [03:14:37]Read from MH i2c: E2 03 00 4B 3E 00 90 00 FD [03:14:37]RAPDU: 90 00 [03:14:37]wFMCommunicate OK [03:14:37]wFMCommunicate request_size=149 [03:14:37]MH_SAM_APDU [03:14:37]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 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 23 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 0A 00 00 35 04 06 00 C9 F5 B7 1D B1 10 [03:14:37]Write to MH i2c: E2 98 00 4C 3E 80 0D 02 02 90 00 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 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 23 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 0A 00 00 35 04 06 00 C9 F5 B7 1D B1 10 00 00 73 [03:14:37]Write i2c OK [03:14:37]MH_I2C_Read... [03:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:38]Read from MH i2c: E2 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 03 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 03 00 4C 3E 00 90 00 FE [03:14:38]RAPDU: 90 00 [03:14:38]wFMCommunicate OK [03:14:38]wFMCommunicate request_size=4 [03:14:38]MH_SAM_APDU [03:14:38]CAPDU: 80 0D 03 02 [03:14:38]Write to MH i2c: E2 08 00 4D 3E 80 0D 03 02 00 00 00 00 06 [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:38]Read from MH i2c: E2 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 0B 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 0B 00 4D 3E 00 34 F0 94 0F C3 70 25 42 90 00 68 [03:14:38]RAPDU: 34 F0 94 0F C3 70 25 42 90 00 [03:14:38]wFMCommunicate OK [03:14:38]SAM_PROTO_SignData done [03:14:38]FM_MakeSignedData done [03:14:38]CreateOFDProtocolMessage [03:14:38]wFMCommunicate request_size=4 [03:14:38]MH_SAM_APDU [03:14:38]CAPDU: 80 11 00 00 [03:14:38]Write to MH i2c: E2 08 00 4E 3E 80 11 00 00 00 00 00 00 06 [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:38]Read from MH i2c: E2 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 17 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: E2 17 00 4E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 56 [03:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:14:38]wFMCommunicate OK [03:14:38]CreateOFDProtocolMessage done [03:14:38]OFDSenderStorePacket 2566 [03:14:38]StoreOFDPacket docnum=2566 [03:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 2E 29 92 01 18 86 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 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 23 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 0A 00 00 35 04 06 00 C9 F5 B7 1D B1 10 34 F0 94 0F C3 70 25 42 [03:14:38]CheckFolder [03:14:38]dirname=/storage/ofd_packets [03:14:38]CheckFolder done [03:14:38]ProducePacketName [03:14:38]name=ofd_packets/00002566 [03:14:38]NVStorageSaveData ofd_packets/00002566 [03:14:38]File name is /storage/ofd_packets/00002566 [03:14:38]Write 440 bytes [03:14:38]NVStorageSaveData done [03:14:38]OFDSenderStorePacket done [03:14:38]KKMCreateOFDPacket done [03:14:38]NVStorageSaveData kkm_last_timestamp [03:14:38]File name is /storage/kkm_last_timestamp [03:14:38]Write 4 bytes [03:14:38]NVStorageSaveData done [03:14:38]ExternCall_PrintAddStr [03:14:38]wPrintStart [03:14:38]Write to MH i2c: 01 00 00 4F 3E 8D [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 07 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 07 00 4F 3E 00 00 00 00 00 FF 0F A2 [03:14:38]RasterBufferAndPrint [03:14:38]line Счет N : (3)126752 [03:14:38]line ИНН: 02508201610067 [03:14:38]line Контрольно-Кассовый Чек [03:14:38]line ПРОДАЖА [03:14:38]line Товар: 4870001570071 [03:14:38]line Напиток Pepsi 1л [03:14:38]line 1.000 * 111.00 [03:14:38]line = 111.00 [03:14:38]line НДС 12% НСП 1% [03:14:38]line > о реализуемом товаре [03:14:38]line Товар: 4600682557456 [03:14:38]line Напиток FLash up energy эн ж/б 0,5/0,45л [03:14:38]line 1.000 * 85.00 [03:14:38]line = 85.00 [03:14:38]line НДС 12% НСП 1% [03:14:38]line > о реализуемом товаре [03:14:38]line ИТОГО: 196.00 [03:14:38]line НСП 1% : 1.73 [03:14:38]line НДС 12% : 20.82 [03:14:38]line Наличными: 196.00 [03:14:38]line Безнал.: 0.00 [03:14:38]line Место: АЗС № 127 "Партнер Нефть" [03:14:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:14:38]line СНО: Общий режим [03:14:38]line Чек 19 31.07.2024 03:14 [03:14:38]line Смена: 17 ФФД: 1.0 [03:14:38]line ЗНМ: 0300000161 [03:14:38]line РНМ: 0000000000189667 [03:14:38]line Версия ККМ: v1.0 [03:14:38]line ФМ: 0000000002094248 [03:14:38]line ФД: 2566 [03:14:38]line ФПД: 222057176346896 [03:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031443&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2566&fm=222057176346896&tin=02508201610067®Number=0000000000189667&sum=19600 [03:14:38]OFD Sender: Processing packet 2566 [packets to send 1, broken 0] [03:14:38]ProducePacketName [03:14:38]name=ofd_packets/00002566 [03:14:38]OFD Sender: To server: pG, [03:14:38]CommunicateWithHost lk.salyk.kg:30040 [03:14:38]ConnectInit lk.salyk.kg [03:14:38]line 0 [03:14:38]written 0, free lines is 4095 [03:14:38]Connected sock=10 [03:14:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 2E 29 92 01 18 86 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 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 23 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 0A 00 00 35 04 06 00 C9 F5 B7 1D B1 10 34 F0 94 0F C3 70 25 42 [03:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E7 F1 47 00 49 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 0A 00 00 F4 03 04 00 8A 57 A9 66 B6 04 01 00 00 5A FF EB D9 6E 81 0D C0 [03:14:38]CommunicateWithHost err = 0 [03:14:38]CheckOFDResponse [03:14:38]1017 (14) - 77093643461234 [03:14:38]1041 (16) - 0000000002094248 [03:14:38]1040 (4) - 2566 [03:14:38]1012 (4) - 30.07.2024 21:13 [03:14:38]1206 (1) - 0 [03:14:38]OFD Sender: Remove packet 2566 [03:14:38]ProducePacketName [03:14:38]name=ofd_packets/00002566 [03:14:38]NVStorageDeleteData [03:14:38]Write to MH i2c: 01 00 00 7E 3E BC [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 07 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: 01 07 00 7E 3E 00 00 00 00 00 CB 0C 9A [03:14:38]RasterBufferAndPrint [03:14:38]line [03:14:38]line [03:14:38]line [03:14:38]line [03:14:38]line [03:14:38]written 0, free lines is 3282 [03:14:38]MH_Cut [03:14:38]Write to MH i2c: D1 01 00 85 3E 01 95 [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: D1 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: D1 01 00 [03:14:38]MH_I2C_Read... [03:14:38]Read from MH i2c: D1 01 00 85 3E 00 94 [03:14:38]Write to MH i2c: 01 00 00 86 3E C4 [03:14:38]Write i2c OK [03:14:38]MH_I2C_Read... [03:14:39]OFD Sender: No OFD packet to send [03:14:39]*** Cut start [03:14:39]*** Partial cut [03:14:39]*** CUTSNS_PIN = 1 [03:14:39]*** CUTSNS_PIN = 0 [03:14:39]*** Brake cut motor [03:14:40]Read from MH i2c: 01 [03:14:40]MH_I2C_Read... [03:14:40]*** Stop cut motor [03:14:40]*** Cut end [03:14:40]Read from MH i2c: 01 07 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: 01 07 00 86 3E 00 00 00 00 00 FF 0F D9 [03:14:40]process_action close_receipt done [03:14:40]requested_data is exist [03:14:40]produce_requested_data [03:14:40]requested_item fm.sn is exist - process it [03:14:40]wFMCommunicate request_size=4 [03:14:40]MH_SAM_APDU [03:14:40]CAPDU: 80 11 00 00 [03:14:40]Write to MH i2c: E2 08 00 87 3E 80 11 00 00 00 00 00 00 3F [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:40]Read from MH i2c: E2 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 17 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 17 00 87 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8F [03:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:14:40]wFMCommunicate OK [03:14:40]requested_item fd.num is exist - process it [03:14:40]SAM_PROTO_GetFieldsCounters [03:14:40]wFMCommunicate request_size=4 [03:14:40]MH_SAM_APDU [03:14:40]CAPDU: 80 13 00 00 [03:14:40]Write to MH i2c: E2 08 00 88 3E 80 13 00 00 00 00 00 00 42 [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:40]Read from MH i2c: E2 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 62 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 62 00 88 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 0A 00 00 0E 04 04 00 11 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 C6 [03:14:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 0A 00 00 0E 04 04 00 11 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 [03:14:40]wFMCommunicate OK [03:14:40]SAM_PROTO_GetFieldsCounters done [03:14:40]requested_item shift.num is exist - process it [03:14:40]requested_item shift.opened is exist - process it [03:14:40]req_shift_opened [03:14:40]FM_GetShiftState [03:14:40]SAM_PROTO_GetShiftState [03:14:40]wFMCommunicate request_size=4 [03:14:40]MH_SAM_APDU [03:14:40]CAPDU: 80 13 01 00 [03:14:40]Write to MH i2c: E2 08 00 89 3E 80 13 01 00 00 00 00 00 44 [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:40]Read from MH i2c: E2 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 0E 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 0E 00 89 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 11 [03:14:40]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:14:40]wFMCommunicate OK [03:14:40]SAM_PROTO_GetShiftState done [03:14:40]FM_GetShiftState done [03:14:40]req_shift_opened done [03:14:40]requested_item shift.open_date is exist - process it [03:14:40]req_shift_open_date [03:14:40]req_shift_open_date done [03:14:40]produce_requested_data done [03:14:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2566,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:14:40]process_action_free close_receipt [03:14:40]json_value_free [03:14:40]json_value_free done [03:14:40]process_json_proto returns [03:14:40]Send response to host [03:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2566,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:14:40]free response buf [03:14:40]execute_script done [03:14:40]execute_script returns [03:14:40]free content buf [03:14:40]Sock 7.Close socket [03:14:40]Sock 7.Thread stoped [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:01]accept exits with 9 [03:18:01]New connection [03:18:01]New thread 3067481444 created [03:18:01]Thread 3067624804 joined [03:18:01]Waiting for new connection... [03:18:01] Sock 9.Parse request [03:18:01]Sock 9.Check first char [03:18:01]Sock 9.First char is OK [03:18:01]request: POST /json_proto HTTP/1.0 [03:18:01]Method: POST [03:18:01]URL: /json_proto [03:18:01]Method is POST - this is cgi request [03:18:01]url: /json_proto [03:18:01]query_string will be loaded in cgi processing [03:18:01]execute_cgi json_proto POST (null) [03:18:01]execute_cgi path=json_proto method=POST [03:18:01]POST find Content-Length [03:18:01]Host: 172.17.45.132:8080 [03:18:01]Content-Length: 905 [03:18:01]Content-Type: application/json [03:18:01] [03:18:01]POST finish read [03:18:01]Found Content-Length = 905 [03:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126753", "tax_sys" : 0, "items" : [ { "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:01]execute_script... [03:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126753", "tax_sys" : 0, "items" : [ { "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:01]POST & json_proto [03:18:01]process_json_proto [03:18:01]json parsed OK: [03:18:01]protocol is kg_v1.0 [03:18:01]action value=close_receipt [03:18:01]process_action close_receipt [03:18:01]cmd_close_receipt [03:18:01]MH_GetDate [03:18:01]Write to MH i2c: F0 00 00 8A 3E B7 [03:18:01]Write i2c OK [03:18:01]MH_I2C_Read... [03:18:01]Read from MH i2c: F0 [03:18:01]MH_I2C_Read... [03:18:01]Read from MH i2c: F0 09 00 [03:18:01]MH_I2C_Read... [03:18:01]Read from MH i2c: F0 09 00 8A 3E 00 EF AC A9 66 E3 0B 90 66 4E [03:18:01]GetLastDocTimeStamp 1722395683 [03:18:01]current date 1722395887 [03:18:01]FM_GetShiftState [03:18:01]SAM_PROTO_GetShiftState [03:18:01]wFMCommunicate request_size=4 [03:18:01]MH_SAM_APDU [03:18:01]CAPDU: 80 13 01 00 [03:18:01]Write to MH i2c: E2 08 00 8B 3E 80 13 01 00 00 00 00 00 46 [03:18:01]Write i2c OK [03:18:01]MH_I2C_Read... [03:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:01]Read from MH i2c: E2 [03:18:01]MH_I2C_Read... [03:18:01]Read from MH i2c: E2 0E 00 [03:18:01]MH_I2C_Read... [03:18:01]Read from MH i2c: E2 0E 00 8B 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 13 [03:18:01]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:18:01]wFMCommunicate OK [03:18:01]SAM_PROTO_GetShiftState done [03:18:01]FM_GetShiftState done [03:18:01]opened in 1722384689 [03:18:01]opened+sec_in_day 1722471089 [03:18:01]quantity*price = 36000 [03:18:01]sum+1 = 36001 [03:18:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004753 Напиток Garage hard lemon ст 0,4л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 480.00 НСП 1% : 4.25 НДС 12% : 50.97 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 20 31.07.2024 03:18 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2567 ФПД: 233753547734573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031808&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2567&fm=233753547734573&tin=02508201610067®Number=0000000000189667&sum=48000 0 [03:18:02]StoreToDocumentArchive [03:18:02]shift 17 fd 2567 [03:18:02]save to /storage/0017/doc_00002567 [03:18:02]save last doc name /storage/0017/doc_00002567 to /storage/kkm_last_doc_name [03:18:02]save OK [03:18:02]Clear old archive folders... [03:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=407 [03:18:02]tlvbuf is B6FF92A0 [03:18:02]SAM_PROTO_ClearQueue [03:18:02]wFMCommunicate request_size=4 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 09 00 00 [03:18:02]Write to MH i2c: E2 08 00 98 3E 80 09 00 00 00 00 00 00 48 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 98 3E 00 90 00 4A [03:18:02]RAPDU: 90 00 [03:18:02]wFMCommunicate OK [03:18:02]SAM_PROTO_ClearQueue done [03:18:02]KKMCreateOFDPacket [03:18:02]OFDProtocolAddRootSTLVToBuf [03:18:02]FM_MakeSignedData [03:18:02]FM_MakeSignedData [03:18:02]SAM_PROTO_SignData [03:18:02]wFMCommunicate request_size=4 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 0D 01 02 [03:18:02]Write to MH i2c: E2 08 00 99 3E 80 0D 01 02 00 00 00 00 50 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 99 3E 00 90 00 4B [03:18:02]RAPDU: 90 00 [03:18:02]wFMCommunicate OK [03:18:02]wFMCommunicate request_size=255 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [03:18:02]Write to MH i2c: E2 02 01 9A 3E 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 A8 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 9A 3E 00 90 00 4C [03:18:02]RAPDU: 90 00 [03:18:02]wFMCommunicate OK [03:18:02]wFMCommunicate request_size=166 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 0D 02 02 A1 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 E9 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 F0 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 0A 00 00 35 04 06 00 D4 98 FD 2D 7E 2D [03:18:02]Write to MH i2c: E2 A9 00 9B 3E 80 0D 02 02 A1 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 E9 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 F0 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 0A 00 00 35 04 06 00 D4 98 FD 2D 7E 2D 00 00 19 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 03 00 9B 3E 00 90 00 4D [03:18:02]RAPDU: 90 00 [03:18:02]wFMCommunicate OK [03:18:02]wFMCommunicate request_size=4 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 0D 03 02 [03:18:02]Write to MH i2c: E2 08 00 9C 3E 80 0D 03 02 00 00 00 00 55 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 0B 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 0B 00 9C 3E 00 4A 68 6E 5F 48 63 0C 2A 90 00 B6 [03:18:02]RAPDU: 4A 68 6E 5F 48 63 0C 2A 90 00 [03:18:02]wFMCommunicate OK [03:18:02]SAM_PROTO_SignData done [03:18:02]FM_MakeSignedData done [03:18:02]CreateOFDProtocolMessage [03:18:02]wFMCommunicate request_size=4 [03:18:02]MH_SAM_APDU [03:18:02]CAPDU: 80 11 00 00 [03:18:02]Write to MH i2c: E2 08 00 9D 3E 80 11 00 00 00 00 00 00 55 [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:02]Read from MH i2c: E2 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 17 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: E2 17 00 9D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A5 [03:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:18:02]wFMCommunicate OK [03:18:02]CreateOFDProtocolMessage done [03:18:02]OFDSenderStorePacket 2567 [03:18:02]StoreOFDPacket docnum=2567 [03:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 3F 06 A3 01 B6 1B 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 E9 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 F0 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 0A 00 00 35 04 06 00 D4 98 FD 2D 7E 2D 4A 68 6E 5F 48 63 0C 2A [03:18:02]CheckFolder [03:18:02]dirname=/storage/ofd_packets [03:18:02]CheckFolder done [03:18:02]ProducePacketName [03:18:02]name=ofd_packets/00002567 [03:18:02]NVStorageSaveData ofd_packets/00002567 [03:18:02]File name is /storage/ofd_packets/00002567 [03:18:02]Write 457 bytes [03:18:02]NVStorageSaveData done [03:18:02]OFDSenderStorePacket done [03:18:02]KKMCreateOFDPacket done [03:18:02]NVStorageSaveData kkm_last_timestamp [03:18:02]File name is /storage/kkm_last_timestamp [03:18:02]Write 4 bytes [03:18:02]NVStorageSaveData done [03:18:02]ExternCall_PrintAddStr [03:18:02]wPrintStart [03:18:02]Write to MH i2c: 01 00 00 9E 3E DC [03:18:02]Write i2c OK [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: 01 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: 01 07 00 [03:18:02]MH_I2C_Read... [03:18:02]Read from MH i2c: 01 07 00 9E 3E 00 00 00 00 00 FF 0F F1 [03:18:02]RasterBufferAndPrint [03:18:02]line Счет N : (3)126753 [03:18:02]line ИНН: 02508201610067 [03:18:02]line Контрольно-Кассовый Чек [03:18:02]line ПРОДАЖА [03:18:02]line Товар: 4870145004760 [03:18:02]line Напиток Garage hard black cherry ст0,44л [03:18:02]line 3.000 * 120.00 [03:18:02]line = 360.00 [03:18:02]line НДС 12% НСП 1% [03:18:02]line > о реализуемом товаре [03:18:02]line Товар: 4870145004753 [03:18:02]line Напиток Garage hard lemon ст 0,4л [03:18:02]line 1.000 * 120.00 [03:18:02]line = 120.00 [03:18:02]line НДС 12% НСП 1% [03:18:02]line > о реализуемом товаре [03:18:02]line ИТОГО: 480.00 [03:18:02]line НСП 1% : 4.25 [03:18:02]line НДС 12% : 50.97 [03:18:02]line Наличными: 480.00 [03:18:02]line Безнал.: 0.00 [03:18:02]line Место: АЗС № 127 "Партнер Нефть" [03:18:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:18:03]line СНО: Общий режим [03:18:03]line Чек 20 31.07.2024 03:18 [03:18:03]line Смена: 17 ФФД: 1.0 [03:18:03]line ЗНМ: 0300000161 [03:18:03]line РНМ: 0000000000189667 [03:18:03]line Версия ККМ: v1.0 [03:18:03]line ФМ: 0000000002094248 [03:18:03]line ФД: 2567 [03:18:03]line ФПД: 233753547734573 [03:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031808&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2567&fm=233753547734573&tin=02508201610067®Number=0000000000189667&sum=48000 [03:18:03]line 0 [03:18:03]OFD Sender: Processing packet 2567 [packets to send 1, broken 0] [03:18:03]ProducePacketName [03:18:03]name=ofd_packets/00002567 [03:18:03]OFD Sender: To server: pG, [03:18:03]CommunicateWithHost lk.salyk.kg:30040 [03:18:03]ConnectInit lk.salyk.kg [03:18:03]written 0, free lines is 4095 [03:18:03]Connected sock=10 [03:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 3F 06 A3 01 B6 1B 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 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 E9 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 F0 AC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 0A 00 00 35 04 06 00 D4 98 FD 2D 7E 2D 4A 68 6E 5F 48 63 0C 2A [03:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F8 8D 47 00 4F 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 32 30 39 34 32 34 38 10 04 04 00 07 0A 00 00 F4 03 04 00 57 58 A9 66 B6 04 01 00 00 F6 BE 70 7E 5C 0C 74 1C [03:18:03]CommunicateWithHost err = 0 [03:18:03]CheckOFDResponse [03:18:03]1017 (14) - 77093643461234 [03:18:03]1041 (16) - 0000000002094248 [03:18:03]1040 (4) - 2567 [03:18:03]1012 (4) - 30.07.2024 21:17 [03:18:03]1206 (1) - 0 [03:18:03]OFD Sender: Remove packet 2567 [03:18:03]ProducePacketName [03:18:03]name=ofd_packets/00002567 [03:18:03]NVStorageDeleteData [03:18:03]Write to MH i2c: 01 00 00 CE 3E 0C [03:18:03]Write i2c OK [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: 01 [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: 01 07 00 [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: 01 07 00 CE 3E 00 00 00 00 00 B8 0C D7 [03:18:03]RasterBufferAndPrint [03:18:03]line [03:18:03]line [03:18:03]line [03:18:03]line [03:18:03]line [03:18:03]written 0, free lines is 3268 [03:18:03]MH_Cut [03:18:03]Write to MH i2c: D1 01 00 D5 3E 01 E5 [03:18:03]Write i2c OK [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: D1 [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: D1 01 00 [03:18:03]MH_I2C_Read... [03:18:03]Read from MH i2c: D1 01 00 D5 3E 00 E4 [03:18:03]Write to MH i2c: 01 00 00 D6 3E 14 [03:18:03]Write i2c OK [03:18:03]MH_I2C_Read... [03:18:04]OFD Sender: No OFD packet to send [03:18:04]*** Cut start [03:18:04]*** Partial cut [03:18:04]*** CUTSNS_PIN = 1 [03:18:04]*** CUTSNS_PIN = 0 [03:18:04]*** Brake cut motor [03:18:05]Read from MH i2c: 01 [03:18:05]MH_I2C_Read... [03:18:05]*** Stop cut motor [03:18:05]*** Cut end [03:18:05]Read from MH i2c: 01 07 00 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: 01 07 00 D6 3E 00 00 00 00 00 FF 0F 29 [03:18:05]process_action close_receipt done [03:18:05]requested_data is exist [03:18:05]produce_requested_data [03:18:05]requested_item fm.sn is exist - process it [03:18:05]wFMCommunicate request_size=4 [03:18:05]MH_SAM_APDU [03:18:05]CAPDU: 80 11 00 00 [03:18:05]Write to MH i2c: E2 08 00 D7 3E 80 11 00 00 00 00 00 00 8F [03:18:05]Write i2c OK [03:18:05]MH_I2C_Read... [03:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:05]Read from MH i2c: E2 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 17 00 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 17 00 D7 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DF [03:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:18:05]wFMCommunicate OK [03:18:05]requested_item fd.num is exist - process it [03:18:05]SAM_PROTO_GetFieldsCounters [03:18:05]wFMCommunicate request_size=4 [03:18:05]MH_SAM_APDU [03:18:05]CAPDU: 80 13 00 00 [03:18:05]Write to MH i2c: E2 08 00 D8 3E 80 13 00 00 00 00 00 00 92 [03:18:05]Write i2c OK [03:18:05]MH_I2C_Read... [03:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:05]Read from MH i2c: E2 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 62 00 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 62 00 D8 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 0A 00 00 0E 04 04 00 11 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 1A [03:18:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 0A 00 00 0E 04 04 00 11 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 [03:18:05]wFMCommunicate OK [03:18:05]SAM_PROTO_GetFieldsCounters done [03:18:05]requested_item shift.num is exist - process it [03:18:05]requested_item shift.opened is exist - process it [03:18:05]req_shift_opened [03:18:05]FM_GetShiftState [03:18:05]SAM_PROTO_GetShiftState [03:18:05]wFMCommunicate request_size=4 [03:18:05]MH_SAM_APDU [03:18:05]CAPDU: 80 13 01 00 [03:18:05]Write to MH i2c: E2 08 00 D9 3E 80 13 01 00 00 00 00 00 94 [03:18:05]Write i2c OK [03:18:05]MH_I2C_Read... [03:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:05]Read from MH i2c: E2 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 0E 00 [03:18:05]MH_I2C_Read... [03:18:05]Read from MH i2c: E2 0E 00 D9 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 61 [03:18:05]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:18:05]wFMCommunicate OK [03:18:05]SAM_PROTO_GetShiftState done [03:18:05]FM_GetShiftState done [03:18:05]req_shift_opened done [03:18:05]requested_item shift.open_date is exist - process it [03:18:05]req_shift_open_date [03:18:05]req_shift_open_date done [03:18:05]produce_requested_data done [03:18:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2567,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:18:05]process_action_free close_receipt [03:18:05]json_value_free [03:18:05]json_value_free done [03:18:05]process_json_proto returns [03:18:05]Send response to host [03:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2567,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:18:05]free response buf [03:18:05]execute_script done [03:18:05]execute_script returns [03:18:05]free content buf [03:18:05]Sock 9.Close socket [03:18:05]Sock 9.Thread stoped [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:24]accept exits with 7 [03:18:24]New connection [03:18:24]New thread 3067624804 created [03:18:24]Thread 3067481444 joined [03:18:24]Waiting for new connection... [03:18:24] Sock 7.Parse request [03:18:24]Sock 7.Check first char [03:18:24]Sock 7.First char is OK [03:18:24]request: POST /json_proto HTTP/1.0 [03:18:24]Method: POST [03:18:24]URL: /json_proto [03:18:24]Method is POST - this is cgi request [03:18:24]url: /json_proto [03:18:24]query_string will be loaded in cgi processing [03:18:24]execute_cgi json_proto POST (null) [03:18:24]execute_cgi path=json_proto method=POST [03:18:24]POST find Content-Length [03:18:24]Host: 172.17.45.132:8080 [03:18:24]Content-Length: 656 [03:18:24]Content-Type: application/json [03:18:24] [03:18:24]POST finish read [03:18:24]Found Content-Length = 656 [03:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126754", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:24]execute_script... [03:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126754", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:24]POST & json_proto [03:18:24]process_json_proto [03:18:24]json parsed OK: [03:18:24]protocol is kg_v1.0 [03:18:24]action value=close_receipt [03:18:24]process_action close_receipt [03:18:24]cmd_close_receipt [03:18:24]MH_GetDate [03:18:24]Write to MH i2c: F0 00 00 DA 3E 07 [03:18:24]Write i2c OK [03:18:24]MH_I2C_Read... [03:18:24]Read from MH i2c: F0 [03:18:24]MH_I2C_Read... [03:18:24]Read from MH i2c: F0 09 00 [03:18:24]MH_I2C_Read... [03:18:24]Read from MH i2c: F0 09 00 DA 3E 00 07 AD A9 66 E3 0B 90 66 B7 [03:18:24]GetLastDocTimeStamp 1722395888 [03:18:24]current date 1722395911 [03:18:24]FM_GetShiftState [03:18:24]SAM_PROTO_GetShiftState [03:18:24]wFMCommunicate request_size=4 [03:18:24]MH_SAM_APDU [03:18:24]CAPDU: 80 13 01 00 [03:18:24]Write to MH i2c: E2 08 00 DB 3E 80 13 01 00 00 00 00 00 96 [03:18:24]Write i2c OK [03:18:24]MH_I2C_Read... [03:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:24]Read from MH i2c: E2 [03:18:24]MH_I2C_Read... [03:18:24]Read from MH i2c: E2 0E 00 [03:18:24]MH_I2C_Read... [03:18:24]Read from MH i2c: E2 0E 00 DB 3E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 63 [03:18:24]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:18:24]wFMCommunicate OK [03:18:24]SAM_PROTO_GetShiftState done [03:18:24]FM_GetShiftState done [03:18:24]opened in 1722384689 [03:18:24]opened+sec_in_day 1722471089 [03:18:24]quantity*price = 19000 [03:18:24]sum+1 = 19001 [03:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 21 31.07.2024 03:18 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2568 ФПД: 12310923908122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031831&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2568&fm=12310923908122&tin=02508201610067®Number=0000000000189667&sum=19000 0 [03:18:25]StoreToDocumentArchive [03:18:25]shift 17 fd 2568 [03:18:25]save to /storage/0017/doc_00002568 [03:18:25]save last doc name /storage/0017/doc_00002568 to /storage/kkm_last_doc_name [03:18:25]save OK [03:18:25]Clear old archive folders... [03:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=293 [03:18:25]tlvbuf is 00985E50 [03:18:25]SAM_PROTO_ClearQueue [03:18:25]wFMCommunicate request_size=4 [03:18:25]MH_SAM_APDU [03:18:25]CAPDU: 80 09 00 00 [03:18:25]Write to MH i2c: E2 08 00 E8 3E 80 09 00 00 00 00 00 00 98 [03:18:25]Write i2c OK [03:18:25]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 E8 3E 00 90 00 9A [03:18:26]RAPDU: 90 00 [03:18:26]wFMCommunicate OK [03:18:26]SAM_PROTO_ClearQueue done [03:18:26]KKMCreateOFDPacket [03:18:26]OFDProtocolAddRootSTLVToBuf [03:18:26]FM_MakeSignedData [03:18:26]FM_MakeSignedData [03:18:26]SAM_PROTO_SignData [03:18:26]wFMCommunicate request_size=4 [03:18:26]MH_SAM_APDU [03:18:26]CAPDU: 80 0D 01 02 [03:18:26]Write to MH i2c: E2 08 00 E9 3E 80 0D 01 02 00 00 00 00 A0 [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 E9 3E 00 90 00 9B [03:18:26]RAPDU: 90 00 [03:18:26]wFMCommunicate OK [03:18:26]wFMCommunicate request_size=255 [03:18:26]MH_SAM_APDU [03:18:26]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 15 00 00 00 F4 03 04 00 07 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [03:18:26]Write to MH i2c: E2 02 01 EA 3E 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 15 00 00 00 F4 03 04 00 07 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 21 [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 EA 3E 00 90 00 9C [03:18:26]RAPDU: 90 00 [03:18:26]wFMCommunicate OK [03:18:26]wFMCommunicate request_size=52 [03:18:26]MH_SAM_APDU [03:18:26]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 0A 00 00 35 04 06 00 0B 32 5C 3F 14 1A [03:18:26]Write to MH i2c: E2 37 00 EB 3E 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 0A 00 00 35 04 06 00 0B 32 5C 3F 14 1A 00 00 87 [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 03 00 EB 3E 00 90 00 9D [03:18:26]RAPDU: 90 00 [03:18:26]wFMCommunicate OK [03:18:26]wFMCommunicate request_size=4 [03:18:26]MH_SAM_APDU [03:18:26]CAPDU: 80 0D 03 02 [03:18:26]Write to MH i2c: E2 08 00 EC 3E 80 0D 03 02 00 00 00 00 A5 [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 0B 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 0B 00 EC 3E 00 C5 D1 BD 9F C6 18 FB C2 90 00 33 [03:18:26]RAPDU: C5 D1 BD 9F C6 18 FB C2 90 00 [03:18:26]wFMCommunicate OK [03:18:26]SAM_PROTO_SignData done [03:18:26]FM_MakeSignedData done [03:18:26]CreateOFDProtocolMessage [03:18:26]wFMCommunicate request_size=4 [03:18:26]MH_SAM_APDU [03:18:26]CAPDU: 80 11 00 00 [03:18:26]Write to MH i2c: E2 08 00 ED 3E 80 11 00 00 00 00 00 00 A5 [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:26]Read from MH i2c: E2 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 17 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: E2 17 00 ED 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [03:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:18:26]wFMCommunicate OK [03:18:26]CreateOFDProtocolMessage done [03:18:26]OFDSenderStorePacket 2568 [03:18:26]StoreOFDPacket docnum=2568 [03:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 DB 46 31 01 D8 87 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 15 00 00 00 F4 03 04 00 07 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 0A 00 00 35 04 06 00 0B 32 5C 3F 14 1A C5 D1 BD 9F C6 18 FB C2 [03:18:26]CheckFolder [03:18:26]dirname=/storage/ofd_packets [03:18:26]CheckFolder done [03:18:26]ProducePacketName [03:18:26]name=ofd_packets/00002568 [03:18:26]NVStorageSaveData ofd_packets/00002568 [03:18:26]File name is /storage/ofd_packets/00002568 [03:18:26]Write 343 bytes [03:18:26]NVStorageSaveData done [03:18:26]OFDSenderStorePacket done [03:18:26]KKMCreateOFDPacket done [03:18:26]NVStorageSaveData kkm_last_timestamp [03:18:26]File name is /storage/kkm_last_timestamp [03:18:26]Write 4 bytes [03:18:26]NVStorageSaveData done [03:18:26]ExternCall_PrintAddStr [03:18:26]wPrintStart [03:18:26]Write to MH i2c: 01 00 00 EE 3E 2C [03:18:26]Write i2c OK [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: 01 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: 01 07 00 [03:18:26]MH_I2C_Read... [03:18:26]Read from MH i2c: 01 07 00 EE 3E 00 00 00 00 00 FF 0F 41 [03:18:26]RasterBufferAndPrint [03:18:26]line Счет N : (3)126754 [03:18:26]line ИНН: 02508201610067 [03:18:26]line Контрольно-Кассовый Чек [03:18:26]line ПРОДАЖА [03:18:26]line Товар: 4700000480050 [03:18:26]line Напиток Nitro Energy эн green ж/б 0,45л [03:18:26]line 2.000 * 95.00 [03:18:26]line = 190.00 [03:18:26]line НДС 12% НСП 1% [03:18:26]line > о реализуемом товаре [03:18:26]line ИТОГО: 190.00 [03:18:26]line НСП 1% : 1.68 [03:18:26]line НДС 12% : 20.18 [03:18:26]line Наличными: 190.00 [03:18:26]line Безнал.: 0.00 [03:18:26]line Место: АЗС № 127 "Партнер Нефть" [03:18:26]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:18:26]line СНО: Общий режим [03:18:26]line Чек 21 31.07.2024 03:18 [03:18:26]line Смена: 17 ФФД: 1.0 [03:18:26]line ЗНМ: 0300000161 [03:18:26]line РНМ: 0000000000189667 [03:18:26]line Версия ККМ: v1.0 [03:18:26]line ФМ: 0000000002094248 [03:18:26]line ФД: 2568 [03:18:26]line ФПД: 12310923908122 [03:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T031831&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2568&fm=12310923908122&tin=02508201610067®Number=0000000000189667&sum=19000 [03:18:26]line 0 [03:18:26]OFD Sender: Processing packet 2568 [packets to send 1, broken 0] [03:18:26]ProducePacketName [03:18:26]name=ofd_packets/00002568 [03:18:26]OFD Sender: To server: pG, [03:18:26]CommunicateWithHost lk.salyk.kg:30040 [03:18:26]ConnectInit lk.salyk.kg [03:18:26]written 0, free lines is 4095 [03:18:27]Connected sock=10 [03:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 DB 46 31 01 D8 87 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 15 00 00 00 F4 03 04 00 07 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 0A 00 00 35 04 06 00 0B 32 5C 3F 14 1A C5 D1 BD 9F C6 18 FB C2 [03:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2F 71 47 00 2F 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 0A 00 00 F4 03 04 00 6F 58 A9 66 B6 04 01 00 00 AC 29 C6 ED EE C4 85 72 [03:18:27]CommunicateWithHost err = 0 [03:18:27]CheckOFDResponse [03:18:27]1017 (14) - 77093643461234 [03:18:27]1041 (16) - 0000000002094248 [03:18:27]1040 (4) - 2568 [03:18:27]1012 (4) - 30.07.2024 21:17 [03:18:27]1206 (1) - 0 [03:18:27]OFD Sender: Remove packet 2568 [03:18:27]ProducePacketName [03:18:27]name=ofd_packets/00002568 [03:18:27]NVStorageDeleteData [03:18:27]Write to MH i2c: 01 00 00 17 3F 56 [03:18:27]Write i2c OK [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: 01 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: 01 07 00 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: 01 07 00 17 3F 00 00 00 00 00 04 0D 6E [03:18:27]RasterBufferAndPrint [03:18:27]line [03:18:27]line [03:18:27]line [03:18:27]line [03:18:27]line [03:18:27]written 0, free lines is 3338 [03:18:27]MH_Cut [03:18:27]Write to MH i2c: D1 01 00 1E 3F 01 2F [03:18:27]Write i2c OK [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: D1 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: D1 01 00 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: D1 01 00 1E 3F 00 2E [03:18:27]Write to MH i2c: 01 00 00 1F 3F 5E [03:18:27]Write i2c OK [03:18:27]MH_I2C_Read... [03:18:27]OFD Sender: No OFD packet to send [03:18:27]*** Cut start [03:18:27]*** Partial cut [03:18:27]*** CUTSNS_PIN = 1 [03:18:28]*** CUTSNS_PIN = 0 [03:18:28]*** Brake cut motor [03:18:28]Read from MH i2c: 01 [03:18:28]MH_I2C_Read... [03:18:28]*** Stop cut motor [03:18:28]*** Cut end [03:18:28]Read from MH i2c: 01 07 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: 01 07 00 1F 3F 00 00 00 00 00 FF 0F 73 [03:18:28]process_action close_receipt done [03:18:28]requested_data is exist [03:18:28]produce_requested_data [03:18:28]requested_item fm.sn is exist - process it [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 11 00 00 [03:18:28]Write to MH i2c: E2 08 00 20 3F 80 11 00 00 00 00 00 00 D9 [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 17 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 17 00 20 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 29 [03:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:18:28]wFMCommunicate OK [03:18:28]requested_item fd.num is exist - process it [03:18:28]SAM_PROTO_GetFieldsCounters [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 13 00 00 [03:18:28]Write to MH i2c: E2 08 00 21 3F 80 13 00 00 00 00 00 00 DC [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 62 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 62 00 21 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 0A 00 00 0E 04 04 00 11 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 68 [03:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 0A 00 00 0E 04 04 00 11 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 [03:18:28]wFMCommunicate OK [03:18:28]SAM_PROTO_GetFieldsCounters done [03:18:28]requested_item shift.num is exist - process it [03:18:28]requested_item shift.opened is exist - process it [03:18:28]req_shift_opened [03:18:28]FM_GetShiftState [03:18:28]SAM_PROTO_GetShiftState [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 13 01 00 [03:18:28]Write to MH i2c: E2 08 00 22 3F 80 13 01 00 00 00 00 00 DE [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0E 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0E 00 22 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 AB [03:18:28]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:18:28]wFMCommunicate OK [03:18:28]SAM_PROTO_GetShiftState done [03:18:28]FM_GetShiftState done [03:18:28]req_shift_opened done [03:18:28]requested_item shift.open_date is exist - process it [03:18:28]req_shift_open_date [03:18:28]req_shift_open_date done [03:18:28]produce_requested_data done [03:18:28]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2568,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:18:28]process_action_free close_receipt [03:18:28]json_value_free [03:18:28]json_value_free done [03:18:28]process_json_proto returns [03:18:28]Send response to host [03:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2568,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:18:28]free response buf [03:18:28]execute_script done [03:18:28]execute_script returns [03:18:28]free content buf [03:18:28]Sock 7.Close socket [03:18:28]Sock 7.Thread stoped [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:01]accept exits with 9 [03:21:01]New connection [03:21:01]New thread 3067481444 created [03:21:01]Thread 3067624804 joined [03:21:01]Waiting for new connection... [03:21:01] Sock 9.Parse request [03:21:01]Sock 9.Check first char [03:21:01]Sock 9.First char is OK [03:21:01]request: POST /json_proto HTTP/1.0 [03:21:01]Method: POST [03:21:01]URL: /json_proto [03:21:01]Method is POST - this is cgi request [03:21:01]url: /json_proto [03:21:01]query_string will be loaded in cgi processing [03:21:01]execute_cgi json_proto POST (null) [03:21:01]execute_cgi path=json_proto method=POST [03:21:01]POST find Content-Length [03:21:01]Host: 172.17.45.132:8080 [03:21:01]Content-Length: 901 [03:21:01]Content-Type: application/json [03:21:01] [03:21:01]POST finish read [03:21:01]Found Content-Length = 901 [03:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126755", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:01]execute_script... [03:21:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126755", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:01]POST & json_proto [03:21:01]process_json_proto [03:21:01]json parsed OK: [03:21:01]protocol is kg_v1.0 [03:21:01]action value=close_receipt [03:21:01]process_action close_receipt [03:21:01]cmd_close_receipt [03:21:01]MH_GetDate [03:21:01]Write to MH i2c: F0 00 00 23 3F 51 [03:21:01]Write i2c OK [03:21:01]MH_I2C_Read... [03:21:01]Read from MH i2c: F0 [03:21:01]MH_I2C_Read... [03:21:01]Read from MH i2c: F0 09 00 [03:21:01]MH_I2C_Read... [03:21:01]Read from MH i2c: F0 09 00 23 3F 00 A3 AD A9 66 E3 0B 90 66 9D [03:21:01]GetLastDocTimeStamp 1722395911 [03:21:01]current date 1722396067 [03:21:01]FM_GetShiftState [03:21:01]SAM_PROTO_GetShiftState [03:21:01]wFMCommunicate request_size=4 [03:21:01]MH_SAM_APDU [03:21:01]CAPDU: 80 13 01 00 [03:21:01]Write to MH i2c: E2 08 00 24 3F 80 13 01 00 00 00 00 00 E0 [03:21:01]Write i2c OK [03:21:01]MH_I2C_Read... [03:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:01]Read from MH i2c: E2 [03:21:01]MH_I2C_Read... [03:21:01]Read from MH i2c: E2 0E 00 [03:21:01]MH_I2C_Read... [03:21:01]Read from MH i2c: E2 0E 00 24 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 AD [03:21:01]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:21:01]wFMCommunicate OK [03:21:01]SAM_PROTO_GetShiftState done [03:21:01]FM_GetShiftState done [03:21:01]opened in 1722384689 [03:21:01]opened+sec_in_day 1722471089 [03:21:01]quantity*price = 10000 [03:21:01]sum+1 = 10001 [03:21:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 22 31.07.2024 03:21 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2569 ФПД: 116778012995965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T032108&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2569&fm=116778012995965&tin=02508201610067®Number=0000000000189667&sum=19500 0 [03:21:02]StoreToDocumentArchive [03:21:02]shift 17 fd 2569 [03:21:02]save to /storage/0017/doc_00002569 [03:21:02]save last doc name /storage/0017/doc_00002569 to /storage/kkm_last_doc_name [03:21:02]save OK [03:21:02]Clear old archive folders... [03:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=393 [03:21:02]tlvbuf is B6F7E6D0 [03:21:02]SAM_PROTO_ClearQueue [03:21:02]wFMCommunicate request_size=4 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 09 00 00 [03:21:02]Write to MH i2c: E2 08 00 31 3F 80 09 00 00 00 00 00 00 E2 [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 31 3F 00 90 00 E4 [03:21:02]RAPDU: 90 00 [03:21:02]wFMCommunicate OK [03:21:02]SAM_PROTO_ClearQueue done [03:21:02]KKMCreateOFDPacket [03:21:02]OFDProtocolAddRootSTLVToBuf [03:21:02]FM_MakeSignedData [03:21:02]FM_MakeSignedData [03:21:02]SAM_PROTO_SignData [03:21:02]wFMCommunicate request_size=4 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 0D 01 02 [03:21:02]Write to MH i2c: E2 08 00 32 3F 80 0D 01 02 00 00 00 00 EA [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 32 3F 00 90 00 E5 [03:21:02]RAPDU: 90 00 [03:21:02]wFMCommunicate OK [03:21:02]wFMCommunicate request_size=255 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 [03:21:02]Write to MH i2c: E2 02 01 33 3F 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 4D [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 33 3F 00 90 00 E6 [03:21:02]RAPDU: 90 00 [03:21:02]wFMCommunicate OK [03:21:02]wFMCommunicate request_size=152 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 A4 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 0A 00 00 35 04 06 00 6A 35 7F FB 71 7D [03:21:02]Write to MH i2c: E2 9B 00 34 3F 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 A4 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 0A 00 00 35 04 06 00 6A 35 7F FB 71 7D 00 00 28 [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 03 00 34 3F 00 90 00 E7 [03:21:02]RAPDU: 90 00 [03:21:02]wFMCommunicate OK [03:21:02]wFMCommunicate request_size=4 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 0D 03 02 [03:21:02]Write to MH i2c: E2 08 00 35 3F 80 0D 03 02 00 00 00 00 EF [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 0B 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 0B 00 35 3F 00 F0 13 FE 66 53 B3 E1 B7 90 00 F5 [03:21:02]RAPDU: F0 13 FE 66 53 B3 E1 B7 90 00 [03:21:02]wFMCommunicate OK [03:21:02]SAM_PROTO_SignData done [03:21:02]FM_MakeSignedData done [03:21:02]CreateOFDProtocolMessage [03:21:02]wFMCommunicate request_size=4 [03:21:02]MH_SAM_APDU [03:21:02]CAPDU: 80 11 00 00 [03:21:02]Write to MH i2c: E2 08 00 36 3F 80 11 00 00 00 00 00 00 EF [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:02]Read from MH i2c: E2 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 17 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: E2 17 00 36 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3F [03:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:21:02]wFMCommunicate OK [03:21:02]CreateOFDProtocolMessage done [03:21:02]OFDSenderStorePacket 2569 [03:21:02]StoreOFDPacket docnum=2569 [03:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9D 01 00 00 13 4F 95 01 DD 89 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 A4 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 0A 00 00 35 04 06 00 6A 35 7F FB 71 7D F0 13 FE 66 53 B3 E1 B7 [03:21:02]CheckFolder [03:21:02]dirname=/storage/ofd_packets [03:21:02]CheckFolder done [03:21:02]ProducePacketName [03:21:02]name=ofd_packets/00002569 [03:21:02]NVStorageSaveData ofd_packets/00002569 [03:21:02]File name is /storage/ofd_packets/00002569 [03:21:02]Write 443 bytes [03:21:02]NVStorageSaveData done [03:21:02]OFDSenderStorePacket done [03:21:02]KKMCreateOFDPacket done [03:21:02]NVStorageSaveData kkm_last_timestamp [03:21:02]File name is /storage/kkm_last_timestamp [03:21:02]Write 4 bytes [03:21:02]NVStorageSaveData done [03:21:02]ExternCall_PrintAddStr [03:21:02]wPrintStart [03:21:02]Write to MH i2c: 01 00 00 37 3F 76 [03:21:02]Write i2c OK [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: 01 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: 01 07 00 [03:21:02]MH_I2C_Read... [03:21:02]Read from MH i2c: 01 07 00 37 3F 00 00 00 00 00 FF 0F 8B [03:21:02]RasterBufferAndPrint [03:21:02]line Счет N : (3)126755 [03:21:02]line ИНН: 02508201610067 [03:21:02]line Контрольно-Кассовый Чек [03:21:02]line ПРОДАЖА [03:21:02]line Товар: 4700000480814 [03:21:02]line Пиво Живое 0,5 ст [03:21:02]line 1.000 * 100.00 [03:21:02]line = 100.00 [03:21:02]line НДС 12% НСП 1% [03:21:02]line > о реализуемом товаре [03:21:02]line Товар: 4700000480050 [03:21:02]line Напиток Nitro Energy эн green ж/б 0,45л [03:21:02]line 1.000 * 95.00 [03:21:02]line = 95.00 [03:21:02]line НДС 12% НСП 1% [03:21:02]line > о реализуемом товаре [03:21:02]line ИТОГО: 195.00 [03:21:02]line НСП 1% : 1.72 [03:21:02]line НДС 12% : 20.71 [03:21:02]line Наличными: 195.00 [03:21:02]line Безнал.: 0.00 [03:21:02]line Место: АЗС № 127 "Партнер Нефть" [03:21:02]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:21:02]line СНО: Общий режим [03:21:03]line Чек 22 31.07.2024 03:21 [03:21:03]line Смена: 17 ФФД: 1.0 [03:21:03]line ЗНМ: 0300000161 [03:21:03]line РНМ: 0000000000189667 [03:21:03]line Версия ККМ: v1.0 [03:21:03]line ФМ: 0000000002094248 [03:21:03]line ФД: 2569 [03:21:03]line ФПД: 116778012995965 [03:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T032108&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2569&fm=116778012995965&tin=02508201610067®Number=0000000000189667&sum=19500 [03:21:03]line 0 [03:21:03]OFD Sender: Processing packet 2569 [packets to send 1, broken 0] [03:21:03]ProducePacketName [03:21:03]name=ofd_packets/00002569 [03:21:03]OFD Sender: To server: pG, [03:21:03]CommunicateWithHost lk.salyk.kg:30040 [03:21:03]ConnectInit lk.salyk.kg [03:21:03]written 0, free lines is 4095 [03:21:03]Connected sock=10 [03:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9D 01 00 00 13 4F 95 01 DD 89 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 A4 AD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 0A 00 00 35 04 06 00 6A 35 7F FB 71 7D F0 13 FE 66 53 B3 E1 B7 [03:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E1 15 47 00 B6 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 0A 00 00 F4 03 04 00 0B 59 A9 66 B6 04 01 00 00 E4 A8 73 FD 7E 99 45 03 [03:21:03]CommunicateWithHost err = 0 [03:21:03]CheckOFDResponse [03:21:03]1017 (14) - 77093643461234 [03:21:03]1041 (16) - 0000000002094248 [03:21:03]1040 (4) - 2569 [03:21:03]1012 (4) - 30.07.2024 21:20 [03:21:03]1206 (1) - 0 [03:21:03]OFD Sender: Remove packet 2569 [03:21:03]ProducePacketName [03:21:03]name=ofd_packets/00002569 [03:21:03]NVStorageDeleteData [03:21:03]Write to MH i2c: 01 00 00 66 3F A5 [03:21:03]Write i2c OK [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: 01 [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: 01 07 00 [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: 01 07 00 66 3F 00 00 00 00 00 C9 0C 81 [03:21:03]RasterBufferAndPrint [03:21:03]line [03:21:03]line [03:21:03]line [03:21:03]line [03:21:03]line [03:21:03]written 0, free lines is 3280 [03:21:03]MH_Cut [03:21:03]Write to MH i2c: D1 01 00 6D 3F 01 7E [03:21:03]Write i2c OK [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: D1 [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: D1 01 00 [03:21:03]MH_I2C_Read... [03:21:03]Read from MH i2c: D1 01 00 6D 3F 00 7D [03:21:03]Write to MH i2c: 01 00 00 6E 3F AD [03:21:03]Write i2c OK [03:21:03]MH_I2C_Read... [03:21:04]OFD Sender: No OFD packet to send [03:21:04]*** Cut start [03:21:04]*** Partial cut [03:21:04]*** CUTSNS_PIN = 1 [03:21:04]*** CUTSNS_PIN = 0 [03:21:04]*** Brake cut motor [03:21:05]Read from MH i2c: 01 [03:21:05]MH_I2C_Read... [03:21:05]*** Stop cut motor [03:21:05]*** Cut end [03:21:05]Read from MH i2c: 01 07 00 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: 01 07 00 6E 3F 00 00 00 00 00 FF 0F C2 [03:21:05]process_action close_receipt done [03:21:05]requested_data is exist [03:21:05]produce_requested_data [03:21:05]requested_item fm.sn is exist - process it [03:21:05]wFMCommunicate request_size=4 [03:21:05]MH_SAM_APDU [03:21:05]CAPDU: 80 11 00 00 [03:21:05]Write to MH i2c: E2 08 00 6F 3F 80 11 00 00 00 00 00 00 28 [03:21:05]Write i2c OK [03:21:05]MH_I2C_Read... [03:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:05]Read from MH i2c: E2 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 17 00 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 17 00 6F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 78 [03:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:21:05]wFMCommunicate OK [03:21:05]requested_item fd.num is exist - process it [03:21:05]SAM_PROTO_GetFieldsCounters [03:21:05]wFMCommunicate request_size=4 [03:21:05]MH_SAM_APDU [03:21:05]CAPDU: 80 13 00 00 [03:21:05]Write to MH i2c: E2 08 00 70 3F 80 13 00 00 00 00 00 00 2B [03:21:05]Write i2c OK [03:21:05]MH_I2C_Read... [03:21:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:05]Read from MH i2c: E2 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 62 00 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 62 00 70 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 09 0A 00 00 0E 04 04 00 11 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 BB [03:21:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 09 0A 00 00 0E 04 04 00 11 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 [03:21:05]wFMCommunicate OK [03:21:05]SAM_PROTO_GetFieldsCounters done [03:21:05]requested_item shift.num is exist - process it [03:21:05]requested_item shift.opened is exist - process it [03:21:05]req_shift_opened [03:21:05]FM_GetShiftState [03:21:05]SAM_PROTO_GetShiftState [03:21:05]wFMCommunicate request_size=4 [03:21:05]MH_SAM_APDU [03:21:05]CAPDU: 80 13 01 00 [03:21:05]Write to MH i2c: E2 08 00 71 3F 80 13 01 00 00 00 00 00 2D [03:21:05]Write i2c OK [03:21:05]MH_I2C_Read... [03:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:05]Read from MH i2c: E2 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 0E 00 [03:21:05]MH_I2C_Read... [03:21:05]Read from MH i2c: E2 0E 00 71 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 FA [03:21:05]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:21:05]wFMCommunicate OK [03:21:05]SAM_PROTO_GetShiftState done [03:21:05]FM_GetShiftState done [03:21:05]req_shift_opened done [03:21:05]requested_item shift.open_date is exist - process it [03:21:05]req_shift_open_date [03:21:05]req_shift_open_date done [03:21:05]produce_requested_data done [03:21:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2569,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:21:05]process_action_free close_receipt [03:21:05]json_value_free [03:21:05]json_value_free done [03:21:05]process_json_proto returns [03:21:05]Send response to host [03:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2569,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:21:05]free response buf [03:21:05]execute_script done [03:21:05]execute_script returns [03:21:05]free content buf [03:21:05]Sock 9.Close socket [03:21:05]Sock 9.Thread stoped [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:22]accept exits with 7 [03:29:22]New connection [03:29:22]New thread 3067624804 created [03:29:22]Thread 3067481444 joined [03:29:22]Waiting for new connection... [03:29:22] Sock 7.Parse request [03:29:22]Sock 7.Check first char [03:29:22]Sock 7.First char is OK [03:29:22]request: POST /json_proto HTTP/1.0 [03:29:22]Method: POST [03:29:22]URL: /json_proto [03:29:22]Method is POST - this is cgi request [03:29:22]url: /json_proto [03:29:22]query_string will be loaded in cgi processing [03:29:22]execute_cgi json_proto POST (null) [03:29:22]execute_cgi path=json_proto method=POST [03:29:22]POST find Content-Length [03:29:22]Host: 172.17.45.132:8080 [03:29:22]Content-Length: 630 [03:29:22]Content-Type: application/json [03:29:22] [03:29:22]POST finish read [03:29:22]Found Content-Length = 630 [03:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126756", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:22]execute_script... [03:29: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 : (3)126756", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:22]POST & json_proto [03:29:22]process_json_proto [03:29:22]json parsed OK: [03:29:22]protocol is kg_v1.0 [03:29:22]action value=close_receipt [03:29:22]process_action close_receipt [03:29:22]cmd_close_receipt [03:29:22]MH_GetDate [03:29:22]Write to MH i2c: F0 00 00 72 3F A0 [03:29:22]Write i2c OK [03:29:22]MH_I2C_Read... [03:29:22]Read from MH i2c: F0 [03:29:22]MH_I2C_Read... [03:29:22]Read from MH i2c: F0 09 00 [03:29:22]MH_I2C_Read... [03:29:22]Read from MH i2c: F0 09 00 72 3F 00 99 AF A9 66 E3 0B 90 66 E4 [03:29:22]GetLastDocTimeStamp 1722396068 [03:29:22]current date 1722396569 [03:29:22]FM_GetShiftState [03:29:22]SAM_PROTO_GetShiftState [03:29:22]wFMCommunicate request_size=4 [03:29:22]MH_SAM_APDU [03:29:22]CAPDU: 80 13 01 00 [03:29:22]Write to MH i2c: E2 08 00 73 3F 80 13 01 00 00 00 00 00 2F [03:29:22]Write i2c OK [03:29:22]MH_I2C_Read... [03:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:22]Read from MH i2c: E2 [03:29:22]MH_I2C_Read... [03:29:22]Read from MH i2c: E2 0E 00 [03:29:22]MH_I2C_Read... [03:29:22]Read from MH i2c: E2 0E 00 73 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 FC [03:29:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:29:22]wFMCommunicate OK [03:29:22]SAM_PROTO_GetShiftState done [03:29:22]FM_GetShiftState done [03:29:22]opened in 1722384689 [03:29:22]opened+sec_in_day 1722471089 [03:29:22]quantity*price = 20000 [03:29:22]sum+1 = 20001 [03:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 23 31.07.2024 03:29 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2570 ФПД: 279851290970157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T032929&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2570&fm=279851290970157&tin=02508201610067®Number=0000000000189667&sum=20000 0 [03:29:24]StoreToDocumentArchive [03:29:24]shift 17 fd 2570 [03:29:24]save to /storage/0017/doc_00002570 [03:29:24]save last doc name /storage/0017/doc_00002570 to /storage/kkm_last_doc_name [03:29:24]save OK [03:29:24]Clear old archive folders... [03:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=270 [03:29:24]tlvbuf is 0091E810 [03:29:24]SAM_PROTO_ClearQueue [03:29:24]wFMCommunicate request_size=4 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 09 00 00 [03:29:24]Write to MH i2c: E2 08 00 80 3F 80 09 00 00 00 00 00 00 31 [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 80 3F 00 90 00 33 [03:29:24]RAPDU: 90 00 [03:29:24]wFMCommunicate OK [03:29:24]SAM_PROTO_ClearQueue done [03:29:24]KKMCreateOFDPacket [03:29:24]OFDProtocolAddRootSTLVToBuf [03:29:24]FM_MakeSignedData [03:29:24]FM_MakeSignedData [03:29:24]SAM_PROTO_SignData [03:29:24]wFMCommunicate request_size=4 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 0D 01 02 [03:29:24]Write to MH i2c: E2 08 00 81 3F 80 0D 01 02 00 00 00 00 39 [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 81 3F 00 90 00 34 [03:29:24]RAPDU: 90 00 [03:29:24]wFMCommunicate OK [03:29:24]wFMCommunicate request_size=255 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 99 AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [03:29:24]Write to MH i2c: E2 02 01 82 3F 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 99 AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 16 [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 82 3F 00 90 00 35 [03:29:24]RAPDU: 90 00 [03:29:24]wFMCommunicate OK [03:29:24]wFMCommunicate request_size=29 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 0A 0A 00 00 35 04 06 00 FE 85 F4 C9 C8 2D [03:29:24]Write to MH i2c: E2 20 00 83 3F 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 0A 0A 00 00 35 04 06 00 FE 85 F4 C9 C8 2D 00 00 47 [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]OFD Sender: No OFD packet to send [03:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 03 00 83 3F 00 90 00 36 [03:29:24]RAPDU: 90 00 [03:29:24]wFMCommunicate OK [03:29:24]wFMCommunicate request_size=4 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 0D 03 02 [03:29:24]Write to MH i2c: E2 08 00 84 3F 80 0D 03 02 00 00 00 00 3E [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 0B 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 0B 00 84 3F 00 1E C6 01 31 CB E8 3B 6E 90 00 B1 [03:29:24]RAPDU: 1E C6 01 31 CB E8 3B 6E 90 00 [03:29:24]wFMCommunicate OK [03:29:24]SAM_PROTO_SignData done [03:29:24]FM_MakeSignedData done [03:29:24]CreateOFDProtocolMessage [03:29:24]wFMCommunicate request_size=4 [03:29:24]MH_SAM_APDU [03:29:24]CAPDU: 80 11 00 00 [03:29:24]Write to MH i2c: E2 08 00 85 3F 80 11 00 00 00 00 00 00 3E [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:24]Read from MH i2c: E2 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 17 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: E2 17 00 85 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [03:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:29:24]wFMCommunicate OK [03:29:24]CreateOFDProtocolMessage done [03:29:24]OFDSenderStorePacket 2570 [03:29:24]StoreOFDPacket docnum=2570 [03:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 15 63 1A 01 4B 0F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 99 AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 0A 00 00 35 04 06 00 FE 85 F4 C9 C8 2D 1E C6 01 31 CB E8 3B 6E [03:29:24]CheckFolder [03:29:24]dirname=/storage/ofd_packets [03:29:24]CheckFolder done [03:29:24]ProducePacketName [03:29:24]name=ofd_packets/00002570 [03:29:24]NVStorageSaveData ofd_packets/00002570 [03:29:24]File name is /storage/ofd_packets/00002570 [03:29:24]Write 320 bytes [03:29:24]NVStorageSaveData done [03:29:24]OFDSenderStorePacket done [03:29:24]KKMCreateOFDPacket done [03:29:24]NVStorageSaveData kkm_last_timestamp [03:29:24]File name is /storage/kkm_last_timestamp [03:29:24]Write 4 bytes [03:29:24]NVStorageSaveData done [03:29:24]ExternCall_PrintAddStr [03:29:24]wPrintStart [03:29:24]Write to MH i2c: 01 00 00 86 3F C5 [03:29:24]Write i2c OK [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: 01 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: 01 07 00 [03:29:24]MH_I2C_Read... [03:29:24]Read from MH i2c: 01 07 00 86 3F 00 00 00 00 00 FF 0F DA [03:29:24]RasterBufferAndPrint [03:29:24]line Счет N : (3)126756 [03:29:24]line ИНН: 02508201610067 [03:29:24]line Контрольно-Кассовый Чек [03:29:24]line ПРОДАЖА [03:29:24]line Товар: 4700000480814 [03:29:24]line Пиво Живое 0,5 ст [03:29:24]line 2.000 * 100.00 [03:29:24]line = 200.00 [03:29:24]line НДС 12% НСП 1% [03:29:24]line > о реализуемом товаре [03:29:24]line ИТОГО: 200.00 [03:29:24]line НСП 1% : 1.77 [03:29:24]line НДС 12% : 21.24 [03:29:24]line Наличными: 200.00 [03:29:24]line Безнал.: 0.00 [03:29:24]line Место: АЗС № 127 "Партнер Нефть" [03:29:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:29:24]line СНО: Общий режим [03:29:24]line Чек 23 31.07.2024 03:29 [03:29:24]line Смена: 17 ФФД: 1.0 [03:29:24]line ЗНМ: 0300000161 [03:29:24]line РНМ: 0000000000189667 [03:29:24]line Версия ККМ: v1.0 [03:29:24]line ФМ: 0000000002094248 [03:29:24]line ФД: 2570 [03:29:24]line ФПД: 279851290970157 [03:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T032929&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2570&fm=279851290970157&tin=02508201610067®Number=0000000000189667&sum=20000 [03:29:24]line 0 [03:29:24]OFD Sender: Processing packet 2570 [packets to send 1, broken 0] [03:29:24]ProducePacketName [03:29:24]name=ofd_packets/00002570 [03:29:24]OFD Sender: To server: pG, [03:29:24]CommunicateWithHost lk.salyk.kg:30040 [03:29:24]ConnectInit lk.salyk.kg [03:29:24]written 0, free lines is 4095 [03:29:25]Connected sock=10 [03:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 15 63 1A 01 4B 0F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 99 AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 0A 00 00 35 04 06 00 FE 85 F4 C9 C8 2D 1E C6 01 31 CB E8 3B 6E [03:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9E 77 47 00 B6 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 32 30 39 34 32 34 38 10 04 04 00 0A 0A 00 00 F4 03 04 00 01 5B A9 66 B6 04 01 00 00 69 61 D9 FA DA B9 AA A7 [03:29:25]CommunicateWithHost err = 0 [03:29:25]CheckOFDResponse [03:29:25]1017 (14) - 77093643461234 [03:29:25]1041 (16) - 0000000002094248 [03:29:25]1040 (4) - 2570 [03:29:25]1012 (4) - 30.07.2024 21:28 [03:29:25]1206 (1) - 0 [03:29:25]OFD Sender: Remove packet 2570 [03:29:25]ProducePacketName [03:29:25]name=ofd_packets/00002570 [03:29:25]NVStorageDeleteData [03:29:25]Write to MH i2c: 01 00 00 AE 3F ED [03:29:25]Write i2c OK [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: 01 [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: 01 07 00 [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: 01 07 00 AE 3F 00 00 00 00 00 1F 0D 20 [03:29:25]RasterBufferAndPrint [03:29:25]line [03:29:25]line [03:29:25]line [03:29:25]line [03:29:25]line [03:29:25]written 0, free lines is 3368 [03:29:25]MH_Cut [03:29:25]Write to MH i2c: D1 01 00 B5 3F 01 C6 [03:29:25]Write i2c OK [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: D1 [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: D1 01 00 [03:29:25]MH_I2C_Read... [03:29:25]Read from MH i2c: D1 01 00 B5 3F 00 C5 [03:29:25]Write to MH i2c: 01 00 00 B6 3F F5 [03:29:25]Write i2c OK [03:29:25]MH_I2C_Read... [03:29:25]OFD Sender: No OFD packet to send [03:29:26]*** Cut start [03:29:26]*** Partial cut [03:29:26]*** CUTSNS_PIN = 1 [03:29:26]*** CUTSNS_PIN = 0 [03:29:26]*** Brake cut motor [03:29:26]Read from MH i2c: 01 [03:29:26]MH_I2C_Read... [03:29:26]*** Stop cut motor [03:29:26]*** Cut end [03:29:26]Read from MH i2c: 01 07 00 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: 01 07 00 B6 3F 00 00 00 00 00 FF 0F 0A [03:29:26]process_action close_receipt done [03:29:26]requested_data is exist [03:29:26]produce_requested_data [03:29:26]requested_item fm.sn is exist - process it [03:29:26]wFMCommunicate request_size=4 [03:29:26]MH_SAM_APDU [03:29:26]CAPDU: 80 11 00 00 [03:29:26]Write to MH i2c: E2 08 00 B7 3F 80 11 00 00 00 00 00 00 70 [03:29:26]Write i2c OK [03:29:26]MH_I2C_Read... [03:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:26]Read from MH i2c: E2 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 17 00 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 17 00 B7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C0 [03:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:29:26]wFMCommunicate OK [03:29:26]requested_item fd.num is exist - process it [03:29:26]SAM_PROTO_GetFieldsCounters [03:29:26]wFMCommunicate request_size=4 [03:29:26]MH_SAM_APDU [03:29:26]CAPDU: 80 13 00 00 [03:29:26]Write to MH i2c: E2 08 00 B8 3F 80 13 00 00 00 00 00 00 73 [03:29:26]Write i2c OK [03:29:26]MH_I2C_Read... [03:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:29:26]Read from MH i2c: E2 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 62 00 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 62 00 B8 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0A 0A 00 00 0E 04 04 00 11 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 07 [03:29:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0A 0A 00 00 0E 04 04 00 11 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 [03:29:26]wFMCommunicate OK [03:29:26]SAM_PROTO_GetFieldsCounters done [03:29:26]requested_item shift.num is exist - process it [03:29:26]requested_item shift.opened is exist - process it [03:29:26]req_shift_opened [03:29:26]FM_GetShiftState [03:29:26]SAM_PROTO_GetShiftState [03:29:26]wFMCommunicate request_size=4 [03:29:26]MH_SAM_APDU [03:29:26]CAPDU: 80 13 01 00 [03:29:26]Write to MH i2c: E2 08 00 B9 3F 80 13 01 00 00 00 00 00 75 [03:29:26]Write i2c OK [03:29:26]MH_I2C_Read... [03:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:26]Read from MH i2c: E2 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 0E 00 [03:29:26]MH_I2C_Read... [03:29:26]Read from MH i2c: E2 0E 00 B9 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 42 [03:29:26]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:29:26]wFMCommunicate OK [03:29:26]SAM_PROTO_GetShiftState done [03:29:26]FM_GetShiftState done [03:29:26]req_shift_opened done [03:29:26]requested_item shift.open_date is exist - process it [03:29:26]req_shift_open_date [03:29:26]req_shift_open_date done [03:29:26]produce_requested_data done [03:29:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2570,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:29:26]process_action_free close_receipt [03:29:26]json_value_free [03:29:26]json_value_free done [03:29:26]process_json_proto returns [03:29:26]Send response to host [03:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2570,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:29:26]free response buf [03:29:26]execute_script done [03:29:26]execute_script returns [03:29:26]free content buf [03:29:26]Sock 7.Close socket [03:29:26]Sock 7.Thread stoped [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:29:59]accept exits with 9 [03:29:59]New connection [03:29:59]New thread 3067481444 created [03:29:59]Thread 3067624804 joined [03:29:59]Waiting for new connection... [03:29:59] Sock 9.Parse request [03:29:59]Sock 9.Check first char [03:29:59]Sock 9.First char is OK [03:29:59]request: POST /json_proto HTTP/1.0 [03:29:59]Method: POST [03:29:59]URL: /json_proto [03:29:59]Method is POST - this is cgi request [03:29:59]url: /json_proto [03:29:59]query_string will be loaded in cgi processing [03:29:59]execute_cgi json_proto POST (null) [03:29:59]execute_cgi path=json_proto method=POST [03:29:59]POST find Content-Length [03:29:59]Host: 172.17.45.132:8080 [03:29:59]Content-Length: 633 [03:29:59]Content-Type: application/json [03:29:59] [03:29:59]POST finish read [03:29:59]Found Content-Length = 633 [03:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126757", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:59]execute_script... [03:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126757", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:59]POST & json_proto [03:29:59]process_json_proto [03:29:59]json parsed OK: [03:29:59]protocol is kg_v1.0 [03:29:59]action value=close_receipt [03:29:59]process_action close_receipt [03:29:59]cmd_close_receipt [03:29:59]MH_GetDate [03:29:59]Write to MH i2c: F0 00 00 BA 3F E8 [03:29:59]Write i2c OK [03:29:59]MH_I2C_Read... [03:29:59]Read from MH i2c: F0 [03:29:59]MH_I2C_Read... [03:29:59]Read from MH i2c: F0 09 00 [03:29:59]MH_I2C_Read... [03:29:59]Read from MH i2c: F0 09 00 BA 3F 00 BE AF A9 66 E3 0B 90 66 51 [03:29:59]GetLastDocTimeStamp 1722396569 [03:29:59]current date 1722396606 [03:29:59]FM_GetShiftState [03:29:59]SAM_PROTO_GetShiftState [03:29:59]wFMCommunicate request_size=4 [03:29:59]MH_SAM_APDU [03:29:59]CAPDU: 80 13 01 00 [03:29:59]Write to MH i2c: E2 08 00 BB 3F 80 13 01 00 00 00 00 00 77 [03:29:59]Write i2c OK [03:29:59]MH_I2C_Read... [03:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:59]Read from MH i2c: E2 [03:29:59]MH_I2C_Read... [03:29:59]Read from MH i2c: E2 0E 00 [03:29:59]MH_I2C_Read... [03:29:59]Read from MH i2c: E2 0E 00 BB 3F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 44 [03:29:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:29:59]wFMCommunicate OK [03:29:59]SAM_PROTO_GetShiftState done [03:29:59]FM_GetShiftState done [03:29:59]opened in 1722384689 [03:29:59]opened+sec_in_day 1722471089 [03:29:59]quantity*price = 7500 [03:29:59]sum+1 = 7501 [03:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 24 31.07.2024 03:30 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2571 ФПД: 249375772191595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T033006&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2571&fm=249375772191595&tin=02508201610067®Number=0000000000189667&sum=7500 0 [03:30:00]StoreToDocumentArchive [03:30:00]shift 17 fd 2571 [03:30:00]save to /storage/0017/doc_00002571 [03:30:00]save last doc name /storage/0017/doc_00002571 to /storage/kkm_last_doc_name [03:30:01]save OK [03:30:01]Clear old archive folders... [03:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=268 [03:30:01]tlvbuf is 0091E810 [03:30:01]SAM_PROTO_ClearQueue [03:30:01]wFMCommunicate request_size=4 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 09 00 00 [03:30:01]Write to MH i2c: E2 08 00 C8 3F 80 09 00 00 00 00 00 00 79 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 C8 3F 00 90 00 7B [03:30:01]RAPDU: 90 00 [03:30:01]wFMCommunicate OK [03:30:01]SAM_PROTO_ClearQueue done [03:30:01]KKMCreateOFDPacket [03:30:01]OFDProtocolAddRootSTLVToBuf [03:30:01]FM_MakeSignedData [03:30:01]FM_MakeSignedData [03:30:01]SAM_PROTO_SignData [03:30:01]wFMCommunicate request_size=4 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 0D 01 02 [03:30:01]Write to MH i2c: E2 08 00 C9 3F 80 0D 01 02 00 00 00 00 81 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 C9 3F 00 90 00 7C [03:30:01]RAPDU: 90 00 [03:30:01]wFMCommunicate OK [03:30:01]wFMCommunicate request_size=255 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [03:30:01]Write to MH i2c: E2 02 01 CA 3F 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 89 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 CA 3F 00 90 00 7D [03:30:01]RAPDU: 90 00 [03:30:01]wFMCommunicate OK [03:30:01]wFMCommunicate request_size=27 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 0B 0A 00 00 35 04 06 00 E2 CE 52 51 2B 6B [03:30:01]Write to MH i2c: E2 1E 00 CB 3F 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 0B 0A 00 00 35 04 06 00 E2 CE 52 51 2B 6B 00 00 D7 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 03 00 CB 3F 00 90 00 7E [03:30:01]RAPDU: 90 00 [03:30:01]wFMCommunicate OK [03:30:01]wFMCommunicate request_size=4 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 0D 03 02 [03:30:01]Write to MH i2c: E2 08 00 CC 3F 80 0D 03 02 00 00 00 00 86 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 0B 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 0B 00 CC 3F 00 67 3F E0 E9 26 6E 91 C3 90 00 DE [03:30:01]RAPDU: 67 3F E0 E9 26 6E 91 C3 90 00 [03:30:01]wFMCommunicate OK [03:30:01]SAM_PROTO_SignData done [03:30:01]FM_MakeSignedData done [03:30:01]CreateOFDProtocolMessage [03:30:01]wFMCommunicate request_size=4 [03:30:01]MH_SAM_APDU [03:30:01]CAPDU: 80 11 00 00 [03:30:01]Write to MH i2c: E2 08 00 CD 3F 80 11 00 00 00 00 00 00 86 [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:01]Read from MH i2c: E2 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 17 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: E2 17 00 CD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D6 [03:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:30:01]wFMCommunicate OK [03:30:01]CreateOFDProtocolMessage done [03:30:01]OFDSenderStorePacket 2571 [03:30:01]StoreOFDPacket docnum=2571 [03:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 68 3B 18 01 11 FE 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 0A 00 00 35 04 06 00 E2 CE 52 51 2B 6B 67 3F E0 E9 26 6E 91 C3 [03:30:01]CheckFolder [03:30:01]dirname=/storage/ofd_packets [03:30:01]CheckFolder done [03:30:01]ProducePacketName [03:30:01]name=ofd_packets/00002571 [03:30:01]NVStorageSaveData ofd_packets/00002571 [03:30:01]File name is /storage/ofd_packets/00002571 [03:30:01]Write 318 bytes [03:30:01]NVStorageSaveData done [03:30:01]OFDSenderStorePacket done [03:30:01]KKMCreateOFDPacket done [03:30:01]NVStorageSaveData kkm_last_timestamp [03:30:01]File name is /storage/kkm_last_timestamp [03:30:01]Write 4 bytes [03:30:01]NVStorageSaveData done [03:30:01]ExternCall_PrintAddStr [03:30:01]wPrintStart [03:30:01]Write to MH i2c: 01 00 00 CE 3F 0D [03:30:01]Write i2c OK [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: 01 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: 01 07 00 [03:30:01]MH_I2C_Read... [03:30:01]Read from MH i2c: 01 07 00 CE 3F 00 00 00 00 00 FF 0F 22 [03:30:01]RasterBufferAndPrint [03:30:01]line Счет N : (3)126757 [03:30:01]line ИНН: 02508201610067 [03:30:01]line Контрольно-Кассовый Чек [03:30:01]line ПРОДАЖА [03:30:01]line Товар: 40822938 [03:30:01]line Напиток Фанта 0,5л [03:30:01]line 1.000 * 75.00 [03:30:01]line = 75.00 [03:30:01]line НДС 12% НСП 1% [03:30:01]line > о реализуемом товаре [03:30:01]line ИТОГО: 75.00 [03:30:01]line НСП 1% : 0.66 [03:30:01]line НДС 12% : 7.96 [03:30:01]line Наличными: 75.00 [03:30:01]line Безнал.: 0.00 [03:30:01]line Место: АЗС № 127 "Партнер Нефть" [03:30:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:30:01]line СНО: Общий режим [03:30:01]line Чек 24 31.07.2024 03:30 [03:30:01]line Смена: 17 ФФД: 1.0 [03:30:01]line ЗНМ: 0300000161 [03:30:01]line РНМ: 0000000000189667 [03:30:01]line Версия ККМ: v1.0 [03:30:01]line ФМ: 0000000002094248 [03:30:01]line ФД: 2571 [03:30:01]line ФПД: 249375772191595 [03:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T033006&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2571&fm=249375772191595&tin=02508201610067®Number=0000000000189667&sum=7500 [03:30:01]line 0 [03:30:01]OFD Sender: Processing packet 2571 [packets to send 1, broken 0] [03:30:01]ProducePacketName [03:30:01]name=ofd_packets/00002571 [03:30:01]OFD Sender: To server: pG, [03:30:01]CommunicateWithHost lk.salyk.kg:30040 [03:30:01]ConnectInit lk.salyk.kg [03:30:01]written 0, free lines is 4095 [03:30:01]Connected sock=10 [03:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 68 3B 18 01 11 FE 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE AF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 0A 00 00 35 04 06 00 E2 CE 52 51 2B 6B 67 3F E0 E9 26 6E 91 C3 [03:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 33 2A 47 00 5D 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 0A 00 00 F4 03 04 00 26 5B A9 66 B6 04 01 00 00 4F 74 C0 4F E1 70 BC A1 [03:30:02]CommunicateWithHost err = 0 [03:30:02]CheckOFDResponse [03:30:02]1017 (14) - 77093643461234 [03:30:02]1041 (16) - 0000000002094248 [03:30:02]1040 (4) - 2571 [03:30:02]1012 (4) - 30.07.2024 21:29 [03:30:02]1206 (1) - 0 [03:30:02]OFD Sender: Remove packet 2571 [03:30:02]ProducePacketName [03:30:02]name=ofd_packets/00002571 [03:30:02]NVStorageDeleteData [03:30:02]Write to MH i2c: 01 00 00 F6 3F 35 [03:30:02]Write i2c OK [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: 01 [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: 01 07 00 [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: 01 07 00 F6 3F 00 00 00 00 00 09 0D 52 [03:30:02]RasterBufferAndPrint [03:30:02]line [03:30:02]line [03:30:02]line [03:30:02]line [03:30:02]line [03:30:02]written 0, free lines is 3346 [03:30:02]MH_Cut [03:30:02]Write to MH i2c: D1 01 00 FD 3F 01 0E [03:30:02]Write i2c OK [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: D1 [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: D1 01 00 [03:30:02]MH_I2C_Read... [03:30:02]Read from MH i2c: D1 01 00 FD 3F 00 0D [03:30:02]Write to MH i2c: 01 00 00 FE 3F 3D [03:30:02]Write i2c OK [03:30:02]MH_I2C_Read... [03:30:02]OFD Sender: No OFD packet to send [03:30:02]*** Cut start [03:30:02]*** Partial cut [03:30:02]*** CUTSNS_PIN = 1 [03:30:02]*** CUTSNS_PIN = 0 [03:30:03]*** Brake cut motor [03:30:03]Read from MH i2c: 01 [03:30:03]MH_I2C_Read... [03:30:03]*** Stop cut motor [03:30:03]*** Cut end [03:30:03]Read from MH i2c: 01 07 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: 01 07 00 FE 3F 00 00 00 00 00 FF 0F 52 [03:30:03]process_action close_receipt done [03:30:03]requested_data is exist [03:30:03]produce_requested_data [03:30:03]requested_item fm.sn is exist - process it [03:30:03]wFMCommunicate request_size=4 [03:30:03]MH_SAM_APDU [03:30:03]CAPDU: 80 11 00 00 [03:30:03]Write to MH i2c: E2 08 00 FF 3F 80 11 00 00 00 00 00 00 B8 [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:03]Read from MH i2c: E2 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 17 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 17 00 FF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 08 [03:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:30:03]wFMCommunicate OK [03:30:03]requested_item fd.num is exist - process it [03:30:03]SAM_PROTO_GetFieldsCounters [03:30:03]wFMCommunicate request_size=4 [03:30:03]MH_SAM_APDU [03:30:03]CAPDU: 80 13 00 00 [03:30:03]Write to MH i2c: E2 08 00 00 40 80 13 00 00 00 00 00 00 BC [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:03]Read from MH i2c: E2 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 62 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 62 00 00 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0B 0A 00 00 0E 04 04 00 11 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 54 [03:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0B 0A 00 00 0E 04 04 00 11 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 [03:30:03]wFMCommunicate OK [03:30:03]SAM_PROTO_GetFieldsCounters done [03:30:03]requested_item shift.num is exist - process it [03:30:03]requested_item shift.opened is exist - process it [03:30:03]req_shift_opened [03:30:03]FM_GetShiftState [03:30:03]SAM_PROTO_GetShiftState [03:30:03]wFMCommunicate request_size=4 [03:30:03]MH_SAM_APDU [03:30:03]CAPDU: 80 13 01 00 [03:30:03]Write to MH i2c: E2 08 00 01 40 80 13 01 00 00 00 00 00 BE [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:03]Read from MH i2c: E2 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 01 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 8B [03:30:03]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:30:03]wFMCommunicate OK [03:30:03]SAM_PROTO_GetShiftState done [03:30:03]FM_GetShiftState done [03:30:03]req_shift_opened done [03:30:03]requested_item shift.open_date is exist - process it [03:30:03]req_shift_open_date [03:30:03]req_shift_open_date done [03:30:03]produce_requested_data done [03:30:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2571,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:30:03]process_action_free close_receipt [03:30:03]json_value_free [03:30:03]json_value_free done [03:30:03]process_json_proto returns [03:30:03]Send response to host [03:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2571,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:30:03]free response buf [03:30:03]execute_script done [03:30:03]execute_script returns [03:30:03]free content buf [03:30:03]Sock 9.Close socket [03:30:03]Sock 9.Thread stoped [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:30]accept exits with 7 [03:34:30]New connection [03:34:30]New thread 3067624804 created [03:34:30]Thread 3067481444 joined [03:34:30]Waiting for new connection... [03:34:30] Sock 7.Parse request [03:34:30]Sock 7.Check first char [03:34:30]Sock 7.First char is OK [03:34:30]request: POST /json_proto HTTP/1.0 [03:34:30]Method: POST [03:34:30]URL: /json_proto [03:34:30]Method is POST - this is cgi request [03:34:30]url: /json_proto [03:34:30]query_string will be loaded in cgi processing [03:34:30]execute_cgi json_proto POST (null) [03:34:30]execute_cgi path=json_proto method=POST [03:34:30]POST find Content-Length [03:34:30]Host: 172.17.45.132:8080 [03:34:30]Content-Length: 1187 [03:34:30]Content-Type: application/json [03:34:30] [03:34:30]POST finish read [03:34:30]Found Content-Length = 1187 [03:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126758", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:34:30]execute_script... [03:34:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126758", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:34:30]POST & json_proto [03:34:30]process_json_proto [03:34:30]json parsed OK: [03:34:30]protocol is kg_v1.0 [03:34:30]action value=close_receipt [03:34:30]process_action close_receipt [03:34:30]cmd_close_receipt [03:34:30]MH_GetDate [03:34:30]Write to MH i2c: F0 00 00 02 40 31 [03:34:30]Write i2c OK [03:34:30]MH_I2C_Read... [03:34:30]Read from MH i2c: F0 [03:34:30]MH_I2C_Read... [03:34:30]Read from MH i2c: F0 09 00 [03:34:30]MH_I2C_Read... [03:34:30]Read from MH i2c: F0 09 00 02 40 00 CD B0 A9 66 E3 0B 90 66 AA [03:34:30]GetLastDocTimeStamp 1722396606 [03:34:30]current date 1722396877 [03:34:30]FM_GetShiftState [03:34:30]SAM_PROTO_GetShiftState [03:34:30]wFMCommunicate request_size=4 [03:34:30]MH_SAM_APDU [03:34:30]CAPDU: 80 13 01 00 [03:34:30]Write to MH i2c: E2 08 00 03 40 80 13 01 00 00 00 00 00 C0 [03:34:30]Write i2c OK [03:34:30]MH_I2C_Read... [03:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:34:30]Read from MH i2c: E2 [03:34:30]MH_I2C_Read... [03:34:30]Read from MH i2c: E2 0E 00 [03:34:30]MH_I2C_Read... [03:34:30]Read from MH i2c: E2 0E 00 03 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 8D [03:34:30]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:34:30]wFMCommunicate OK [03:34:30]SAM_PROTO_GetShiftState done [03:34:30]FM_GetShiftState done [03:34:30]opened in 1722384689 [03:34:30]opened+sec_in_day 1722471089 [03:34:30]quantity*price = 11000 [03:34:30]sum+1 = 11001 [03:34:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 525.00 НСП 1% : 4.64 НДС 12% : 55.75 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 25 31.07.2024 03:34 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2572 ФПД: 188054051824146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T033437&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2572&fm=188054051824146&tin=02508201610067®Number=0000000000189667&sum=52500 0 [03:34:31]StoreToDocumentArchive [03:34:31]shift 17 fd 2572 [03:34:31]save to /storage/0017/doc_00002572 [03:34:31]save last doc name /storage/0017/doc_00002572 to /storage/kkm_last_doc_name [03:34:31]save OK [03:34:31]Clear old archive folders... [03:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=507 [03:34:31]tlvbuf is 008B2740 [03:34:31]SAM_PROTO_ClearQueue [03:34:31]wFMCommunicate request_size=4 [03:34:31]MH_SAM_APDU [03:34:31]CAPDU: 80 09 00 00 [03:34:31]Write to MH i2c: E2 08 00 10 40 80 09 00 00 00 00 00 00 C2 [03:34:31]Write i2c OK [03:34:31]MH_I2C_Read... [03:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:34:31]Read from MH i2c: E2 [03:34:31]MH_I2C_Read... [03:34:31]Read from MH i2c: E2 03 00 [03:34:31]MH_I2C_Read... [03:34:31]Read from MH i2c: E2 03 00 10 40 00 90 00 C4 [03:34:31]RAPDU: 90 00 [03:34:31]wFMCommunicate OK [03:34:31]SAM_PROTO_ClearQueue done [03:34:31]KKMCreateOFDPacket [03:34:31]OFDProtocolAddRootSTLVToBuf [03:34:31]FM_MakeSignedData [03:34:31]FM_MakeSignedData [03:34:31]SAM_PROTO_SignData [03:34:31]wFMCommunicate request_size=4 [03:34:31]MH_SAM_APDU [03:34:31]CAPDU: 80 0D 01 02 [03:34:31]Write to MH i2c: E2 08 00 11 40 80 0D 01 02 00 00 00 00 CA [03:34:31]Write i2c OK [03:34:31]MH_I2C_Read... [03:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:34:31]Read from MH i2c: E2 [03:34:31]MH_I2C_Read... [03:34:31]Read from MH i2c: E2 03 00 [03:34:31]MH_I2C_Read... [03:34:31]Read from MH i2c: E2 03 00 11 40 00 90 00 C5 [03:34:31]RAPDU: 90 00 [03:34:31]wFMCommunicate OK [03:34:31]wFMCommunicate request_size=255 [03:34:31]MH_SAM_APDU [03:34:31]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 [03:34:31]Write to MH i2c: E2 02 01 12 40 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 00 00 D5 [03:34:31]Write i2c OK [03:34:31]MH_I2C_Read... [03:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:34:32]Read from MH i2c: E2 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 12 40 00 90 00 C6 [03:34:32]RAPDU: 90 00 [03:34:32]wFMCommunicate OK [03:34:32]wFMCommunicate request_size=255 [03:34:32]MH_SAM_APDU [03:34:32]CAPDU: 80 0D 02 02 FA 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 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 CD B0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 0A 00 [03:34:32]Write to MH i2c: E2 02 01 13 40 80 0D 02 02 FA 00 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 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 CD B0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 0A 00 00 00 3A [03:34:32]Write i2c OK [03:34:32]MH_I2C_Read... [03:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:34:32]Read from MH i2c: E2 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 13 40 00 90 00 C7 [03:34:32]RAPDU: 90 00 [03:34:32]wFMCommunicate OK [03:34:32]wFMCommunicate request_size=16 [03:34:32]MH_SAM_APDU [03:34:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AB 08 BE F5 22 12 [03:34:32]Write to MH i2c: E2 13 00 14 40 80 0D 02 02 0B 00 00 35 04 06 00 AB 08 BE F5 22 12 00 00 BD [03:34:32]Write i2c OK [03:34:32]MH_I2C_Read... [03:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:34:32]Read from MH i2c: E2 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 03 00 14 40 00 90 00 C8 [03:34:32]RAPDU: 90 00 [03:34:32]wFMCommunicate OK [03:34:32]wFMCommunicate request_size=4 [03:34:32]MH_SAM_APDU [03:34:32]CAPDU: 80 0D 03 02 [03:34:32]Write to MH i2c: E2 08 00 15 40 80 0D 03 02 00 00 00 00 D0 [03:34:32]Write i2c OK [03:34:32]MH_I2C_Read... [03:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:34:32]Read from MH i2c: E2 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 0B 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 0B 00 15 40 00 9B E5 A6 F6 F1 B1 CA 3E 90 00 97 [03:34:32]RAPDU: 9B E5 A6 F6 F1 B1 CA 3E 90 00 [03:34:32]wFMCommunicate OK [03:34:32]SAM_PROTO_SignData done [03:34:32]FM_MakeSignedData done [03:34:32]CreateOFDProtocolMessage [03:34:32]wFMCommunicate request_size=4 [03:34:32]MH_SAM_APDU [03:34:32]CAPDU: 80 11 00 00 [03:34:32]Write to MH i2c: E2 08 00 16 40 80 11 00 00 00 00 00 00 D0 [03:34:32]Write i2c OK [03:34:32]MH_I2C_Read... [03:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:34:32]Read from MH i2c: E2 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 17 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: E2 17 00 16 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 20 [03:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:34:32]wFMCommunicate OK [03:34:32]CreateOFDProtocolMessage done [03:34:32]OFDSenderStorePacket 2572 [03:34:32]StoreOFDPacket docnum=2572 [03:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 02 00 00 FA CB 07 02 3B 62 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 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 CD B0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 0A 00 00 35 04 06 00 AB 08 BE F5 22 12 9B E5 A6 F6 F1 B1 CA 3E [03:34:32]CheckFolder [03:34:32]dirname=/storage/ofd_packets [03:34:32]CheckFolder done [03:34:32]ProducePacketName [03:34:32]name=ofd_packets/00002572 [03:34:32]NVStorageSaveData ofd_packets/00002572 [03:34:32]File name is /storage/ofd_packets/00002572 [03:34:32]Write 557 bytes [03:34:32]NVStorageSaveData done [03:34:32]OFDSenderStorePacket done [03:34:32]KKMCreateOFDPacket done [03:34:32]NVStorageSaveData kkm_last_timestamp [03:34:32]File name is /storage/kkm_last_timestamp [03:34:32]Write 4 bytes [03:34:32]NVStorageSaveData done [03:34:32]ExternCall_PrintAddStr [03:34:32]wPrintStart [03:34:32]Write to MH i2c: 01 00 00 17 40 57 [03:34:32]Write i2c OK [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: 01 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: 01 07 00 [03:34:32]MH_I2C_Read... [03:34:32]Read from MH i2c: 01 07 00 17 40 00 00 00 00 00 FF 0F 6C [03:34:32]RasterBufferAndPrint [03:34:32]line Счет N : (3)126758 [03:34:32]line ИНН: 02508201610067 [03:34:32]line Контрольно-Кассовый Чек [03:34:32]line ПРОДАЖА [03:34:32]line Товар: 4870202522015 [03:34:32]line Напиток Maxi Чай Грушевый 1,2л [03:34:32]line 1.000 * 110.00 [03:34:32]line = 110.00 [03:34:32]line НДС 12% НСП 1% [03:34:32]line > о реализуемом товаре [03:34:32]line Товар: 90448300 [03:34:32]line Энерг напиток Red Bull 0,355л [03:34:32]line 1.000 * 265.00 [03:34:32]line = 265.00 [03:34:32]line НДС 12% НСП 1% [03:34:32]line > о реализуемом товаре [03:34:32]line Товар: 46230607 [03:34:32]line Сигареты Richmond Bronze Edition [03:34:32]line 1.000 * 150.00 [03:34:32]line = 150.00 [03:34:32]line НДС 12% НСП 1% [03:34:32]line > о реализуемом товаре [03:34:32]line ИТОГО: 525.00 [03:34:32]line НСП 1% : 4.64 [03:34:32]line НДС 12% : 55.75 [03:34:32]line Наличными: 525.00 [03:34:32]line Безнал.: 0.00 [03:34:32]line Место: АЗС № 127 "Партнер Нефть" [03:34:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:34:32]line СНО: Общий режим [03:34:32]line Чек 25 31.07.2024 03:34 [03:34:32]line Смена: 17 ФФД: 1.0 [03:34:32]line ЗНМ: 0300000161 [03:34:32]line РНМ: 0000000000189667 [03:34:32]line Версия ККМ: v1.0 [03:34:32]line ФМ: 0000000002094248 [03:34:32]line ФД: 2572 [03:34:32]line ФПД: 188054051824146 [03:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T033437&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2572&fm=188054051824146&tin=02508201610067®Number=0000000000189667&sum=52500 [03:34:32]OFD Sender: Processing packet 2572 [packets to send 1, broken 0] [03:34:32]ProducePacketName [03:34:32]name=ofd_packets/00002572 [03:34:32]OFD Sender: To server: pG, [03:34:32]CommunicateWithHost lk.salyk.kg:30040 [03:34:32]ConnectInit lk.salyk.kg [03:34:32]line 0 [03:34:32]written 0, free lines is 4095 [03:34:33]Connected sock=10 [03:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 02 00 00 FA CB 07 02 3B 62 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 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 CD B0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 0A 00 00 35 04 06 00 AB 08 BE F5 22 12 9B E5 A6 F6 F1 B1 CA 3E [03:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 14 B3 47 00 B9 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 0A 00 00 F4 03 04 00 35 5C A9 66 B6 04 01 00 00 70 2B 2B 3D 60 AD D5 79 [03:34:33]CommunicateWithHost err = 0 [03:34:33]CheckOFDResponse [03:34:33]1017 (14) - 77093643461234 [03:34:33]1041 (16) - 0000000002094248 [03:34:33]1040 (4) - 2572 [03:34:33]1012 (4) - 30.07.2024 21:33 [03:34:33]1206 (1) - 0 [03:34:33]OFD Sender: Remove packet 2572 [03:34:33]ProducePacketName [03:34:33]name=ofd_packets/00002572 [03:34:33]NVStorageDeleteData [03:34:33]Write to MH i2c: 01 00 00 4D 40 8D [03:34:33]Write i2c OK [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: 01 [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: 01 07 00 [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: 01 07 00 4D 40 00 00 00 00 00 5A 0C FA [03:34:33]RasterBufferAndPrint [03:34:33]line [03:34:33]line [03:34:33]line [03:34:33]line [03:34:33]line [03:34:33]written 0, free lines is 3172 [03:34:33]MH_Cut [03:34:33]Write to MH i2c: D1 01 00 54 40 01 66 [03:34:33]Write i2c OK [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: D1 [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: D1 01 00 [03:34:33]MH_I2C_Read... [03:34:33]Read from MH i2c: D1 01 00 54 40 00 65 [03:34:33]Write to MH i2c: 01 00 00 55 40 95 [03:34:33]Write i2c OK [03:34:33]MH_I2C_Read... [03:34:33]OFD Sender: No OFD packet to send [03:34:34]*** Cut start [03:34:34]*** Partial cut [03:34:34]*** CUTSNS_PIN = 1 [03:34:34]*** CUTSNS_PIN = 0 [03:34:34]*** Brake cut motor [03:34:34]Read from MH i2c: 01 [03:34:34]MH_I2C_Read... [03:34:34]*** Stop cut motor [03:34:34]*** Cut end [03:34:34]Read from MH i2c: 01 07 00 [03:34:34]MH_I2C_Read... [03:34:34]Read from MH i2c: 01 07 00 55 40 00 00 00 00 00 FF 0F AA [03:34:34]process_action close_receipt done [03:34:34]requested_data is exist [03:34:34]produce_requested_data [03:34:34]requested_item fm.sn is exist - process it [03:34:34]wFMCommunicate request_size=4 [03:34:34]MH_SAM_APDU [03:34:34]CAPDU: 80 11 00 00 [03:34:34]Write to MH i2c: E2 08 00 56 40 80 11 00 00 00 00 00 00 10 [03:34:34]Write i2c OK [03:34:34]MH_I2C_Read... [03:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:34:35]Read from MH i2c: E2 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 17 00 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 17 00 56 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 60 [03:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:34:35]wFMCommunicate OK [03:34:35]requested_item fd.num is exist - process it [03:34:35]SAM_PROTO_GetFieldsCounters [03:34:35]wFMCommunicate request_size=4 [03:34:35]MH_SAM_APDU [03:34:35]CAPDU: 80 13 00 00 [03:34:35]Write to MH i2c: E2 08 00 57 40 80 13 00 00 00 00 00 00 13 [03:34:35]Write i2c OK [03:34:35]MH_I2C_Read... [03:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:34:35]Read from MH i2c: E2 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 62 00 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 62 00 57 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0C 0A 00 00 0E 04 04 00 11 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 AF [03:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0C 0A 00 00 0E 04 04 00 11 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 [03:34:35]wFMCommunicate OK [03:34:35]SAM_PROTO_GetFieldsCounters done [03:34:35]requested_item shift.num is exist - process it [03:34:35]requested_item shift.opened is exist - process it [03:34:35]req_shift_opened [03:34:35]FM_GetShiftState [03:34:35]SAM_PROTO_GetShiftState [03:34:35]wFMCommunicate request_size=4 [03:34:35]MH_SAM_APDU [03:34:35]CAPDU: 80 13 01 00 [03:34:35]Write to MH i2c: E2 08 00 58 40 80 13 01 00 00 00 00 00 15 [03:34:35]Write i2c OK [03:34:35]MH_I2C_Read... [03:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:34:35]Read from MH i2c: E2 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 0E 00 [03:34:35]MH_I2C_Read... [03:34:35]Read from MH i2c: E2 0E 00 58 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E2 [03:34:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:34:35]wFMCommunicate OK [03:34:35]SAM_PROTO_GetShiftState done [03:34:35]FM_GetShiftState done [03:34:35]req_shift_opened done [03:34:35]requested_item shift.open_date is exist - process it [03:34:35]req_shift_open_date [03:34:35]req_shift_open_date done [03:34:35]produce_requested_data done [03:34:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2572,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:34:35]process_action_free close_receipt [03:34:35]json_value_free [03:34:35]json_value_free done [03:34:35]process_json_proto returns [03:34:35]Send response to host [03:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2572,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:34:35]free response buf [03:34:35]execute_script done [03:34:35]execute_script returns [03:34:35]free content buf [03:34:35]Sock 7.Close socket [03:34:35]Sock 7.Thread stoped [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:53]accept exits with 9 [03:39:53]New connection [03:39:53]New thread 3067481444 created [03:39:53]Thread 3067624804 joined [03:39:53]Waiting for new connection... [03:39:53] Sock 9.Parse request [03:39:53]Sock 9.Check first char [03:39:53]Sock 9.First char is OK [03:39:53]request: POST /json_proto HTTP/1.0 [03:39:53]Method: POST [03:39:53]URL: /json_proto [03:39:53]Method is POST - this is cgi request [03:39:53]url: /json_proto [03:39:53]query_string will be loaded in cgi processing [03:39:53]execute_cgi json_proto POST (null) [03:39:53]execute_cgi path=json_proto method=POST [03:39:53]POST find Content-Length [03:39:53]Host: 172.17.45.132:8080 [03:39:53]Content-Length: 1448 [03:39:53]Content-Type: application/json [03:39:53] [03:39:53]POST finish read [03:39:53]Found Content-Length = 1448 [03:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126759", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 428.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:53]execute_script... [03:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126759", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 428.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:53]POST & json_proto [03:39:53]process_json_proto [03:39:53]json parsed OK: [03:39:53]protocol is kg_v1.0 [03:39:53]action value=close_receipt [03:39:53]process_action close_receipt [03:39:53]cmd_close_receipt [03:39:53]MH_GetDate [03:39:53]Write to MH i2c: F0 00 00 59 40 88 [03:39:53]Write i2c OK [03:39:53]MH_I2C_Read... [03:39:53]Read from MH i2c: F0 [03:39:53]MH_I2C_Read... [03:39:53]Read from MH i2c: F0 09 00 [03:39:53]MH_I2C_Read... [03:39:53]Read from MH i2c: F0 09 00 59 40 00 10 B2 A9 66 E3 0B 90 66 46 [03:39:53]GetLastDocTimeStamp 1722396877 [03:39:53]current date 1722397200 [03:39:53]FM_GetShiftState [03:39:53]SAM_PROTO_GetShiftState [03:39:53]wFMCommunicate request_size=4 [03:39:53]MH_SAM_APDU [03:39:53]CAPDU: 80 13 01 00 [03:39:53]Write to MH i2c: E2 08 00 5A 40 80 13 01 00 00 00 00 00 17 [03:39:53]Write i2c OK [03:39:53]MH_I2C_Read... [03:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:53]Read from MH i2c: E2 [03:39:53]MH_I2C_Read... [03:39:53]Read from MH i2c: E2 0E 00 [03:39:53]MH_I2C_Read... [03:39:53]Read from MH i2c: E2 0E 00 5A 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E4 [03:39:53]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:39:53]wFMCommunicate OK [03:39:53]SAM_PROTO_GetShiftState done [03:39:53]FM_GetShiftState done [03:39:53]opened in 1722384689 [03:39:53]opened+sec_in_day 1722471089 [03:39:53]quantity*price = 4500 [03:39:53]sum+1 = 4501 [03:39:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780022460452 Антифриз Yumiko gold 1кг 1.000 * 148.00 = 148.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010070 Чай хол Let`s Go! чер персик ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 428.00 НСП 1% : 3.79 НДС 12% : 45.46 Наличными: 428.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 26 31.07.2024 03:40 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2573 ФПД: 248111445263999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034000&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2573&fm=248111445263999&tin=02508201610067®Number=0000000000189667&sum=42800 0 [03:39:54]StoreToDocumentArchive [03:39:54]shift 17 fd 2573 [03:39:54]save to /storage/0017/doc_00002573 [03:39:54]save last doc name /storage/0017/doc_00002573 to /storage/kkm_last_doc_name [03:39:54]save OK [03:39:54]Clear old archive folders... [03:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=622 [03:39:54]tlvbuf is 00882370 [03:39:54]SAM_PROTO_ClearQueue [03:39:54]wFMCommunicate request_size=4 [03:39:54]MH_SAM_APDU [03:39:54]CAPDU: 80 09 00 00 [03:39:54]Write to MH i2c: E2 08 00 67 40 80 09 00 00 00 00 00 00 19 [03:39:54]Write i2c OK [03:39:54]MH_I2C_Read... [03:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 67 40 00 90 00 1B [03:39:55]RAPDU: 90 00 [03:39:55]wFMCommunicate OK [03:39:55]SAM_PROTO_ClearQueue done [03:39:55]KKMCreateOFDPacket [03:39:55]OFDProtocolAddRootSTLVToBuf [03:39:55]FM_MakeSignedData [03:39:55]FM_MakeSignedData [03:39:55]SAM_PROTO_SignData [03:39:55]wFMCommunicate request_size=4 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 0D 01 02 [03:39:55]Write to MH i2c: E2 08 00 68 40 80 0D 01 02 00 00 00 00 21 [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 68 40 00 90 00 1C [03:39:55]RAPDU: 90 00 [03:39:55]wFMCommunicate OK [03:39:55]wFMCommunicate request_size=255 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 0D 02 02 FA 03 00 6E 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 [03:39:55]Write to MH i2c: E2 02 01 69 40 80 0D 02 02 FA 00 03 00 6E 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 00 C6 [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 69 40 00 90 00 1D [03:39:55]RAPDU: 90 00 [03:39:55]wFMCommunicate OK [03:39:55]wFMCommunicate request_size=255 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 0D 02 02 FA 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 [03:39:55]Write to MH i2c: E2 02 01 6A 40 80 0D 02 02 FA 00 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 00 00 A7 [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 6A 40 00 90 00 1E [03:39:55]RAPDU: 90 00 [03:39:55]wFMCommunicate OK [03:39:55]wFMCommunicate request_size=131 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 C2 11 00 00 00 00 07 04 06 00 30 A7 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 10 B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 0A 00 00 35 04 06 00 E1 A7 F2 8F 46 7F [03:39:55]Write to MH i2c: E2 86 00 6B 40 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 C2 11 00 00 00 00 07 04 06 00 30 A7 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 10 B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 0A 00 00 35 04 06 00 E1 A7 F2 8F 46 7F 00 00 ED [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 03 00 6B 40 00 90 00 1F [03:39:55]RAPDU: 90 00 [03:39:55]wFMCommunicate OK [03:39:55]wFMCommunicate request_size=4 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 0D 03 02 [03:39:55]Write to MH i2c: E2 08 00 6C 40 80 0D 03 02 00 00 00 00 27 [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 0B 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 0B 00 6C 40 00 3D 39 0D 9B 36 2B A8 B2 90 00 01 [03:39:55]RAPDU: 3D 39 0D 9B 36 2B A8 B2 90 00 [03:39:55]wFMCommunicate OK [03:39:55]SAM_PROTO_SignData done [03:39:55]FM_MakeSignedData done [03:39:55]CreateOFDProtocolMessage [03:39:55]wFMCommunicate request_size=4 [03:39:55]MH_SAM_APDU [03:39:55]CAPDU: 80 11 00 00 [03:39:55]Write to MH i2c: E2 08 00 6D 40 80 11 00 00 00 00 00 00 27 [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:55]Read from MH i2c: E2 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 17 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: E2 17 00 6D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 77 [03:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:39:55]wFMCommunicate OK [03:39:55]CreateOFDProtocolMessage done [03:39:55]OFDSenderStorePacket 2573 [03:39:55]StoreOFDPacket docnum=2573 [03:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 82 02 00 00 D3 39 7A 02 EF E8 5A 03 01 00 03 00 6E 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 11 00 00 00 00 07 04 06 00 30 A7 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 10 B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 0A 00 00 35 04 06 00 E1 A7 F2 8F 46 7F 3D 39 0D 9B 36 2B A8 B2 [03:39:55]CheckFolder [03:39:55]dirname=/storage/ofd_packets [03:39:55]CheckFolder done [03:39:55]ProducePacketName [03:39:55]name=ofd_packets/00002573 [03:39:55]NVStorageSaveData ofd_packets/00002573 [03:39:55]File name is /storage/ofd_packets/00002573 [03:39:55]Write 672 bytes [03:39:55]NVStorageSaveData done [03:39:55]OFDSenderStorePacket done [03:39:55]KKMCreateOFDPacket done [03:39:55]NVStorageSaveData kkm_last_timestamp [03:39:55]File name is /storage/kkm_last_timestamp [03:39:55]Write 4 bytes [03:39:55]NVStorageSaveData done [03:39:55]ExternCall_PrintAddStr [03:39:55]wPrintStart [03:39:55]Write to MH i2c: 01 00 00 6E 40 AE [03:39:55]Write i2c OK [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: 01 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: 01 07 00 [03:39:55]MH_I2C_Read... [03:39:55]Read from MH i2c: 01 07 00 6E 40 00 00 00 00 00 FF 0F C3 [03:39:55]RasterBufferAndPrint [03:39:55]line Счет N : (3)126759 [03:39:55]line ИНН: 02508201610067 [03:39:55]line Контрольно-Кассовый Чек [03:39:55]line ПРОДАЖА [03:39:55]line Товар: 4870001159955 [03:39:56]line Вода ASU пит н.газ ПЭТ 1л [03:39:56]line 1.000 * 45.00 [03:39:56]line = 45.00 [03:39:56]line НДС 12% НСП 1% [03:39:56]line > о реализуемом товаре [03:39:56]line Товар: 48743587 [03:39:56]line Сигареты Winston XStyle Silver [03:39:56]line 1.000 * 140.00 [03:39:56]line = 140.00 [03:39:56]line НДС 12% НСП 1% [03:39:56]line > о реализуемом товаре [03:39:56]line Товар: 4780022460452 [03:39:56]line Антифриз Yumiko gold 1кг [03:39:56]line 1.000 * 148.00 [03:39:56]line = 148.00 [03:39:56]line НДС 12% НСП 1% [03:39:56]line > о реализуемом товаре [03:39:56]line Товар: 4700003010070 [03:39:56]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [03:39:56]line 1.000 * 95.00 [03:39:56]line = 95.00 [03:39:56]line НДС 12% НСП 1% [03:39:56]line > о реализуемом товаре [03:39:56]line ИТОГО: 428.00 [03:39:56]line НСП 1% : 3.79 [03:39:56]line НДС 12% : 45.46 [03:39:56]line Наличными: 428.00 [03:39:56]line Безнал.: 0.00 [03:39:56]line Место: АЗС № 127 "Партнер Нефть" [03:39:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:39:56]line СНО: Общий режим [03:39:56]line Чек 26 31.07.2024 03:40 [03:39:56]line Смена: 17 ФФД: 1.0 [03:39:56]line ЗНМ: 0300000161 [03:39:56]line РНМ: 0000000000189667 [03:39:56]line Версия ККМ: v1.0 [03:39:56]line ФМ: 0000000002094248 [03:39:56]line ФД: 2573 [03:39:56]line ФПД: 248111445263999 [03:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034000&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2573&fm=248111445263999&tin=02508201610067®Number=0000000000189667&sum=42800 [03:39:56]OFD Sender: Processing packet 2573 [packets to send 1, broken 0] [03:39:56]ProducePacketName [03:39:56]name=ofd_packets/00002573 [03:39:56]OFD Sender: To server: pG, [03:39:56]CommunicateWithHost lk.salyk.kg:30040 [03:39:56]ConnectInit lk.salyk.kg [03:39:56]line 0 [03:39:56]written 0, free lines is 4095 [03:39:56]Connected sock=11 [03:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 82 02 00 00 D3 39 7A 02 EF E8 5A 03 01 00 03 00 6E 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 11 00 00 00 00 07 04 06 00 30 A7 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 10 B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 0A 00 00 35 04 06 00 E1 A7 F2 8F 46 7F 3D 39 0D 9B 36 2B A8 B2 [03:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE 42 47 00 BB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 0A 00 00 F4 03 04 00 78 5D A9 66 B6 04 01 00 00 07 89 DE ED 8B 80 9D B9 [03:39:56]CommunicateWithHost err = 0 [03:39:56]CheckOFDResponse [03:39:56]1017 (14) - 77093643461234 [03:39:56]1041 (16) - 0000000002094248 [03:39:56]1040 (4) - 2573 [03:39:56]1012 (4) - 30.07.2024 21:39 [03:39:56]1206 (1) - 0 [03:39:56]OFD Sender: Remove packet 2573 [03:39:56]ProducePacketName [03:39:56]name=ofd_packets/00002573 [03:39:56]NVStorageDeleteData [03:39:56]Write to MH i2c: 01 00 00 AA 40 EA [03:39:56]Write i2c OK [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: 01 [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: 01 07 00 [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: 01 07 00 AA 40 00 00 00 00 00 16 0C 13 [03:39:56]RasterBufferAndPrint [03:39:56]line [03:39:56]line [03:39:56]line [03:39:56]line [03:39:56]line [03:39:56]written 0, free lines is 3103 [03:39:56]MH_Cut [03:39:56]Write to MH i2c: D1 01 00 B1 40 01 C3 [03:39:56]Write i2c OK [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: D1 [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: D1 01 00 [03:39:56]MH_I2C_Read... [03:39:56]Read from MH i2c: D1 01 00 B1 40 00 C2 [03:39:56]Write to MH i2c: 01 00 00 B2 40 F2 [03:39:56]Write i2c OK [03:39:56]MH_I2C_Read... [03:39:57]OFD Sender: No OFD packet to send [03:39:57]*** Cut start [03:39:57]*** Partial cut [03:39:57]*** CUTSNS_PIN = 1 [03:39:57]*** CUTSNS_PIN = 0 [03:39:57]*** Brake cut motor [03:39:58]Read from MH i2c: 01 [03:39:58]MH_I2C_Read... [03:39:58]*** Stop cut motor [03:39:58]*** Cut end [03:39:58]Read from MH i2c: 01 07 00 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: 01 07 00 B2 40 00 00 00 00 00 FF 0F 07 [03:39:58]process_action close_receipt done [03:39:58]requested_data is exist [03:39:58]produce_requested_data [03:39:58]requested_item fm.sn is exist - process it [03:39:58]wFMCommunicate request_size=4 [03:39:58]MH_SAM_APDU [03:39:58]CAPDU: 80 11 00 00 [03:39:58]Write to MH i2c: E2 08 00 B3 40 80 11 00 00 00 00 00 00 6D [03:39:58]Write i2c OK [03:39:58]MH_I2C_Read... [03:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:58]Read from MH i2c: E2 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 17 00 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 17 00 B3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BD [03:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:39:58]wFMCommunicate OK [03:39:58]requested_item fd.num is exist - process it [03:39:58]SAM_PROTO_GetFieldsCounters [03:39:58]wFMCommunicate request_size=4 [03:39:58]MH_SAM_APDU [03:39:58]CAPDU: 80 13 00 00 [03:39:58]Write to MH i2c: E2 08 00 B4 40 80 13 00 00 00 00 00 00 70 [03:39:58]Write i2c OK [03:39:58]MH_I2C_Read... [03:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:58]Read from MH i2c: E2 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 62 00 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 62 00 B4 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 0A 00 00 0E 04 04 00 11 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 10 [03:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 0A 00 00 0E 04 04 00 11 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 [03:39:58]wFMCommunicate OK [03:39:58]SAM_PROTO_GetFieldsCounters done [03:39:58]requested_item shift.num is exist - process it [03:39:58]requested_item shift.opened is exist - process it [03:39:58]req_shift_opened [03:39:58]FM_GetShiftState [03:39:58]SAM_PROTO_GetShiftState [03:39:58]wFMCommunicate request_size=4 [03:39:58]MH_SAM_APDU [03:39:58]CAPDU: 80 13 01 00 [03:39:58]Write to MH i2c: E2 08 00 B5 40 80 13 01 00 00 00 00 00 72 [03:39:58]Write i2c OK [03:39:58]MH_I2C_Read... [03:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:58]Read from MH i2c: E2 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 0E 00 [03:39:58]MH_I2C_Read... [03:39:58]Read from MH i2c: E2 0E 00 B5 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3F [03:39:58]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:39:58]wFMCommunicate OK [03:39:58]SAM_PROTO_GetShiftState done [03:39:58]FM_GetShiftState done [03:39:58]req_shift_opened done [03:39:58]requested_item shift.open_date is exist - process it [03:39:58]req_shift_open_date [03:39:58]req_shift_open_date done [03:39:58]produce_requested_data done [03:39:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2573,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:39:58]process_action_free close_receipt [03:39:58]json_value_free [03:39:58]json_value_free done [03:39:58]process_json_proto returns [03:39:58]Send response to host [03:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2573,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:39:58]free response buf [03:39:58]execute_script done [03:39:58]execute_script returns [03:39:58]free content buf [03:39:58]Sock 9.Close socket [03:39:58]Sock 9.Thread stoped [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]accept exits with 7 [03:41:07]New connection [03:41:07]New thread 3067624804 created [03:41:07]Thread 3067481444 joined [03:41:07]Waiting for new connection... [03:41:07] Sock 7.Parse request [03:41:07]Sock 7.Check first char [03:41:07]Sock 7.First char is OK [03:41:07]request: POST /json_proto HTTP/1.0 [03:41:07]Method: POST [03:41:07]URL: /json_proto [03:41:07]Method is POST - this is cgi request [03:41:07]url: /json_proto [03:41:07]query_string will be loaded in cgi processing [03:41:07]execute_cgi json_proto POST (null) [03:41:07]execute_cgi path=json_proto method=POST [03:41:07]POST find Content-Length [03:41:07]Host: 172.17.45.132:8080 [03:41:07]Content-Length: 1180 [03:41:07]Content-Type: application/json [03:41:07] [03:41:07]POST finish read [03:41:07]Found Content-Length = 1180 [03:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126760", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:07]execute_script... [03:41: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 : (3)126760", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:07]POST & json_proto [03:41:07]process_json_proto [03:41:07]json parsed OK: [03:41:07]protocol is kg_v1.0 [03:41:07]action value=close_receipt [03:41:07]process_action close_receipt [03:41:07]cmd_close_receipt [03:41:07]MH_GetDate [03:41:07]Write to MH i2c: F0 00 00 B6 40 E5 [03:41:07]Write i2c OK [03:41:07]MH_I2C_Read... [03:41:07]Read from MH i2c: F0 [03:41:07]MH_I2C_Read... [03:41:07]Read from MH i2c: F0 09 00 [03:41:07]MH_I2C_Read... [03:41:07]Read from MH i2c: F0 09 00 B6 40 00 5A B2 A9 66 E3 0B 90 66 ED [03:41:07]GetLastDocTimeStamp 1722397200 [03:41:07]current date 1722397274 [03:41:07]FM_GetShiftState [03:41:07]SAM_PROTO_GetShiftState [03:41:07]wFMCommunicate request_size=4 [03:41:07]MH_SAM_APDU [03:41:07]CAPDU: 80 13 01 00 [03:41:07]Write to MH i2c: E2 08 00 B7 40 80 13 01 00 00 00 00 00 74 [03:41:07]Write i2c OK [03:41:07]MH_I2C_Read... [03:41:07]OFD Sender: No OFD packet to send [03:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:07]Read from MH i2c: E2 [03:41:07]MH_I2C_Read... [03:41:07]Read from MH i2c: E2 0E 00 [03:41:07]MH_I2C_Read... [03:41:07]Read from MH i2c: E2 0E 00 B7 40 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 41 [03:41:07]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:41:07]wFMCommunicate OK [03:41:07]SAM_PROTO_GetShiftState done [03:41:07]FM_GetShiftState done [03:41:07]opened in 1722384689 [03:41:07]opened+sec_in_day 1722471089 [03:41:07]quantity*price = 51000 [03:41:07]sum+1 = 51001 [03:41:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173822 Р/ж Orbit б/сах мята 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 615.00 НСП 1% : 5.44 НДС 12% : 65.31 Наличными: 615.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 27 31.07.2024 03:41 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2574 ФПД: 266397318787564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034114&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2574&fm=266397318787564&tin=02508201610067®Number=0000000000189667&sum=61500 0 [03:41:08]StoreToDocumentArchive [03:41:08]shift 17 fd 2574 [03:41:08]save to /storage/0017/doc_00002574 [03:41:08]save last doc name /storage/0017/doc_00002574 to /storage/kkm_last_doc_name [03:41:08]save OK [03:41:08]Clear old archive folders... [03:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=492 [03:41:08]tlvbuf is B6E4C960 [03:41:08]SAM_PROTO_ClearQueue [03:41:08]wFMCommunicate request_size=4 [03:41:08]MH_SAM_APDU [03:41:08]CAPDU: 80 09 00 00 [03:41:08]Write to MH i2c: E2 08 00 C4 40 80 09 00 00 00 00 00 00 76 [03:41:08]Write i2c OK [03:41:08]MH_I2C_Read... [03:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:08]Read from MH i2c: E2 [03:41:08]MH_I2C_Read... [03:41:08]Read from MH i2c: E2 03 00 [03:41:08]MH_I2C_Read... [03:41:08]Read from MH i2c: E2 03 00 C4 40 00 90 00 78 [03:41:08]RAPDU: 90 00 [03:41:08]wFMCommunicate OK [03:41:08]SAM_PROTO_ClearQueue done [03:41:08]KKMCreateOFDPacket [03:41:08]OFDProtocolAddRootSTLVToBuf [03:41:08]FM_MakeSignedData [03:41:08]FM_MakeSignedData [03:41:08]SAM_PROTO_SignData [03:41:08]wFMCommunicate request_size=4 [03:41:08]MH_SAM_APDU [03:41:08]CAPDU: 80 0D 01 02 [03:41:08]Write to MH i2c: E2 08 00 C5 40 80 0D 01 02 00 00 00 00 7E [03:41:08]Write i2c OK [03:41:08]MH_I2C_Read... [03:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:08]Read from MH i2c: E2 [03:41:08]MH_I2C_Read... [03:41:08]Read from MH i2c: E2 03 00 [03:41:08]MH_I2C_Read... [03:41:08]Read from MH i2c: E2 03 00 C5 40 00 90 00 79 [03:41:08]RAPDU: 90 00 [03:41:08]wFMCommunicate OK [03:41:08]wFMCommunicate request_size=255 [03:41:08]MH_SAM_APDU [03:41:08]CAPDU: 80 0D 02 02 FA 03 00 EC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F [03:41:08]Write to MH i2c: E2 02 01 C6 40 80 0D 02 02 FA 00 03 00 EC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F 00 00 18 [03:41:08]Write i2c OK [03:41:08]MH_I2C_Read... [03:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:09]Read from MH i2c: E2 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 03 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 03 00 C6 40 00 90 00 7A [03:41:09]RAPDU: 90 00 [03:41:09]wFMCommunicate OK [03:41:09]wFMCommunicate request_size=251 [03:41:09]MH_SAM_APDU [03:41:09]CAPDU: 80 0D 02 02 F6 D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 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 5A B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 0A 00 00 35 04 06 00 F2 49 75 8E 31 EC [03:41:09]Write to MH i2c: E2 FE 00 C7 40 80 0D 02 02 F6 00 D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 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 5A B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 0A 00 00 35 04 06 00 F2 49 75 8E 31 EC 00 00 C2 [03:41:09]Write i2c OK [03:41:09]MH_I2C_Read... [03:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:09]Read from MH i2c: E2 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 03 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 03 00 C7 40 00 90 00 7B [03:41:09]RAPDU: 90 00 [03:41:09]wFMCommunicate OK [03:41:09]wFMCommunicate request_size=4 [03:41:09]MH_SAM_APDU [03:41:09]CAPDU: 80 0D 03 02 [03:41:09]Write to MH i2c: E2 08 00 C8 40 80 0D 03 02 00 00 00 00 83 [03:41:09]Write i2c OK [03:41:09]MH_I2C_Read... [03:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:09]Read from MH i2c: E2 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 0B 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 0B 00 C8 40 00 1B CE 5D 7C F0 83 CA 96 90 00 19 [03:41:09]RAPDU: 1B CE 5D 7C F0 83 CA 96 90 00 [03:41:09]wFMCommunicate OK [03:41:09]SAM_PROTO_SignData done [03:41:09]FM_MakeSignedData done [03:41:09]CreateOFDProtocolMessage [03:41:09]wFMCommunicate request_size=4 [03:41:09]MH_SAM_APDU [03:41:09]CAPDU: 80 11 00 00 [03:41:09]Write to MH i2c: E2 08 00 C9 40 80 11 00 00 00 00 00 00 83 [03:41:09]Write i2c OK [03:41:09]MH_I2C_Read... [03:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:09]Read from MH i2c: E2 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 17 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: E2 17 00 C9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [03:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:09]wFMCommunicate OK [03:41:09]CreateOFDProtocolMessage done [03:41:09]OFDSenderStorePacket 2574 [03:41:09]StoreOFDPacket docnum=2574 [03:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 02 00 00 2A 5A F8 01 BE 6D 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 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 5A B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 0A 00 00 35 04 06 00 F2 49 75 8E 31 EC 1B CE 5D 7C F0 83 CA 96 [03:41:09]CheckFolder [03:41:09]dirname=/storage/ofd_packets [03:41:09]CheckFolder done [03:41:09]ProducePacketName [03:41:09]name=ofd_packets/00002574 [03:41:09]NVStorageSaveData ofd_packets/00002574 [03:41:09]File name is /storage/ofd_packets/00002574 [03:41:09]Write 542 bytes [03:41:09]NVStorageSaveData done [03:41:09]OFDSenderStorePacket done [03:41:09]KKMCreateOFDPacket done [03:41:09]NVStorageSaveData kkm_last_timestamp [03:41:09]File name is /storage/kkm_last_timestamp [03:41:09]Write 4 bytes [03:41:09]NVStorageSaveData done [03:41:09]ExternCall_PrintAddStr [03:41:09]wPrintStart [03:41:09]Write to MH i2c: 01 00 00 CA 40 0A [03:41:09]Write i2c OK [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 07 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 07 00 CA 40 00 00 00 00 00 FF 0F 1F [03:41:09]RasterBufferAndPrint [03:41:09]line Счет N : (3)126760 [03:41:09]line ИНН: 02508201610067 [03:41:09]line Контрольно-Кассовый Чек [03:41:09]line ПРОДАЖА [03:41:09]line Товар: 4700000480357 [03:41:09]line Пиво шахтерское 1л ПЭТ [03:41:09]line 3.000 * 170.00 [03:41:09]line = 510.00 [03:41:09]line НДС 12% НСП 1% [03:41:09]line > о реализуемом товаре [03:41:09]line Товар: 4700000310043 [03:41:09]line Вода Жалалабат 27 1л [03:41:09]line 1.000 * 60.00 [03:41:09]line = 60.00 [03:41:09]line НДС 12% НСП 1% [03:41:09]line > о реализуемом товаре [03:41:09]line Товар: 50173822 [03:41:09]line Р/ж Orbit б/сах мята 13,6г [03:41:09]line 1.000 * 45.00 [03:41:09]line = 45.00 [03:41:09]line НДС 12% НСП 1% [03:41:09]line > о реализуемом товаре [03:41:09]line ИТОГО: 615.00 [03:41:09]line НСП 1% : 5.44 [03:41:09]line НДС 12% : 65.31 [03:41:09]line Наличными: 615.00 [03:41:09]line Безнал.: 0.00 [03:41:09]line Место: АЗС № 127 "Партнер Нефть" [03:41:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:41:09]line СНО: Общий режим [03:41:09]line Чек 27 31.07.2024 03:41 [03:41:09]line Смена: 17 ФФД: 1.0 [03:41:09]line ЗНМ: 0300000161 [03:41:09]line РНМ: 0000000000189667 [03:41:09]line Версия ККМ: v1.0 [03:41:09]line ФМ: 0000000002094248 [03:41:09]line ФД: 2574 [03:41:09]line ФПД: 266397318787564 [03:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034114&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2574&fm=266397318787564&tin=02508201610067®Number=0000000000189667&sum=61500 [03:41:09]line 0 [03:41:09]written 0, free lines is 4095 [03:41:09]OFD Sender: Processing packet 2574 [packets to send 1, broken 0] [03:41:09]ProducePacketName [03:41:09]name=ofd_packets/00002574 [03:41:09]OFD Sender: To server: pG, [03:41:09]CommunicateWithHost lk.salyk.kg:30040 [03:41:09]ConnectInit lk.salyk.kg [03:41:09]Connected sock=10 [03:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 02 00 00 2A 5A F8 01 BE 6D 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 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 5A B2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 0A 00 00 35 04 06 00 F2 49 75 8E 31 EC 1B CE 5D 7C F0 83 CA 96 [03:41:09]Write to MH i2c: 01 00 00 FE 40 3E [03:41:09]Write i2c OK [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 07 00 [03:41:09]MH_I2C_Read... [03:41:09]Read from MH i2c: 01 07 00 FE 40 00 00 00 00 00 91 0C E2 [03:41:09]RasterBufferAndPrint [03:41:09]line [03:41:09]line [03:41:09]line [03:41:09]line [03:41:09]line [03:41:09]written 0, free lines is 3226 [03:41:09]MH_Cut [03:41:09]Write to MH i2c: D1 01 00 05 41 01 18 [03:41:10]Write i2c OK [03:41:10]MH_I2C_Read... [03:41:10]Read from MH i2c: D1 [03:41:10]MH_I2C_Read... [03:41:10]Read from MH i2c: D1 01 00 [03:41:10]MH_I2C_Read... [03:41:10]Read from MH i2c: D1 01 00 05 41 00 17 [03:41:10]Write to MH i2c: 01 00 00 06 41 47 [03:41:10]Write i2c OK [03:41:10]MH_I2C_Read... [03:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 50 67 47 00 9C 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 32 30 39 34 32 34 38 10 04 04 00 0E 0A 00 00 F4 03 04 00 C2 5D A9 66 B6 04 01 00 00 40 66 5A F4 D6 23 7E 47 [03:41:10]CommunicateWithHost err = 0 [03:41:10]CheckOFDResponse [03:41:10]1017 (14) - 77093643461234 [03:41:10]1041 (16) - 0000000002094248 [03:41:10]1040 (4) - 2574 [03:41:10]1012 (4) - 30.07.2024 21:40 [03:41:10]1206 (1) - 0 [03:41:10]OFD Sender: Remove packet 2574 [03:41:10]ProducePacketName [03:41:10]name=ofd_packets/00002574 [03:41:10]NVStorageDeleteData [03:41:10]OFD Sender: No OFD packet to send [03:41:10]*** Cut start [03:41:10]*** Partial cut [03:41:10]*** CUTSNS_PIN = 1 [03:41:10]*** CUTSNS_PIN = 0 [03:41:11]*** Brake cut motor [03:41:11]Read from MH i2c: 01 [03:41:11]MH_I2C_Read... [03:41:11]*** Stop cut motor [03:41:11]*** Cut end [03:41:11]Read from MH i2c: 01 07 00 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: 01 07 00 06 41 00 00 00 00 00 FF 0F 5C [03:41:11]process_action close_receipt done [03:41:11]requested_data is exist [03:41:11]produce_requested_data [03:41:11]requested_item fm.sn is exist - process it [03:41:11]wFMCommunicate request_size=4 [03:41:11]MH_SAM_APDU [03:41:11]CAPDU: 80 11 00 00 [03:41:11]Write to MH i2c: E2 08 00 07 41 80 11 00 00 00 00 00 00 C2 [03:41:11]Write i2c OK [03:41:11]MH_I2C_Read... [03:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:11]Read from MH i2c: E2 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 17 00 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 17 00 07 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 12 [03:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:11]wFMCommunicate OK [03:41:11]requested_item fd.num is exist - process it [03:41:11]SAM_PROTO_GetFieldsCounters [03:41:11]wFMCommunicate request_size=4 [03:41:11]MH_SAM_APDU [03:41:11]CAPDU: 80 13 00 00 [03:41:11]Write to MH i2c: E2 08 00 08 41 80 13 00 00 00 00 00 00 C5 [03:41:11]Write i2c OK [03:41:11]MH_I2C_Read... [03:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:11]Read from MH i2c: E2 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 62 00 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 62 00 08 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 0A 00 00 0E 04 04 00 11 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 69 [03:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 0A 00 00 0E 04 04 00 11 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 [03:41:11]wFMCommunicate OK [03:41:11]SAM_PROTO_GetFieldsCounters done [03:41:11]requested_item shift.num is exist - process it [03:41:11]requested_item shift.opened is exist - process it [03:41:11]req_shift_opened [03:41:11]FM_GetShiftState [03:41:11]SAM_PROTO_GetShiftState [03:41:11]wFMCommunicate request_size=4 [03:41:11]MH_SAM_APDU [03:41:11]CAPDU: 80 13 01 00 [03:41:11]Write to MH i2c: E2 08 00 09 41 80 13 01 00 00 00 00 00 C7 [03:41:11]Write i2c OK [03:41:11]MH_I2C_Read... [03:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:11]Read from MH i2c: E2 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 0E 00 [03:41:11]MH_I2C_Read... [03:41:11]Read from MH i2c: E2 0E 00 09 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 94 [03:41:11]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:41:11]wFMCommunicate OK [03:41:11]SAM_PROTO_GetShiftState done [03:41:11]FM_GetShiftState done [03:41:11]req_shift_opened done [03:41:11]requested_item shift.open_date is exist - process it [03:41:11]req_shift_open_date [03:41:11]req_shift_open_date done [03:41:11]produce_requested_data done [03:41:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2574,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:41:11]process_action_free close_receipt [03:41:11]json_value_free [03:41:11]json_value_free done [03:41:11]process_json_proto returns [03:41:11]Send response to host [03:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2574,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:41:11]free response buf [03:41:11]execute_script done [03:41:11]execute_script returns [03:41:11]free content buf [03:41:11]Sock 7.Close socket [03:41:11]Sock 7.Thread stoped [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:49]accept exits with 9 [03:48:49]New connection [03:48:49]New thread 3067481444 created [03:48:49]Thread 3067624804 joined [03:48:49]Waiting for new connection... [03:48:49] Sock 9.Parse request [03:48:49]Sock 9.Check first char [03:48:49]Sock 9.First char is OK [03:48:49]request: POST /json_proto HTTP/1.0 [03:48:49]Method: POST [03:48:49]URL: /json_proto [03:48:49]Method is POST - this is cgi request [03:48:49]url: /json_proto [03:48:49]query_string will be loaded in cgi processing [03:48:49]execute_cgi json_proto POST (null) [03:48:49]execute_cgi path=json_proto method=POST [03:48:49]POST find Content-Length [03:48:49]Host: 172.17.45.132:8080 [03:48:49]Content-Length: 831 [03:48:49]Content-Type: application/json [03:48:49] [03:48:49]POST finish read [03:48:49]Found Content-Length = 831 [03:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126761", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:49]execute_script... [03:48: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 : (3)126761", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:49]POST & json_proto [03:48:49]process_json_proto [03:48:49]json parsed OK: [03:48:49]protocol is kg_v1.0 [03:48:49]action value=close_receipt [03:48:49]process_action close_receipt [03:48:49]cmd_close_receipt [03:48:49]MH_GetDate [03:48:49]Write to MH i2c: F0 00 00 0A 41 3A [03:48:49]Write i2c OK [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: F0 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: F0 09 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: F0 09 00 0A 41 00 28 B4 A9 66 E3 0B 90 66 12 [03:48:49]GetLastDocTimeStamp 1722397274 [03:48:49]current date 1722397736 [03:48:49]FM_GetShiftState [03:48:49]SAM_PROTO_GetShiftState [03:48:49]wFMCommunicate request_size=4 [03:48:49]MH_SAM_APDU [03:48:49]CAPDU: 80 13 01 00 [03:48:49]Write to MH i2c: E2 08 00 0B 41 80 13 01 00 00 00 00 00 C9 [03:48:49]Write i2c OK [03:48:49]MH_I2C_Read... [03:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:49]Read from MH i2c: E2 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 0E 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 0E 00 0B 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 96 [03:48:49]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:48:49]wFMCommunicate OK [03:48:49]SAM_PROTO_GetShiftState done [03:48:49]FM_GetShiftState done [03:48:49]opened in 1722384689 [03:48:49]opened+sec_in_day 1722471089 [03:48:49]quantity*price = 34000 [03:48:49]sum+1 = 34001 [03:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 0.00 Безнал.: 340.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 28 31.07.2024 03:48 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2575 ФПД: 158700075800791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034856&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2575&fm=158700075800791&tin=02508201610067®Number=0000000000189667&sum=34000 0 [03:48:51]StoreToDocumentArchive [03:48:51]shift 17 fd 2575 [03:48:51]save to /storage/0017/doc_00002575 [03:48:51]save last doc name /storage/0017/doc_00002575 to /storage/kkm_last_doc_name [03:48:51]save OK [03:48:51]Clear old archive folders... [03:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [03:48:51]tlvbuf is 00985920 [03:48:51]SAM_PROTO_ClearQueue [03:48:51]wFMCommunicate request_size=4 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 09 00 00 [03:48:51]Write to MH i2c: E2 08 00 18 41 80 09 00 00 00 00 00 00 CB [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 18 41 00 90 00 CD [03:48:51]RAPDU: 90 00 [03:48:51]wFMCommunicate OK [03:48:51]SAM_PROTO_ClearQueue done [03:48:51]KKMCreateOFDPacket [03:48:51]OFDProtocolAddRootSTLVToBuf [03:48:51]FM_MakeSignedData [03:48:51]FM_MakeSignedData [03:48:51]SAM_PROTO_SignData [03:48:51]wFMCommunicate request_size=4 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 0D 01 02 [03:48:51]Write to MH i2c: E2 08 00 19 41 80 0D 01 02 00 00 00 00 D3 [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 19 41 00 90 00 CE [03:48:51]RAPDU: 90 00 [03:48:51]wFMCommunicate OK [03:48:51]wFMCommunicate request_size=255 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [03:48:51]Write to MH i2c: E2 02 01 1A 41 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 9C [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 1A 41 00 90 00 CF [03:48:51]RAPDU: 90 00 [03:48:51]wFMCommunicate OK [03:48:51]wFMCommunicate request_size=41 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 0A 00 00 35 04 06 00 90 56 3D A4 D8 D7 [03:48:51]Write to MH i2c: E2 2C 00 1B 41 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 0A 00 00 35 04 06 00 90 56 3D A4 D8 D7 00 00 31 [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [03:48:51]RAPDU: 90 00 [03:48:51]wFMCommunicate OK [03:48:51]wFMCommunicate request_size=4 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 0D 03 02 [03:48:51]Write to MH i2c: E2 08 00 1C 41 80 0D 03 02 00 00 00 00 D8 [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 0B 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 0B 00 1C 41 00 25 4C DB 75 06 F0 5E DA 90 00 C8 [03:48:51]RAPDU: 25 4C DB 75 06 F0 5E DA 90 00 [03:48:51]wFMCommunicate OK [03:48:51]SAM_PROTO_SignData done [03:48:51]FM_MakeSignedData done [03:48:51]CreateOFDProtocolMessage [03:48:51]wFMCommunicate request_size=4 [03:48:51]MH_SAM_APDU [03:48:51]CAPDU: 80 11 00 00 [03:48:51]Write to MH i2c: E2 08 00 1D 41 80 11 00 00 00 00 00 00 D8 [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:51]Read from MH i2c: E2 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 17 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: E2 17 00 1D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 28 [03:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:48:51]wFMCommunicate OK [03:48:51]CreateOFDProtocolMessage done [03:48:51]OFDSenderStorePacket 2575 [03:48:51]StoreOFDPacket docnum=2575 [03:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 11 54 26 01 12 70 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 0A 00 00 35 04 06 00 90 56 3D A4 D8 D7 25 4C DB 75 06 F0 5E DA [03:48:51]CheckFolder [03:48:51]dirname=/storage/ofd_packets [03:48:51]CheckFolder done [03:48:51]ProducePacketName [03:48:51]name=ofd_packets/00002575 [03:48:51]NVStorageSaveData ofd_packets/00002575 [03:48:51]File name is /storage/ofd_packets/00002575 [03:48:51]Write 332 bytes [03:48:51]NVStorageSaveData done [03:48:51]OFDSenderStorePacket done [03:48:51]KKMCreateOFDPacket done [03:48:51]NVStorageSaveData kkm_last_timestamp [03:48:51]File name is /storage/kkm_last_timestamp [03:48:51]Write 4 bytes [03:48:51]NVStorageSaveData done [03:48:51]ExternCall_PrintAddStr [03:48:51]wPrintStart [03:48:51]Write to MH i2c: 01 00 00 1E 41 5F [03:48:51]Write i2c OK [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: 01 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: 01 07 00 [03:48:51]MH_I2C_Read... [03:48:51]Read from MH i2c: 01 07 00 1E 41 00 00 00 00 00 FF 0F 74 [03:48:51]RasterBufferAndPrint [03:48:51]line Счет N : (3)126761 [03:48:51]line ИНН: 02508201610067 [03:48:51]line Контрольно-Кассовый Чек [03:48:51]line ПРОДАЖА [03:48:51]line Товар: 4700000480357 [03:48:51]line Пиво шахтерское 1л ПЭТ [03:48:51]line 2.000 * 170.00 [03:48:51]line = 340.00 [03:48:51]line НДС 12% НСП 1% [03:48:51]line > о реализуемом товаре [03:48:51]line ИТОГО: 340.00 [03:48:51]line НСП 1% : 3.01 [03:48:51]line НДС 12% : 36.11 [03:48:51]line Наличными: 0.00 [03:48:51]line Безнал.: 340.00 [03:48:51]line Место: АЗС № 127 "Партнер Нефть" [03:48:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:48:51]line СНО: Общий режим [03:48:51]line Чек 28 31.07.2024 03:48 [03:48:51]line Смена: 17 ФФД: 1.0 [03:48:51]line ЗНМ: 0300000161 [03:48:51]line РНМ: 0000000000189667 [03:48:51]line Версия ККМ: v1.0 [03:48:51]line Платежная система: O! деньги [03:48:51]line ФМ: 0000000002094248 [03:48:51]line ФД: 2575 [03:48:51]line ФПД: 158700075800791 [03:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T034856&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2575&fm=158700075800791&tin=02508201610067®Number=0000000000189667&sum=34000 [03:48:51]line 0 [03:48:51]OFD Sender: Processing packet 2575 [packets to send 1, broken 0] [03:48:51]ProducePacketName [03:48:51]name=ofd_packets/00002575 [03:48:51]OFD Sender: To server: pG, [03:48:51]CommunicateWithHost lk.salyk.kg:30040 [03:48:51]ConnectInit lk.salyk.kg [03:48:51]written 0, free lines is 4095 [03:48:52]Connected sock=10 [03:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 11 54 26 01 12 70 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 0A 00 00 35 04 06 00 90 56 3D A4 D8 D7 25 4C DB 75 06 F0 5E DA [03:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 89 C0 47 00 BE F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 0A 00 00 F4 03 04 00 90 5F A9 66 B6 04 01 00 00 0C B7 EA C1 FC 03 0B 0F [03:48:52]CommunicateWithHost err = 0 [03:48:52]CheckOFDResponse [03:48:52]1017 (14) - 77093643461234 [03:48:52]1041 (16) - 0000000002094248 [03:48:52]1040 (4) - 2575 [03:48:52]1012 (4) - 30.07.2024 21:48 [03:48:52]1206 (1) - 0 [03:48:52]OFD Sender: Remove packet 2575 [03:48:52]ProducePacketName [03:48:52]name=ofd_packets/00002575 [03:48:52]NVStorageDeleteData [03:48:52]Write to MH i2c: 01 00 00 48 41 89 [03:48:52]Write i2c OK [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: 01 [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: 01 07 00 [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: 01 07 00 48 41 00 00 00 00 00 F0 0C 8C [03:48:52]RasterBufferAndPrint [03:48:52]line [03:48:52]line [03:48:52]line [03:48:52]line [03:48:52]line [03:48:52]written 0, free lines is 3322 [03:48:52]MH_Cut [03:48:52]Write to MH i2c: D1 01 00 4F 41 01 62 [03:48:52]Write i2c OK [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: D1 [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: D1 01 00 [03:48:52]MH_I2C_Read... [03:48:52]Read from MH i2c: D1 01 00 4F 41 00 61 [03:48:52]Write to MH i2c: 01 00 00 50 41 91 [03:48:52]Write i2c OK [03:48:52]MH_I2C_Read... [03:48:52]OFD Sender: No OFD packet to send [03:48:53]*** Cut start [03:48:53]*** Partial cut [03:48:53]*** CUTSNS_PIN = 1 [03:48:53]*** CUTSNS_PIN = 0 [03:48:53]*** Brake cut motor [03:48:53]Read from MH i2c: 01 [03:48:53]MH_I2C_Read... [03:48:53]*** Stop cut motor [03:48:53]*** Cut end [03:48:53]Read from MH i2c: 01 07 00 [03:48:53]MH_I2C_Read... [03:48:53]Read from MH i2c: 01 07 00 50 41 00 00 00 00 00 FF 0F A6 [03:48:53]process_action close_receipt done [03:48:53]requested_data is exist [03:48:53]produce_requested_data [03:48:53]requested_item fm.sn is exist - process it [03:48:53]wFMCommunicate request_size=4 [03:48:53]MH_SAM_APDU [03:48:53]CAPDU: 80 11 00 00 [03:48:53]Write to MH i2c: E2 08 00 51 41 80 11 00 00 00 00 00 00 0C [03:48:53]Write i2c OK [03:48:53]MH_I2C_Read... [03:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:53]Read from MH i2c: E2 [03:48:53]MH_I2C_Read... [03:48:53]Read from MH i2c: E2 17 00 [03:48:53]MH_I2C_Read... [03:48:53]Read from MH i2c: E2 17 00 51 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5C [03:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:48:53]wFMCommunicate OK [03:48:53]requested_item fd.num is exist - process it [03:48:53]SAM_PROTO_GetFieldsCounters [03:48:53]wFMCommunicate request_size=4 [03:48:53]MH_SAM_APDU [03:48:53]CAPDU: 80 13 00 00 [03:48:53]Write to MH i2c: E2 08 00 52 41 80 13 00 00 00 00 00 00 0F [03:48:53]Write i2c OK [03:48:53]MH_I2C_Read... [03:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:53]Read from MH i2c: E2 [03:48:53]MH_I2C_Read... [03:48:53]Read from MH i2c: E2 62 00 [03:48:53]MH_I2C_Read... [03:48:53]Read from MH i2c: E2 62 00 52 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0F 0A 00 00 0E 04 04 00 11 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 B7 [03:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0F 0A 00 00 0E 04 04 00 11 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 [03:48:53]wFMCommunicate OK [03:48:53]SAM_PROTO_GetFieldsCounters done [03:48:53]requested_item shift.num is exist - process it [03:48:53]requested_item shift.opened is exist - process it [03:48:53]req_shift_opened [03:48:53]FM_GetShiftState [03:48:53]SAM_PROTO_GetShiftState [03:48:53]wFMCommunicate request_size=4 [03:48:53]MH_SAM_APDU [03:48:53]CAPDU: 80 13 01 00 [03:48:53]Write to MH i2c: E2 08 00 53 41 80 13 01 00 00 00 00 00 11 [03:48:53]Write i2c OK [03:48:53]MH_I2C_Read... [03:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:53]Read from MH i2c: E2 [03:48:53]MH_I2C_Read... [03:48:54]Read from MH i2c: E2 0E 00 [03:48:54]MH_I2C_Read... [03:48:54]Read from MH i2c: E2 0E 00 53 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 DE [03:48:54]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:48:54]wFMCommunicate OK [03:48:54]SAM_PROTO_GetShiftState done [03:48:54]FM_GetShiftState done [03:48:54]req_shift_opened done [03:48:54]requested_item shift.open_date is exist - process it [03:48:54]req_shift_open_date [03:48:54]req_shift_open_date done [03:48:54]produce_requested_data done [03:48:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2575,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:48:54]process_action_free close_receipt [03:48:54]json_value_free [03:48:54]json_value_free done [03:48:54]process_json_proto returns [03:48:54]Send response to host [03:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2575,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:48:54]free response buf [03:48:54]execute_script done [03:48:54]execute_script returns [03:48:54]free content buf [03:48:54]Sock 9.Close socket [03:48:54]Sock 9.Thread stoped [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:43]accept exits with 7 [03:51:43]New connection [03:51:43]New thread 3067624804 created [03:51:43]Thread 3067481444 joined [03:51:43]Waiting for new connection... [03:51:43] Sock 7.Parse request [03:51:43]Sock 7.Check first char [03:51:43]Sock 7.First char is OK [03:51:43]request: POST /json_proto HTTP/1.0 [03:51:43]Method: POST [03:51:43]URL: /json_proto [03:51:43]Method is POST - this is cgi request [03:51:43]url: /json_proto [03:51:43]query_string will be loaded in cgi processing [03:51:43]execute_cgi json_proto POST (null) [03:51:43]execute_cgi path=json_proto method=POST [03:51:43]POST find Content-Length [03:51:43]Host: 172.17.45.132:8080 [03:51:43]Content-Length: 1808 [03:51:43]Content-Type: application/json [03:51:43] [03:51:43]POST finish read [03:51:43]Found Content-Length = 1808 [03:51:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126762", "tax_sys" : 0, "items" : [ { "code": "4700001060879", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:43]execute_script... [03:51: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 : (3)126762", "tax_sys" : 0, "items" : [ { "code": "4700001060879", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:43]POST & json_proto [03:51:43]process_json_proto [03:51:43]json parsed OK: [03:51:43]protocol is kg_v1.0 [03:51:43]action value=close_receipt [03:51:43]process_action close_receipt [03:51:43]cmd_close_receipt [03:51:43]MH_GetDate [03:51:43]Write to MH i2c: F0 00 00 54 41 84 [03:51:43]Write i2c OK [03:51:43]MH_I2C_Read... [03:51:43]Read from MH i2c: F0 [03:51:43]MH_I2C_Read... [03:51:43]Read from MH i2c: F0 09 00 [03:51:43]MH_I2C_Read... [03:51:43]Read from MH i2c: F0 09 00 54 41 00 D6 B4 A9 66 E3 0B 90 66 0A [03:51:43]GetLastDocTimeStamp 1722397736 [03:51:43]current date 1722397910 [03:51:43]FM_GetShiftState [03:51:43]SAM_PROTO_GetShiftState [03:51:43]wFMCommunicate request_size=4 [03:51:43]MH_SAM_APDU [03:51:43]CAPDU: 80 13 01 00 [03:51:43]Write to MH i2c: E2 08 00 55 41 80 13 01 00 00 00 00 00 13 [03:51:43]Write i2c OK [03:51:43]MH_I2C_Read... [03:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:43]Read from MH i2c: E2 [03:51:43]MH_I2C_Read... [03:51:43]Read from MH i2c: E2 0E 00 [03:51:43]MH_I2C_Read... [03:51:43]Read from MH i2c: E2 0E 00 55 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E0 [03:51:43]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:51:43]wFMCommunicate OK [03:51:43]SAM_PROTO_GetShiftState done [03:51:43]FM_GetShiftState done [03:51:43]opened in 1722384689 [03:51:43]opened+sec_in_day 1722471089 [03:51:43]quantity*price = 20000 [03:51:43]sum+1 = 20001 [03:51:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004982 Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 398.00 НСП 1% : 3.52 НДС 12% : 42.26 Наличными: 0.00 Безнал.: 398.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 29 31.07.2024 03:51 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2576 ФПД: 86644313412492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T035150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2576&fm=86644313412492&tin=02508201610067®Number=0000000000189667&sum=39800 0 [03:51:44]StoreToDocumentArchive [03:51:44]shift 17 fd 2576 [03:51:44]save to /storage/0017/doc_00002576 [03:51:44]save last doc name /storage/0017/doc_00002576 to /storage/kkm_last_doc_name [03:51:44]save OK [03:51:44]Clear old archive folders... [03:51:44]ProcessDocumentItem done err = 0, tmpTLVsize=670 [03:51:44]tlvbuf is B6F7E5F0 [03:51:44]SAM_PROTO_ClearQueue [03:51:44]wFMCommunicate request_size=4 [03:51:44]MH_SAM_APDU [03:51:44]CAPDU: 80 09 00 00 [03:51:44]Write to MH i2c: E2 08 00 62 41 80 09 00 00 00 00 00 00 15 [03:51:44]Write i2c OK [03:51:44]MH_I2C_Read... [03:51:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:51:44]Read from MH i2c: E2 [03:51:44]MH_I2C_Read... [03:51:44]Read from MH i2c: E2 03 00 [03:51:44]MH_I2C_Read... [03:51:44]Read from MH i2c: E2 03 00 62 41 00 90 00 17 [03:51:44]RAPDU: 90 00 [03:51:44]wFMCommunicate OK [03:51:44]SAM_PROTO_ClearQueue done [03:51:44]KKMCreateOFDPacket [03:51:44]OFDProtocolAddRootSTLVToBuf [03:51:44]FM_MakeSignedData [03:51:44]FM_MakeSignedData [03:51:44]SAM_PROTO_SignData [03:51:44]wFMCommunicate request_size=4 [03:51:44]MH_SAM_APDU [03:51:44]CAPDU: 80 0D 01 02 [03:51:44]Write to MH i2c: E2 08 00 63 41 80 0D 01 02 00 00 00 00 1D [03:51:44]Write i2c OK [03:51:44]MH_I2C_Read... [03:51:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:51:44]Read from MH i2c: E2 [03:51:44]MH_I2C_Read... [03:51:44]Read from MH i2c: E2 03 00 [03:51:44]MH_I2C_Read... [03:51:44]Read from MH i2c: E2 03 00 63 41 00 90 00 18 [03:51:44]RAPDU: 90 00 [03:51:44]wFMCommunicate OK [03:51:44]wFMCommunicate request_size=255 [03:51:44]MH_SAM_APDU [03:51:44]CAPDU: 80 0D 02 02 FA 03 00 9E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 [03:51:44]Write to MH i2c: E2 02 01 64 41 80 0D 02 02 FA 00 03 00 9E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 A8 [03:51:44]Write i2c OK [03:51:44]MH_I2C_Read... [03:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:45]Read from MH i2c: E2 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 64 41 00 90 00 19 [03:51:45]RAPDU: 90 00 [03:51:45]wFMCommunicate OK [03:51:45]wFMCommunicate request_size=255 [03:51:45]MH_SAM_APDU [03:51:45]CAPDU: 80 0D 02 02 FA 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 [03:51:45]Write to MH i2c: E2 02 01 65 41 80 0D 02 02 FA 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 00 00 3A [03:51:45]Write i2c OK [03:51:45]MH_I2C_Read... [03:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:45]Read from MH i2c: E2 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [03:51:45]RAPDU: 90 00 [03:51:45]wFMCommunicate OK [03:51:45]wFMCommunicate request_size=179 [03:51:45]MH_SAM_APDU [03:51:45]CAPDU: 80 0D 02 02 AE 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D6 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 0A 00 00 35 04 06 00 4E CD 73 85 D3 8C [03:51:45]Write to MH i2c: E2 B6 00 66 41 80 0D 02 02 AE 00 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D6 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 0A 00 00 35 04 06 00 4E CD 73 85 D3 8C 00 00 FB [03:51:45]Write i2c OK [03:51:45]MH_I2C_Read... [03:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:45]Read from MH i2c: E2 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [03:51:45]RAPDU: 90 00 [03:51:45]wFMCommunicate OK [03:51:45]wFMCommunicate request_size=4 [03:51:45]MH_SAM_APDU [03:51:45]CAPDU: 80 0D 03 02 [03:51:45]Write to MH i2c: E2 08 00 67 41 80 0D 03 02 00 00 00 00 23 [03:51:45]Write i2c OK [03:51:45]MH_I2C_Read... [03:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:51:45]Read from MH i2c: E2 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 0B 00 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 0B 00 67 41 00 6E D0 9B 4D B7 2D 8B 7F 90 00 38 [03:51:45]RAPDU: 6E D0 9B 4D B7 2D 8B 7F 90 00 [03:51:45]wFMCommunicate OK [03:51:45]SAM_PROTO_SignData done [03:51:45]FM_MakeSignedData done [03:51:45]CreateOFDProtocolMessage [03:51:45]wFMCommunicate request_size=4 [03:51:45]MH_SAM_APDU [03:51:45]CAPDU: 80 11 00 00 [03:51:45]Write to MH i2c: E2 08 00 68 41 80 11 00 00 00 00 00 00 23 [03:51:45]Write i2c OK [03:51:45]MH_I2C_Read... [03:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:45]Read from MH i2c: E2 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 17 00 [03:51:45]MH_I2C_Read... [03:51:45]Read from MH i2c: E2 17 00 68 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [03:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:51:45]wFMCommunicate OK [03:51:45]CreateOFDProtocolMessage done [03:51:45]OFDSenderStorePacket 2576 [03:51:45]StoreOFDPacket docnum=2576 [03:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B2 02 00 00 44 1C AA 02 A1 9A 5A 03 01 00 03 00 9E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D6 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 0A 00 00 35 04 06 00 4E CD 73 85 D3 8C 6E D0 9B 4D B7 2D 8B 7F [03:51:45]CheckFolder [03:51:45]dirname=/storage/ofd_packets [03:51:45]CheckFolder done [03:51:45]ProducePacketName [03:51:45]name=ofd_packets/00002576 [03:51:45]NVStorageSaveData ofd_packets/00002576 [03:51:45]File name is /storage/ofd_packets/00002576 [03:51:45]Write 720 bytes [03:51:45]NVStorageSaveData done [03:51:45]OFDSenderStorePacket done [03:51:46]KKMCreateOFDPacket done [03:51:46]NVStorageSaveData kkm_last_timestamp [03:51:46]File name is /storage/kkm_last_timestamp [03:51:46]Write 4 bytes [03:51:46]NVStorageSaveData done [03:51:46]ExternCall_PrintAddStr [03:51:46]wPrintStart [03:51:46]Write to MH i2c: 01 00 00 69 41 AA [03:51:46]OFD Sender: Processing packet 2576 [packets to send 1, broken 0] [03:51:46]ProducePacketName [03:51:46]name=ofd_packets/00002576 [03:51:46]Write i2c OK [03:51:46]MH_I2C_Read... [03:51:46]OFD Sender: To server: pG, [03:51:46]CommunicateWithHost lk.salyk.kg:30040 [03:51:46]ConnectInit lk.salyk.kg [03:51:46]Read from MH i2c: 01 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: 01 07 00 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: 01 07 00 69 41 00 00 00 00 00 FF 0F BF [03:51:46]RasterBufferAndPrint [03:51:46]line Счет N : (3)126762 [03:51:46]line ИНН: 02508201610067 [03:51:46]line Контрольно-Кассовый Чек [03:51:46]line ПРОДАЖА [03:51:46]line Товар: 4700001060879 [03:51:46]line Настойка Шоколад на коньяке 0,2л [03:51:46]line 1.000 * 200.00 [03:51:46]line = 200.00 [03:51:46]line НДС 12% НСП 1% [03:51:46]line > о реализуемом товаре [03:51:46]line Товар: 4870145004982 [03:51:46]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [03:51:46]line 1.000 * 105.00 [03:51:46]line = 105.00 [03:51:46]line НДС 12% НСП 1% [03:51:46]line > о реализуемом товаре [03:51:46]line Товар: 4700040114137 [03:51:46]line Султан чай 1л. зел лимон [03:51:46]line 1.000 * 65.00 [03:51:46]line = 65.00 [03:51:46]line НДС 12% НСП 1% [03:51:46]line > о реализуемом товаре [03:51:46]line Товар: 2000053020015 [03:51:46]line Бумажные стаканы 250мл 1шт [03:51:46]line 4.000 * 7.00 [03:51:46]line = 28.00 [03:51:46]line НДС 12% НСП 1% [03:51:46]line > о реализуемом товаре [03:51:46]line ИТОГО: 398.00 [03:51:46]line НСП 1% : 3.52 [03:51:46]line НДС 12% : 42.26 [03:51:46]line Наличными: 0.00 [03:51:46]line Безнал.: 398.00 [03:51:46]line Место: АЗС № 127 "Партнер Нефть" [03:51:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:51:46]line СНО: Общий режим [03:51:46]line Чек 29 31.07.2024 03:51 [03:51:46]line Смена: 17 ФФД: 1.0 [03:51:46]line ЗНМ: 0300000161 [03:51:46]line РНМ: 0000000000189667 [03:51:46]line Версия ККМ: v1.0 [03:51:46]line Платежная система: O! деньги [03:51:46]line ФМ: 0000000002094248 [03:51:46]line ФД: 2576 [03:51:46]line ФПД: 86644313412492 [03:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T035150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2576&fm=86644313412492&tin=02508201610067®Number=0000000000189667&sum=39800 [03:51:46]line 0 [03:51:46]written 0, free lines is 4095 [03:51:46]Connected sock=10 [03:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B2 02 00 00 44 1C AA 02 A1 9A 5A 03 01 00 03 00 9E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D6 B4 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 0A 00 00 35 04 06 00 4E CD 73 85 D3 8C 6E D0 9B 4D B7 2D 8B 7F [03:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 51 72 47 00 81 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 32 30 39 34 32 34 38 10 04 04 00 10 0A 00 00 F4 03 04 00 3E 60 A9 66 B6 04 01 00 00 1A 5A 93 8B EC 38 8E 18 [03:51:46]CommunicateWithHost err = 0 [03:51:46]CheckOFDResponse [03:51:46]1017 (14) - 77093643461234 [03:51:46]1041 (16) - 0000000002094248 [03:51:46]1040 (4) - 2576 [03:51:46]1012 (4) - 30.07.2024 21:50 [03:51:46]1206 (1) - 0 [03:51:46]OFD Sender: Remove packet 2576 [03:51:46]ProducePacketName [03:51:46]name=ofd_packets/00002576 [03:51:46]NVStorageDeleteData [03:51:46]Write to MH i2c: 01 00 00 A8 41 E9 [03:51:46]Write i2c OK [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: 01 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: 01 07 00 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: 01 07 00 A8 41 00 00 00 00 00 DD 0B D8 [03:51:46]RasterBufferAndPrint [03:51:46]line [03:51:46]line [03:51:46]line [03:51:46]line [03:51:46]line [03:51:46]written 0, free lines is 3045 [03:51:46]MH_Cut [03:51:46]Write to MH i2c: D1 01 00 AF 41 01 C2 [03:51:46]Write i2c OK [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: D1 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: D1 01 00 [03:51:46]MH_I2C_Read... [03:51:46]Read from MH i2c: D1 01 00 AF 41 00 C1 [03:51:46]Write to MH i2c: 01 00 00 B0 41 F1 [03:51:46]Write i2c OK [03:51:46]MH_I2C_Read... [03:51:47]OFD Sender: No OFD packet to send [03:51:47]*** Cut start [03:51:47]*** Partial cut [03:51:47]*** CUTSNS_PIN = 1 [03:51:47]*** CUTSNS_PIN = 0 [03:51:47]*** Brake cut motor [03:51:48]Read from MH i2c: 01 [03:51:48]MH_I2C_Read... [03:51:48]*** Stop cut motor [03:51:48]*** Cut end [03:51:48]Read from MH i2c: 01 07 00 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: 01 07 00 B0 41 00 00 00 00 00 FF 0F 06 [03:51:48]process_action close_receipt done [03:51:48]requested_data is exist [03:51:48]produce_requested_data [03:51:48]requested_item fm.sn is exist - process it [03:51:48]wFMCommunicate request_size=4 [03:51:48]MH_SAM_APDU [03:51:48]CAPDU: 80 11 00 00 [03:51:48]Write to MH i2c: E2 08 00 B1 41 80 11 00 00 00 00 00 00 6C [03:51:48]Write i2c OK [03:51:48]MH_I2C_Read... [03:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:48]Read from MH i2c: E2 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 17 00 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 17 00 B1 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BC [03:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:51:48]wFMCommunicate OK [03:51:48]requested_item fd.num is exist - process it [03:51:48]SAM_PROTO_GetFieldsCounters [03:51:48]wFMCommunicate request_size=4 [03:51:48]MH_SAM_APDU [03:51:48]CAPDU: 80 13 00 00 [03:51:48]Write to MH i2c: E2 08 00 B2 41 80 13 00 00 00 00 00 00 6F [03:51:48]Write i2c OK [03:51:48]MH_I2C_Read... [03:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:51:48]Read from MH i2c: E2 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 62 00 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 62 00 B2 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 10 0A 00 00 0E 04 04 00 11 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 1B [03:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 10 0A 00 00 0E 04 04 00 11 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 [03:51:48]wFMCommunicate OK [03:51:48]SAM_PROTO_GetFieldsCounters done [03:51:48]requested_item shift.num is exist - process it [03:51:48]requested_item shift.opened is exist - process it [03:51:48]req_shift_opened [03:51:48]FM_GetShiftState [03:51:48]SAM_PROTO_GetShiftState [03:51:48]wFMCommunicate request_size=4 [03:51:48]MH_SAM_APDU [03:51:48]CAPDU: 80 13 01 00 [03:51:48]Write to MH i2c: E2 08 00 B3 41 80 13 01 00 00 00 00 00 71 [03:51:48]Write i2c OK [03:51:48]MH_I2C_Read... [03:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:48]Read from MH i2c: E2 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 0E 00 [03:51:48]MH_I2C_Read... [03:51:48]Read from MH i2c: E2 0E 00 B3 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3E [03:51:48]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [03:51:48]wFMCommunicate OK [03:51:48]SAM_PROTO_GetShiftState done [03:51:48]FM_GetShiftState done [03:51:48]req_shift_opened done [03:51:48]requested_item shift.open_date is exist - process it [03:51:48]req_shift_open_date [03:51:48]req_shift_open_date done [03:51:48]produce_requested_data done [03:51:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2576,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [03:51:48]process_action_free close_receipt [03:51:48]json_value_free [03:51:48]json_value_free done [03:51:48]process_json_proto returns [03:51:48]Send response to host [03:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2576,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [03:51:48]free response buf [03:51:48]execute_script done [03:51:48]execute_script returns [03:51:48]free content buf [03:51:48]Sock 7.Close socket [03:51:48]Sock 7.Thread stoped [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:02:59]accept exits with 9 [04:02:59]New connection [04:02:59]New thread 3067481444 created [04:02:59]Thread 3067624804 joined [04:02:59]Waiting for new connection... [04:02:59] Sock 9.Parse request [04:02:59]Sock 9.Check first char [04:02:59]Sock 9.First char is OK [04:02:59]request: POST /json_proto HTTP/1.0 [04:02:59]Method: POST [04:02:59]URL: /json_proto [04:02:59]Method is POST - this is cgi request [04:02:59]url: /json_proto [04:02:59]query_string will be loaded in cgi processing [04:02:59]execute_cgi json_proto POST (null) [04:02:59]execute_cgi path=json_proto method=POST [04:02:59]POST find Content-Length [04:02:59]Host: 172.17.45.132:8080 [04:02:59]Content-Length: 1369 [04:02:59]Content-Type: application/json [04:02:59] [04:02:59]POST finish read [04:02:59]Found Content-Length = 1369 [04:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126763", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:59]execute_script... [04:02:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126763", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:59]POST & json_proto [04:02:59]process_json_proto [04:02:59]json parsed OK: [04:02:59]protocol is kg_v1.0 [04:02:59]action value=close_receipt [04:02:59]process_action close_receipt [04:02:59]cmd_close_receipt [04:02:59]MH_GetDate [04:02:59]Write to MH i2c: F0 00 00 B4 41 E4 [04:02:59]Write i2c OK [04:02:59]MH_I2C_Read... [04:02:59]Read from MH i2c: F0 [04:02:59]MH_I2C_Read... [04:02:59]Read from MH i2c: F0 09 00 [04:02:59]MH_I2C_Read... [04:02:59]Read from MH i2c: F0 09 00 B4 41 00 7A B7 A9 66 E3 0B 90 66 11 [04:02:59]GetLastDocTimeStamp 1722397910 [04:02:59]current date 1722398586 [04:02:59]FM_GetShiftState [04:02:59]SAM_PROTO_GetShiftState [04:02:59]wFMCommunicate request_size=4 [04:02:59]MH_SAM_APDU [04:02:59]CAPDU: 80 13 01 00 [04:02:59]Write to MH i2c: E2 08 00 B5 41 80 13 01 00 00 00 00 00 73 [04:02:59]Write i2c OK [04:02:59]MH_I2C_Read... [04:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:59]Read from MH i2c: E2 [04:02:59]MH_I2C_Read... [04:02:59]Read from MH i2c: E2 0E 00 [04:02:59]MH_I2C_Read... [04:02:59]Read from MH i2c: E2 0E 00 B5 41 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 40 [04:02:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:02:59]wFMCommunicate OK [04:02:59]SAM_PROTO_GetShiftState done [04:02:59]FM_GetShiftState done [04:02:59]opened in 1722384689 [04:02:59]opened+sec_in_day 1722471089 [04:02:59]quantity*price = 21000 [04:02:59]sum+1 = 21001 [04:02:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.89 НДС 12% : 46.72 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 30 31.07.2024 04:03 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2577 ФПД: 217746742301147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T040306&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2577&fm=217746742301147&tin=02508201610067®Number=0000000000189667&sum=44000 0 [04:03:00]StoreToDocumentArchive [04:03:00]shift 17 fd 2577 [04:03:00]save to /storage/0017/doc_00002577 [04:03:00]save last doc name /storage/0017/doc_00002577 to /storage/kkm_last_doc_name [04:03:00]save OK [04:03:00]Clear old archive folders... [04:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=555 [04:03:00]tlvbuf is 0085A100 [04:03:00]SAM_PROTO_ClearQueue [04:03:00]wFMCommunicate request_size=4 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 09 00 00 [04:03:00]Write to MH i2c: E2 08 00 C2 41 80 09 00 00 00 00 00 00 75 [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:03:00]Read from MH i2c: E2 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 03 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 03 00 C2 41 00 90 00 77 [04:03:00]RAPDU: 90 00 [04:03:00]wFMCommunicate OK [04:03:00]SAM_PROTO_ClearQueue done [04:03:00]KKMCreateOFDPacket [04:03:00]OFDProtocolAddRootSTLVToBuf [04:03:00]FM_MakeSignedData [04:03:00]FM_MakeSignedData [04:03:00]SAM_PROTO_SignData [04:03:00]wFMCommunicate request_size=4 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 0D 01 02 [04:03:00]Write to MH i2c: E2 08 00 C3 41 80 0D 01 02 00 00 00 00 7D [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:03:00]Read from MH i2c: E2 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 03 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 03 00 C3 41 00 90 00 78 [04:03:00]RAPDU: 90 00 [04:03:00]wFMCommunicate OK [04:03:00]wFMCommunicate request_size=255 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 0D 02 02 FA 03 00 2B 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 [04:03:00]Write to MH i2c: E2 02 01 C4 41 80 0D 02 02 FA 00 03 00 2B 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 00 00 91 [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:01]Read from MH i2c: E2 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 C4 41 00 90 00 79 [04:03:01]RAPDU: 90 00 [04:03:01]wFMCommunicate OK [04:03:01]wFMCommunicate request_size=255 [04:03:01]MH_SAM_APDU [04:03:01]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7A B7 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 [04:03:01]Write to MH i2c: E2 02 01 C5 41 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7A B7 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 00 00 52 [04:03:01]Write i2c OK [04:03:01]MH_I2C_Read... [04:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:01]Read from MH i2c: E2 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 C5 41 00 90 00 7A [04:03:01]RAPDU: 90 00 [04:03:01]wFMCommunicate OK [04:03:01]wFMCommunicate request_size=64 [04:03:01]MH_SAM_APDU [04:03:01]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 0A 00 00 35 04 06 00 C6 0A 1D 39 D1 DB [04:03:01]Write to MH i2c: E2 43 00 C6 41 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 0A 00 00 35 04 06 00 C6 0A 1D 39 D1 DB 00 00 C4 [04:03:01]Write i2c OK [04:03:01]MH_I2C_Read... [04:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:01]Read from MH i2c: E2 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 03 00 C6 41 00 90 00 7B [04:03:01]RAPDU: 90 00 [04:03:01]wFMCommunicate OK [04:03:01]wFMCommunicate request_size=4 [04:03:01]MH_SAM_APDU [04:03:01]CAPDU: 80 0D 03 02 [04:03:01]Write to MH i2c: E2 08 00 C7 41 80 0D 03 02 00 00 00 00 83 [04:03:01]Write i2c OK [04:03:01]MH_I2C_Read... [04:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:03:01]Read from MH i2c: E2 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 0B 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 0B 00 C7 41 00 CC 6A 0C 66 7E 21 17 B1 90 00 93 [04:03:01]RAPDU: CC 6A 0C 66 7E 21 17 B1 90 00 [04:03:01]wFMCommunicate OK [04:03:01]SAM_PROTO_SignData done [04:03:01]FM_MakeSignedData done [04:03:01]CreateOFDProtocolMessage [04:03:01]wFMCommunicate request_size=4 [04:03:01]MH_SAM_APDU [04:03:01]CAPDU: 80 11 00 00 [04:03:01]Write to MH i2c: E2 08 00 C8 41 80 11 00 00 00 00 00 00 83 [04:03:01]Write i2c OK [04:03:01]MH_I2C_Read... [04:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:01]Read from MH i2c: E2 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 17 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: E2 17 00 C8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [04:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:03:01]wFMCommunicate OK [04:03:01]CreateOFDProtocolMessage done [04:03:01]OFDSenderStorePacket 2577 [04:03:01]StoreOFDPacket docnum=2577 [04:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 02 00 00 2F 1D 37 02 ED 3F 5A 03 01 00 03 00 2B 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7A B7 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 0A 00 00 35 04 06 00 C6 0A 1D 39 D1 DB CC 6A 0C 66 7E 21 17 B1 [04:03:01]CheckFolder [04:03:01]dirname=/storage/ofd_packets [04:03:01]CheckFolder done [04:03:01]ProducePacketName [04:03:01]name=ofd_packets/00002577 [04:03:01]NVStorageSaveData ofd_packets/00002577 [04:03:01]File name is /storage/ofd_packets/00002577 [04:03:01]Write 605 bytes [04:03:01]NVStorageSaveData done [04:03:01]OFDSenderStorePacket done [04:03:01]KKMCreateOFDPacket done [04:03:01]NVStorageSaveData kkm_last_timestamp [04:03:01]File name is /storage/kkm_last_timestamp [04:03:01]Write 4 bytes [04:03:01]NVStorageSaveData done [04:03:01]ExternCall_PrintAddStr [04:03:01]wPrintStart [04:03:01]Write to MH i2c: 01 00 00 C9 41 0A [04:03:01]Write i2c OK [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: 01 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: 01 07 00 [04:03:01]MH_I2C_Read... [04:03:01]Read from MH i2c: 01 07 00 C9 41 00 00 00 00 00 FF 0F 1F [04:03:01]RasterBufferAndPrint [04:03:01]line Счет N : (3)126763 [04:03:01]line ИНН: 02508201610067 [04:03:01]line Контрольно-Кассовый Чек [04:03:01]line ПРОДАЖА [04:03:01]line Товар: 4870145004982 [04:03:01]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [04:03:01]line 2.000 * 105.00 [04:03:01]line = 210.00 [04:03:01]line НДС 12% НСП 1% [04:03:01]line > о реализуемом товаре [04:03:01]line Товар: 4700000480357 [04:03:01]line Пиво шахтерское 1л ПЭТ [04:03:01]line 1.000 * 170.00 [04:03:01]line = 170.00 [04:03:01]line НДС 12% НСП 1% [04:03:01]line > о реализуемом товаре [04:03:01]line Товар: 4700000160792 [04:03:01]line Снек Курут классический (круглый) [04:03:01]line 1.000 * 60.00 [04:03:01]line = 60.00 [04:03:01]line НДС 12% НСП 1% [04:03:01]line > о реализуемом товаре [04:03:01]line ИТОГО: 440.00 [04:03:01]line НСП 1% : 3.89 [04:03:01]line НДС 12% : 46.72 [04:03:01]line Наличными: 440.00 [04:03:01]line Безнал.: 0.00 [04:03:01]line Место: АЗС № 127 "Партнер Нефть" [04:03:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:03:01]line СНО: Общий режим [04:03:01]line Чек 30 31.07.2024 04:03 [04:03:01]line Смена: 17 ФФД: 1.0 [04:03:01]line ЗНМ: 0300000161 [04:03:01]line РНМ: 0000000000189667 [04:03:01]line Версия ККМ: v1.0 [04:03:01]line ФМ: 0000000002094248 [04:03:01]line ФД: 2577 [04:03:01]line ФПД: 217746742301147 [04:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T040306&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2577&fm=217746742301147&tin=02508201610067®Number=0000000000189667&sum=44000 [04:03:01]OFD Sender: Processing packet 2577 [packets to send 1, broken 0] [04:03:01]ProducePacketName [04:03:01]name=ofd_packets/00002577 [04:03:01]OFD Sender: To server: pG, [04:03:01]CommunicateWithHost lk.salyk.kg:30040 [04:03:01]ConnectInit lk.salyk.kg [04:03:01]line 0 [04:03:01]written 0, free lines is 4095 [04:03:01]Connected sock=10 [04:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 02 00 00 2F 1D 37 02 ED 3F 5A 03 01 00 03 00 2B 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 7A B7 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 0A 00 00 35 04 06 00 C6 0A 1D 39 D1 DB CC 6A 0C 66 7E 21 17 B1 [04:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 89 11 47 00 79 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 32 30 39 34 32 34 38 10 04 04 00 11 0A 00 00 F4 03 04 00 E2 62 A9 66 B6 04 01 00 00 F6 D3 EE D9 C2 E6 54 10 [04:03:02]CommunicateWithHost err = 0 [04:03:02]CheckOFDResponse [04:03:02]1017 (14) - 77093643461234 [04:03:02]1041 (16) - 0000000002094248 [04:03:02]1040 (4) - 2577 [04:03:02]1012 (4) - 30.07.2024 22:02 [04:03:02]1206 (1) - 0 [04:03:02]OFD Sender: Remove packet 2577 [04:03:02]ProducePacketName [04:03:02]name=ofd_packets/00002577 [04:03:02]NVStorageDeleteData [04:03:02]Write to MH i2c: 01 00 00 FF 41 40 [04:03:02]Write i2c OK [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: 01 [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: 01 07 00 [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: 01 07 00 FF 41 00 00 00 00 00 6B 0C BE [04:03:02]RasterBufferAndPrint [04:03:02]line [04:03:02]line [04:03:02]line [04:03:02]line [04:03:02]line [04:03:02]written 0, free lines is 3188 [04:03:02]MH_Cut [04:03:02]Write to MH i2c: D1 01 00 06 42 01 1A [04:03:02]Write i2c OK [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: D1 [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: D1 01 00 [04:03:02]MH_I2C_Read... [04:03:02]Read from MH i2c: D1 01 00 06 42 00 19 [04:03:02]Write to MH i2c: 01 00 00 07 42 49 [04:03:02]Write i2c OK [04:03:02]MH_I2C_Read... [04:03:02]OFD Sender: No OFD packet to send [04:03:03]*** Cut start [04:03:03]*** Partial cut [04:03:03]*** CUTSNS_PIN = 1 [04:03:03]*** CUTSNS_PIN = 0 [04:03:03]*** Brake cut motor [04:03:03]Read from MH i2c: 01 [04:03:03]MH_I2C_Read... [04:03:03]*** Stop cut motor [04:03:03]*** Cut end [04:03:03]Read from MH i2c: 01 07 00 [04:03:03]MH_I2C_Read... [04:03:03]Read from MH i2c: 01 07 00 07 42 00 00 00 00 00 FF 0F 5E [04:03:03]process_action close_receipt done [04:03:03]requested_data is exist [04:03:03]produce_requested_data [04:03:03]requested_item fm.sn is exist - process it [04:03:03]wFMCommunicate request_size=4 [04:03:03]MH_SAM_APDU [04:03:03]CAPDU: 80 11 00 00 [04:03:03]Write to MH i2c: E2 08 00 08 42 80 11 00 00 00 00 00 00 C4 [04:03:03]Write i2c OK [04:03:03]MH_I2C_Read... [04:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:03]Read from MH i2c: E2 [04:03:03]MH_I2C_Read... [04:03:03]Read from MH i2c: E2 17 00 [04:03:03]MH_I2C_Read... [04:03:03]Read from MH i2c: E2 17 00 08 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [04:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:03:03]wFMCommunicate OK [04:03:03]requested_item fd.num is exist - process it [04:03:03]SAM_PROTO_GetFieldsCounters [04:03:03]wFMCommunicate request_size=4 [04:03:03]MH_SAM_APDU [04:03:03]CAPDU: 80 13 00 00 [04:03:03]Write to MH i2c: E2 08 00 09 42 80 13 00 00 00 00 00 00 C7 [04:03:03]Write i2c OK [04:03:03]MH_I2C_Read... [04:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:03:03]Read from MH i2c: E2 [04:03:03]MH_I2C_Read... [04:03:03]Read from MH i2c: E2 62 00 [04:03:03]MH_I2C_Read... [04:03:03]Read from MH i2c: E2 62 00 09 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 0A 00 00 0E 04 04 00 11 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 77 [04:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 0A 00 00 0E 04 04 00 11 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 [04:03:03]wFMCommunicate OK [04:03:03]SAM_PROTO_GetFieldsCounters done [04:03:03]requested_item shift.num is exist - process it [04:03:03]requested_item shift.opened is exist - process it [04:03:03]req_shift_opened [04:03:03]FM_GetShiftState [04:03:03]SAM_PROTO_GetShiftState [04:03:03]wFMCommunicate request_size=4 [04:03:03]MH_SAM_APDU [04:03:03]CAPDU: 80 13 01 00 [04:03:03]Write to MH i2c: E2 08 00 0A 42 80 13 01 00 00 00 00 00 C9 [04:03:03]Write i2c OK [04:03:03]MH_I2C_Read... [04:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:04]Read from MH i2c: E2 [04:03:04]MH_I2C_Read... [04:03:04]Read from MH i2c: E2 0E 00 [04:03:04]MH_I2C_Read... [04:03:04]Read from MH i2c: E2 0E 00 0A 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 96 [04:03:04]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:03:04]wFMCommunicate OK [04:03:04]SAM_PROTO_GetShiftState done [04:03:04]FM_GetShiftState done [04:03:04]req_shift_opened done [04:03:04]requested_item shift.open_date is exist - process it [04:03:04]req_shift_open_date [04:03:04]req_shift_open_date done [04:03:04]produce_requested_data done [04:03:04]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2577,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [04:03:04]process_action_free close_receipt [04:03:04]json_value_free [04:03:04]json_value_free done [04:03:04]process_json_proto returns [04:03:04]Send response to host [04:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2577,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [04:03:04]free response buf [04:03:04]execute_script done [04:03:04]execute_script returns [04:03:04]free content buf [04:03:04]Sock 9.Close socket [04:03:04]Sock 9.Thread stoped [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:06]accept exits with 7 [04:22:06]New connection [04:22:06]New thread 3067624804 created [04:22:06]Thread 3067481444 joined [04:22:06]Waiting for new connection... [04:22:06] Sock 7.Parse request [04:22:06]Sock 7.Check first char [04:22:06]Sock 7.First char is OK [04:22:06]request: POST /json_proto HTTP/1.0 [04:22:06]Method: POST [04:22:06]URL: /json_proto [04:22:06]Method is POST - this is cgi request [04:22:06]url: /json_proto [04:22:06]query_string will be loaded in cgi processing [04:22:06]execute_cgi json_proto POST (null) [04:22:06]execute_cgi path=json_proto method=POST [04:22:06]POST find Content-Length [04:22:06]Host: 172.17.45.132:8080 [04:22:06]Content-Length: 650 [04:22:06]Content-Type: application/json [04:22:06] [04:22:06]POST finish read [04:22:06]Found Content-Length = 650 [04:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126764", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:06]execute_script... [04:22:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126764", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:06]POST & json_proto [04:22:06]process_json_proto [04:22:06]json parsed OK: [04:22:06]protocol is kg_v1.0 [04:22:06]action value=close_receipt [04:22:06]process_action close_receipt [04:22:06]cmd_close_receipt [04:22:06]MH_GetDate [04:22:06]Write to MH i2c: F0 00 00 0B 42 3C [04:22:06]Write i2c OK [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: F0 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: F0 09 00 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: F0 09 00 0B 42 00 F5 BB A9 66 E3 0B 90 66 E8 [04:22:06]GetLastDocTimeStamp 1722398586 [04:22:06]current date 1722399733 [04:22:06]FM_GetShiftState [04:22:06]SAM_PROTO_GetShiftState [04:22:06]wFMCommunicate request_size=4 [04:22:06]MH_SAM_APDU [04:22:06]CAPDU: 80 13 01 00 [04:22:06]Write to MH i2c: E2 08 00 0C 42 80 13 01 00 00 00 00 00 CB [04:22:06]Write i2c OK [04:22:06]MH_I2C_Read... [04:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:06]Read from MH i2c: E2 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 0E 00 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 0E 00 0C 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 98 [04:22:06]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:22:06]wFMCommunicate OK [04:22:06]SAM_PROTO_GetShiftState done [04:22:06]FM_GetShiftState done [04:22:06]opened in 1722384689 [04:22:06]opened+sec_in_day 1722471089 [04:22:06]quantity*price = 21000 [04:22:06]sum+1 = 21001 [04:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 31 31.07.2024 04:22 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2578 ФПД: 28475344018523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T042213&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2578&fm=28475344018523&tin=02508201610067®Number=0000000000189667&sum=21000 0 [04:22:07]StoreToDocumentArchive [04:22:07]shift 17 fd 2578 [04:22:07]save to /storage/0017/doc_00002578 [04:22:07]save last doc name /storage/0017/doc_00002578 to /storage/kkm_last_doc_name [04:22:07]save OK [04:22:07]Clear old archive folders... [04:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:22:07]tlvbuf is 009512E0 [04:22:07]SAM_PROTO_ClearQueue [04:22:07]wFMCommunicate request_size=4 [04:22:07]MH_SAM_APDU [04:22:07]CAPDU: 80 09 00 00 [04:22:07]Write to MH i2c: E2 08 00 19 42 80 09 00 00 00 00 00 00 CD [04:22:07]Write i2c OK [04:22:07]MH_I2C_Read... [04:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:07]Read from MH i2c: E2 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 19 42 00 90 00 CF [04:22:07]RAPDU: 90 00 [04:22:07]wFMCommunicate OK [04:22:07]SAM_PROTO_ClearQueue done [04:22:07]KKMCreateOFDPacket [04:22:07]OFDProtocolAddRootSTLVToBuf [04:22:07]FM_MakeSignedData [04:22:07]FM_MakeSignedData [04:22:07]SAM_PROTO_SignData [04:22:07]wFMCommunicate request_size=4 [04:22:07]MH_SAM_APDU [04:22:07]CAPDU: 80 0D 01 02 [04:22:07]Write to MH i2c: E2 08 00 1A 42 80 0D 01 02 00 00 00 00 D5 [04:22:07]Write i2c OK [04:22:07]MH_I2C_Read... [04:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:07]Read from MH i2c: E2 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 1A 42 00 90 00 D0 [04:22:07]RAPDU: 90 00 [04:22:07]wFMCommunicate OK [04:22:07]wFMCommunicate request_size=255 [04:22:07]MH_SAM_APDU [04:22:07]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 BB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [04:22:07]Write to MH i2c: E2 02 01 1B 42 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 BB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 C7 [04:22:07]Write i2c OK [04:22:07]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 1B 42 00 90 00 D1 [04:22:08]RAPDU: 90 00 [04:22:08]wFMCommunicate OK [04:22:08]wFMCommunicate request_size=41 [04:22:08]MH_SAM_APDU [04:22:08]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 0A 00 00 35 04 06 00 19 E5 EE C3 DC 5B [04:22:08]Write to MH i2c: E2 2C 00 1C 42 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 0A 00 00 35 04 06 00 19 E5 EE C3 DC 5B 00 00 A6 [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 1C 42 00 90 00 D2 [04:22:08]RAPDU: 90 00 [04:22:08]wFMCommunicate OK [04:22:08]wFMCommunicate request_size=4 [04:22:08]MH_SAM_APDU [04:22:08]CAPDU: 80 0D 03 02 [04:22:08]Write to MH i2c: E2 08 00 1D 42 80 0D 03 02 00 00 00 00 DA [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 0B 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 0B 00 1D 42 00 FE 09 6B 75 79 F5 44 58 90 00 CC [04:22:08]RAPDU: FE 09 6B 75 79 F5 44 58 90 00 [04:22:08]wFMCommunicate OK [04:22:08]SAM_PROTO_SignData done [04:22:08]FM_MakeSignedData done [04:22:08]CreateOFDProtocolMessage [04:22:08]wFMCommunicate request_size=4 [04:22:08]MH_SAM_APDU [04:22:08]CAPDU: 80 11 00 00 [04:22:08]Write to MH i2c: E2 08 00 1E 42 80 11 00 00 00 00 00 00 DA [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 17 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 17 00 1E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [04:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:22:08]wFMCommunicate OK [04:22:08]CreateOFDProtocolMessage done [04:22:08]OFDSenderStorePacket 2578 [04:22:08]StoreOFDPacket docnum=2578 [04:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 48 CE 26 01 C4 A5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 BB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 0A 00 00 35 04 06 00 19 E5 EE C3 DC 5B FE 09 6B 75 79 F5 44 58 [04:22:08]CheckFolder [04:22:08]dirname=/storage/ofd_packets [04:22:08]CheckFolder done [04:22:08]ProducePacketName [04:22:08]name=ofd_packets/00002578 [04:22:08]NVStorageSaveData ofd_packets/00002578 [04:22:08]File name is /storage/ofd_packets/00002578 [04:22:08]Write 332 bytes [04:22:08]NVStorageSaveData done [04:22:08]OFDSenderStorePacket done [04:22:08]KKMCreateOFDPacket done [04:22:08]NVStorageSaveData kkm_last_timestamp [04:22:08]File name is /storage/kkm_last_timestamp [04:22:08]Write 4 bytes [04:22:08]NVStorageSaveData done [04:22:08]ExternCall_PrintAddStr [04:22:08]wPrintStart [04:22:08]Write to MH i2c: 01 00 00 1F 42 61 [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: 01 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: 01 07 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: 01 07 00 1F 42 00 00 00 00 00 FF 0F 76 [04:22:08]RasterBufferAndPrint [04:22:08]line Счет N : (3)126764 [04:22:08]line ИНН: 02508201610067 [04:22:08]line Контрольно-Кассовый Чек [04:22:08]line ПРОДАЖА [04:22:08]line Товар: 2000034730018 [04:22:08]line Кофе Американо (GABB TRADE) [04:22:08]line 2.000 * 105.00 [04:22:08]line = 210.00 [04:22:08]line НДС 12% НСП 1% [04:22:08]line > о реализуемом товаре [04:22:08]line ИТОГО: 210.00 [04:22:08]line НСП 1% : 1.86 [04:22:08]line НДС 12% : 22.30 [04:22:08]line Наличными: 210.00 [04:22:08]line Безнал.: 0.00 [04:22:08]line Место: АЗС № 127 "Партнер Нефть" [04:22:08]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:22:08]line СНО: Общий режим [04:22:08]line Чек 31 31.07.2024 04:22 [04:22:08]line Смена: 17 ФФД: 1.0 [04:22:08]line ЗНМ: 0300000161 [04:22:08]line РНМ: 0000000000189667 [04:22:08]line Версия ККМ: v1.0 [04:22:08]line ФМ: 0000000002094248 [04:22:08]line ФД: 2578 [04:22:08]line ФПД: 28475344018523 [04:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T042213&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2578&fm=28475344018523&tin=02508201610067®Number=0000000000189667&sum=21000 [04:22:08]line 0 [04:22:08]OFD Sender: Processing packet 2578 [packets to send 1, broken 0] [04:22:08]ProducePacketName [04:22:08]name=ofd_packets/00002578 [04:22:08]OFD Sender: To server: pG, [04:22:08]CommunicateWithHost lk.salyk.kg:30040 [04:22:08]ConnectInit lk.salyk.kg [04:22:08]written 0, free lines is 4095 [04:22:08]Connected sock=11 [04:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 48 CE 26 01 C4 A5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 BB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 0A 00 00 35 04 06 00 19 E5 EE C3 DC 5B FE 09 6B 75 79 F5 44 58 [04:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FE 71 47 00 C0 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 0A 00 00 F4 03 04 00 5D 67 A9 66 B6 04 01 00 00 DB 2F 8E F4 64 91 57 5F [04:22:09]CommunicateWithHost err = 0 [04:22:09]CheckOFDResponse [04:22:09]1017 (14) - 77093643461234 [04:22:09]1041 (16) - 0000000002094248 [04:22:09]1040 (4) - 2578 [04:22:09]1012 (4) - 30.07.2024 22:21 [04:22:09]1206 (1) - 0 [04:22:09]OFD Sender: Remove packet 2578 [04:22:09]ProducePacketName [04:22:09]name=ofd_packets/00002578 [04:22:09]NVStorageDeleteData [04:22:09]Write to MH i2c: 01 00 00 48 42 8A [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 07 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 07 00 48 42 00 00 00 00 00 00 0D 9E [04:22:09]RasterBufferAndPrint [04:22:09]line [04:22:09]line [04:22:09]line [04:22:09]line [04:22:09]line [04:22:09]written 0, free lines is 3333 [04:22:09]MH_Cut [04:22:09]Write to MH i2c: D1 01 00 4F 42 01 63 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: D1 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: D1 01 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: D1 01 00 4F 42 00 62 [04:22:09]Write to MH i2c: 01 00 00 50 42 92 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]OFD Sender: No OFD packet to send [04:22:09]*** Cut start [04:22:09]*** Partial cut [04:22:09]*** CUTSNS_PIN = 1 [04:22:09]*** CUTSNS_PIN = 0 [04:22:10]*** Brake cut motor [04:22:10]Read from MH i2c: 01 [04:22:10]MH_I2C_Read... [04:22:10]*** Stop cut motor [04:22:10]*** Cut end [04:22:10]Read from MH i2c: 01 07 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: 01 07 00 50 42 00 00 00 00 00 FF 0F A7 [04:22:10]process_action close_receipt done [04:22:10]requested_data is exist [04:22:10]produce_requested_data [04:22:10]requested_item fm.sn is exist - process it [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 11 00 00 [04:22:10]Write to MH i2c: E2 08 00 51 42 80 11 00 00 00 00 00 00 0D [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 17 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 17 00 51 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [04:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:22:10]wFMCommunicate OK [04:22:10]requested_item fd.num is exist - process it [04:22:10]SAM_PROTO_GetFieldsCounters [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 13 00 00 [04:22:10]Write to MH i2c: E2 08 00 52 42 80 13 00 00 00 00 00 00 10 [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 62 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 62 00 52 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 0A 00 00 0E 04 04 00 11 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 C4 [04:22:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 0A 00 00 0E 04 04 00 11 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 [04:22:10]wFMCommunicate OK [04:22:10]SAM_PROTO_GetFieldsCounters done [04:22:10]requested_item shift.num is exist - process it [04:22:10]requested_item shift.opened is exist - process it [04:22:10]req_shift_opened [04:22:10]FM_GetShiftState [04:22:10]SAM_PROTO_GetShiftState [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 13 01 00 [04:22:10]Write to MH i2c: E2 08 00 53 42 80 13 01 00 00 00 00 00 12 [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 0E 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 0E 00 53 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 DF [04:22:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:22:10]wFMCommunicate OK [04:22:10]SAM_PROTO_GetShiftState done [04:22:10]FM_GetShiftState done [04:22:10]req_shift_opened done [04:22:10]requested_item shift.open_date is exist - process it [04:22:10]req_shift_open_date [04:22:10]req_shift_open_date done [04:22:10]produce_requested_data done [04:22:10]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2578,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [04:22:10]process_action_free close_receipt [04:22:10]json_value_free [04:22:10]json_value_free done [04:22:10]process_json_proto returns [04:22:10]Send response to host [04:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2578,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [04:22:10]free response buf [04:22:10]execute_script done [04:22:10]execute_script returns [04:22:10]free content buf [04:22:10]Sock 7.Close socket [04:22:10]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]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:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:22]accept exits with 9 [04:47:22]New connection [04:47:22]New thread 3067481444 created [04:47:22]Thread 3067624804 joined [04:47:22]Waiting for new connection... [04:47:22] Sock 9.Parse request [04:47:22]Sock 9.Check first char [04:47:22]Sock 9.First char is OK [04:47:22]request: POST /json_proto HTTP/1.0 [04:47:22]Method: POST [04:47:22]URL: /json_proto [04:47:22]Method is POST - this is cgi request [04:47:22]url: /json_proto [04:47:22]query_string will be loaded in cgi processing [04:47:22]execute_cgi json_proto POST (null) [04:47:22]execute_cgi path=json_proto method=POST [04:47:22]POST find Content-Length [04:47:22]Host: 172.17.45.132:8080 [04:47:22]Content-Length: 1317 [04:47:22]Content-Type: application/json [04:47:22] [04:47:22]POST finish read [04:47:22]Found Content-Length = 1317 [04:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126765", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 955.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:22]execute_script... [04:47: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 : (3)126765", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 955.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:22]POST & json_proto [04:47:22]process_json_proto [04:47:22]json parsed OK: [04:47:22]protocol is kg_v1.0 [04:47:22]action value=close_receipt [04:47:22]process_action close_receipt [04:47:22]cmd_close_receipt [04:47:22]MH_GetDate [04:47:22]Write to MH i2c: F0 00 00 54 42 85 [04:47:22]Write i2c OK [04:47:22]MH_I2C_Read... [04:47:22]Read from MH i2c: F0 [04:47:22]MH_I2C_Read... [04:47:22]Read from MH i2c: F0 09 00 [04:47:22]MH_I2C_Read... [04:47:22]Read from MH i2c: F0 09 00 54 42 00 E1 C1 A9 66 E3 0B 90 66 23 [04:47:22]GetLastDocTimeStamp 1722399733 [04:47:22]current date 1722401249 [04:47:22]FM_GetShiftState [04:47:22]SAM_PROTO_GetShiftState [04:47:22]wFMCommunicate request_size=4 [04:47:22]MH_SAM_APDU [04:47:22]CAPDU: 80 13 01 00 [04:47:22]Write to MH i2c: E2 08 00 55 42 80 13 01 00 00 00 00 00 14 [04:47:22]Write i2c OK [04:47:22]MH_I2C_Read... [04:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:22]Read from MH i2c: E2 [04:47:22]MH_I2C_Read... [04:47:22]Read from MH i2c: E2 0E 00 [04:47:22]MH_I2C_Read... [04:47:22]Read from MH i2c: E2 0E 00 55 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E1 [04:47:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:47:22]wFMCommunicate OK [04:47:22]SAM_PROTO_GetShiftState done [04:47:22]FM_GetShiftState done [04:47:22]opened in 1722384689 [04:47:22]opened+sec_in_day 1722471089 [04:47:22]quantity*price = 66000 [04:47:22]sum+1 = 66001 [04:47:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 955.00 НСП 1% : 8.45 НДС 12% : 101.42 Наличными: 0.00 Безнал.: 955.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 32 31.07.2024 04:47 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2579 ФПД: 238903851538803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T044729&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2579&fm=238903851538803&tin=02508201610067®Number=0000000000189667&sum=95500 0 [04:47:23]StoreToDocumentArchive [04:47:23]shift 17 fd 2579 [04:47:23]save to /storage/0017/doc_00002579 [04:47:23]save last doc name /storage/0017/doc_00002579 to /storage/kkm_last_doc_name [04:47:23]save OK [04:47:23]Clear old archive folders... [04:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=488 [04:47:23]tlvbuf is 009626E0 [04:47:23]SAM_PROTO_ClearQueue [04:47:23]wFMCommunicate request_size=4 [04:47:23]MH_SAM_APDU [04:47:23]CAPDU: 80 09 00 00 [04:47:23]Write to MH i2c: E2 08 00 62 42 80 09 00 00 00 00 00 00 16 [04:47:23]Write i2c OK [04:47:23]MH_I2C_Read... [04:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:23]Read from MH i2c: E2 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 62 42 00 90 00 18 [04:47:23]RAPDU: 90 00 [04:47:23]wFMCommunicate OK [04:47:23]SAM_PROTO_ClearQueue done [04:47:23]KKMCreateOFDPacket [04:47:23]OFDProtocolAddRootSTLVToBuf [04:47:23]FM_MakeSignedData [04:47:23]FM_MakeSignedData [04:47:23]SAM_PROTO_SignData [04:47:23]wFMCommunicate request_size=4 [04:47:23]MH_SAM_APDU [04:47:23]CAPDU: 80 0D 01 02 [04:47:23]Write to MH i2c: E2 08 00 63 42 80 0D 01 02 00 00 00 00 1E [04:47:23]Write i2c OK [04:47:23]MH_I2C_Read... [04:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:23]Read from MH i2c: E2 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 63 42 00 90 00 19 [04:47:23]RAPDU: 90 00 [04:47:23]wFMCommunicate OK [04:47:23]wFMCommunicate request_size=255 [04:47:23]MH_SAM_APDU [04:47:23]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 [04:47:23]Write to MH i2c: E2 02 01 64 42 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 00 00 2B [04:47:23]Write i2c OK [04:47:23]MH_I2C_Read... [04:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:23]Read from MH i2c: E2 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 [04:47:23]MH_I2C_Read... [04:47:23]Read from MH i2c: E2 03 00 64 42 00 90 00 1A [04:47:23]RAPDU: 90 00 [04:47:23]wFMCommunicate OK [04:47:23]wFMCommunicate request_size=247 [04:47:23]MH_SAM_APDU [04:47:23]CAPDU: 80 0D 02 02 F2 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 C1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 0A 00 00 35 04 06 00 D9 48 23 34 D9 73 [04:47:23]Write to MH i2c: E2 FA 00 65 42 80 0D 02 02 F2 00 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 C1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 0A 00 00 35 04 06 00 D9 48 23 34 D9 73 00 00 C0 [04:47:23]Write i2c OK [04:47:23]MH_I2C_Read... [04:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:24]Read from MH i2c: E2 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 03 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 03 00 65 42 00 90 00 1B [04:47:24]RAPDU: 90 00 [04:47:24]wFMCommunicate OK [04:47:24]wFMCommunicate request_size=4 [04:47:24]MH_SAM_APDU [04:47:24]CAPDU: 80 0D 03 02 [04:47:24]Write to MH i2c: E2 08 00 66 42 80 0D 03 02 00 00 00 00 23 [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:24]Read from MH i2c: E2 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 0B 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 0B 00 66 42 00 A5 87 4B DA E6 D9 BA 0D 90 00 FB [04:47:24]RAPDU: A5 87 4B DA E6 D9 BA 0D 90 00 [04:47:24]wFMCommunicate OK [04:47:24]SAM_PROTO_SignData done [04:47:24]FM_MakeSignedData done [04:47:24]CreateOFDProtocolMessage [04:47:24]wFMCommunicate request_size=4 [04:47:24]MH_SAM_APDU [04:47:24]CAPDU: 80 11 00 00 [04:47:24]Write to MH i2c: E2 08 00 67 42 80 11 00 00 00 00 00 00 23 [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:24]Read from MH i2c: E2 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 17 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: E2 17 00 67 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [04:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:47:24]wFMCommunicate OK [04:47:24]CreateOFDProtocolMessage done [04:47:24]OFDSenderStorePacket 2579 [04:47:24]StoreOFDPacket docnum=2579 [04:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FC 01 00 00 2D FE F4 01 AF F1 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 C1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 0A 00 00 35 04 06 00 D9 48 23 34 D9 73 A5 87 4B DA E6 D9 BA 0D [04:47:24]CheckFolder [04:47:24]dirname=/storage/ofd_packets [04:47:24]CheckFolder done [04:47:24]ProducePacketName [04:47:24]name=ofd_packets/00002579 [04:47:24]NVStorageSaveData ofd_packets/00002579 [04:47:24]File name is /storage/ofd_packets/00002579 [04:47:24]Write 538 bytes [04:47:24]NVStorageSaveData done [04:47:24]OFDSenderStorePacket done [04:47:24]KKMCreateOFDPacket done [04:47:24]NVStorageSaveData kkm_last_timestamp [04:47:24]File name is /storage/kkm_last_timestamp [04:47:24]Write 4 bytes [04:47:24]NVStorageSaveData done [04:47:24]ExternCall_PrintAddStr [04:47:24]wPrintStart [04:47:24]Write to MH i2c: 01 00 00 68 42 AA [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 07 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 07 00 68 42 00 00 00 00 00 FF 0F BF [04:47:24]RasterBufferAndPrint [04:47:24]line Счет N : (3)126765 [04:47:24]line ИНН: 02508201610067 [04:47:24]line Контрольно-Кассовый Чек [04:47:24]line ПРОДАЖА [04:47:24]line Товар: 4700001060152 [04:47:24]line Коньяк Бишкек 0,5л [04:47:24]line 1.000 * 660.00 [04:47:24]line = 660.00 [04:47:24]line НДС 12% НСП 1% [04:47:24]line > о реализуемом товаре [04:47:24]line Товар: 48743587 [04:47:24]line Сигареты Winston XStyle Silver [04:47:24]line 1.000 * 140.00 [04:47:24]line = 140.00 [04:47:24]line НДС 12% НСП 1% [04:47:24]line > о реализуемом товаре [04:47:24]line Товар: 5449000000439 [04:47:24]line Напиток Кока-Кола 1,5л [04:47:24]line 1.000 * 155.00 [04:47:24]line = 155.00 [04:47:24]line НДС 12% НСП 1% [04:47:24]line > о реализуемом товаре [04:47:24]line ИТОГО: 955.00 [04:47:24]line НСП 1% : 8.45 [04:47:24]line НДС 12% : 101.42 [04:47:24]line Наличными: 0.00 [04:47:24]line Безнал.: 955.00 [04:47:24]line Место: АЗС № 127 "Партнер Нефть" [04:47:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:47:24]line СНО: Общий режим [04:47:24]line Чек 32 31.07.2024 04:47 [04:47:24]line Смена: 17 ФФД: 1.0 [04:47:24]line ЗНМ: 0300000161 [04:47:24]line РНМ: 0000000000189667 [04:47:24]line Версия ККМ: v1.0 [04:47:24]line Платежная система: O! деньги [04:47:24]line ФМ: 0000000002094248 [04:47:24]line ФД: 2579 [04:47:24]line ФПД: 238903851538803 [04:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T044729&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2579&fm=238903851538803&tin=02508201610067®Number=0000000000189667&sum=95500 [04:47:24]line 0 [04:47:24]written 0, free lines is 4095 [04:47:24]OFD Sender: Processing packet 2579 [packets to send 1, broken 0] [04:47:24]ProducePacketName [04:47:24]name=ofd_packets/00002579 [04:47:24]OFD Sender: To server: pG, [04:47:24]CommunicateWithHost lk.salyk.kg:30040 [04:47:24]ConnectInit lk.salyk.kg [04:47:24]Connected sock=10 [04:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FC 01 00 00 2D FE F4 01 AF F1 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E1 C1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 0A 00 00 35 04 06 00 D9 48 23 34 D9 73 A5 87 4B DA E6 D9 BA 0D [04:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7A 7B 47 00 F0 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 0A 00 00 F4 03 04 00 48 6D A9 66 B6 04 01 00 00 5D 52 E7 C5 4D 84 7C A1 [04:47:24]CommunicateWithHost err = 0 [04:47:24]CheckOFDResponse [04:47:24]1017 (14) - 77093643461234 [04:47:24]1041 (16) - 0000000002094248 [04:47:24]1040 (4) - 2579 [04:47:24]1012 (4) - 30.07.2024 22:46 [04:47:24]1206 (1) - 0 [04:47:24]OFD Sender: Remove packet 2579 [04:47:24]ProducePacketName [04:47:24]name=ofd_packets/00002579 [04:47:24]NVStorageDeleteData [04:47:24]Write to MH i2c: 01 00 00 9F 42 E1 [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 07 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: 01 07 00 9F 42 00 00 00 00 00 60 0C 54 [04:47:24]RasterBufferAndPrint [04:47:24]line [04:47:24]line [04:47:24]line [04:47:24]line [04:47:24]line [04:47:24]written 0, free lines is 3178 [04:47:24]MH_Cut [04:47:24]Write to MH i2c: D1 01 00 A6 42 01 BA [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: D1 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: D1 01 00 [04:47:24]MH_I2C_Read... [04:47:24]Read from MH i2c: D1 01 00 A6 42 00 B9 [04:47:24]Write to MH i2c: 01 00 00 A7 42 E9 [04:47:24]Write i2c OK [04:47:24]MH_I2C_Read... [04:47:25]OFD Sender: No OFD packet to send [04:47:25]*** Cut start [04:47:25]*** Partial cut [04:47:25]*** CUTSNS_PIN = 1 [04:47:25]*** CUTSNS_PIN = 0 [04:47:25]*** Brake cut motor [04:47:26]Read from MH i2c: 01 [04:47:26]MH_I2C_Read... [04:47:26]*** Stop cut motor [04:47:26]*** Cut end [04:47:26]Read from MH i2c: 01 07 00 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: 01 07 00 A7 42 00 00 00 00 00 FF 0F FE [04:47:26]process_action close_receipt done [04:47:26]requested_data is exist [04:47:26]produce_requested_data [04:47:26]requested_item fm.sn is exist - process it [04:47:26]wFMCommunicate request_size=4 [04:47:26]MH_SAM_APDU [04:47:26]CAPDU: 80 11 00 00 [04:47:26]Write to MH i2c: E2 08 00 A8 42 80 11 00 00 00 00 00 00 64 [04:47:26]Write i2c OK [04:47:26]MH_I2C_Read... [04:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:26]Read from MH i2c: E2 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 17 00 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 17 00 A8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B4 [04:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:47:26]wFMCommunicate OK [04:47:26]requested_item fd.num is exist - process it [04:47:26]SAM_PROTO_GetFieldsCounters [04:47:26]wFMCommunicate request_size=4 [04:47:26]MH_SAM_APDU [04:47:26]CAPDU: 80 13 00 00 [04:47:26]Write to MH i2c: E2 08 00 A9 42 80 13 00 00 00 00 00 00 67 [04:47:26]Write i2c OK [04:47:26]MH_I2C_Read... [04:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:26]Read from MH i2c: E2 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 62 00 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 62 00 A9 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 0A 00 00 0E 04 04 00 11 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 1F [04:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 0A 00 00 0E 04 04 00 11 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 [04:47:26]wFMCommunicate OK [04:47:26]SAM_PROTO_GetFieldsCounters done [04:47:26]requested_item shift.num is exist - process it [04:47:26]requested_item shift.opened is exist - process it [04:47:26]req_shift_opened [04:47:26]FM_GetShiftState [04:47:26]SAM_PROTO_GetShiftState [04:47:26]wFMCommunicate request_size=4 [04:47:26]MH_SAM_APDU [04:47:26]CAPDU: 80 13 01 00 [04:47:26]Write to MH i2c: E2 08 00 AA 42 80 13 01 00 00 00 00 00 69 [04:47:26]Write i2c OK [04:47:26]MH_I2C_Read... [04:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:26]Read from MH i2c: E2 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 0E 00 [04:47:26]MH_I2C_Read... [04:47:26]Read from MH i2c: E2 0E 00 AA 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 36 [04:47:26]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:47:26]wFMCommunicate OK [04:47:26]SAM_PROTO_GetShiftState done [04:47:26]FM_GetShiftState done [04:47:26]req_shift_opened done [04:47:26]requested_item shift.open_date is exist - process it [04:47:26]req_shift_open_date [04:47:26]req_shift_open_date done [04:47:26]produce_requested_data done [04:47:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2579,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [04:47:26]process_action_free close_receipt [04:47:26]json_value_free [04:47:26]json_value_free done [04:47:26]process_json_proto returns [04:47:26]Send response to host [04:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2579,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [04:47:26]free response buf [04:47:26]execute_script done [04:47:26]execute_script returns [04:47:26]free content buf [04:47:26]Sock 9.Close socket [04:47:26]Sock 9.Thread stoped [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:14]accept exits with 7 [04:54:14]New connection [04:54:14]New thread 3067624804 created [04:54:14]Thread 3067481444 joined [04:54:14]Waiting for new connection... [04:54:14] Sock 7.Parse request [04:54:14]Sock 7.Check first char [04:54:14]Sock 7.First char is OK [04:54:14]request: POST /json_proto HTTP/1.0 [04:54:14]Method: POST [04:54:14]URL: /json_proto [04:54:14]Method is POST - this is cgi request [04:54:14]url: /json_proto [04:54:14]query_string will be loaded in cgi processing [04:54:14]execute_cgi json_proto POST (null) [04:54:14]execute_cgi path=json_proto method=POST [04:54:14]POST find Content-Length [04:54:14]Host: 172.17.45.132:8080 [04:54:14]Content-Length: 1312 [04:54:14]Content-Type: application/json [04:54:14] [04:54:14]POST finish read [04:54:14]Found Content-Length = 1312 [04:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126766", "tax_sys" : 0, "items" : [ { "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:14]execute_script... [04:54:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126766", "tax_sys" : 0, "items" : [ { "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:14]POST & json_proto [04:54:14]process_json_proto [04:54:14]json parsed OK: [04:54:14]protocol is kg_v1.0 [04:54:14]action value=close_receipt [04:54:14]process_action close_receipt [04:54:14]cmd_close_receipt [04:54:14]MH_GetDate [04:54:14]Write to MH i2c: F0 00 00 AB 42 DC [04:54:14]Write i2c OK [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: F0 [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: F0 09 00 [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: F0 09 00 AB 42 00 7D C3 A9 66 E3 0B 90 66 18 [04:54:14]GetLastDocTimeStamp 1722401249 [04:54:14]current date 1722401661 [04:54:14]FM_GetShiftState [04:54:14]SAM_PROTO_GetShiftState [04:54:14]wFMCommunicate request_size=4 [04:54:14]MH_SAM_APDU [04:54:14]CAPDU: 80 13 01 00 [04:54:14]Write to MH i2c: E2 08 00 AC 42 80 13 01 00 00 00 00 00 6B [04:54:14]Write i2c OK [04:54:14]MH_I2C_Read... [04:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:14]Read from MH i2c: E2 [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: E2 0E 00 [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: E2 0E 00 AC 42 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 38 [04:54:14]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:54:14]wFMCommunicate OK [04:54:14]SAM_PROTO_GetShiftState done [04:54:14]FM_GetShiftState done [04:54:14]opened in 1722384689 [04:54:14]opened+sec_in_day 1722471089 [04:54:14]quantity*price = 11500 [04:54:14]sum+1 = 11501 [04:54:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630056952563 Печ Юбилейное Торжество молочное 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 234.00 НСП 1% : 2.07 НДС 12% : 24.84 Наличными: 234.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 33 31.07.2024 04:54 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2580 ФПД: 29472720917901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045421&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2580&fm=29472720917901&tin=02508201610067®Number=0000000000189667&sum=23400 0 [04:54:15]StoreToDocumentArchive [04:54:15]shift 17 fd 2580 [04:54:15]save to /storage/0017/doc_00002580 [04:54:15]save last doc name /storage/0017/doc_00002580 to /storage/kkm_last_doc_name [04:54:15]save OK [04:54:15]Clear old archive folders... [04:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=536 [04:54:15]tlvbuf is 0087D330 [04:54:15]SAM_PROTO_ClearQueue [04:54:15]wFMCommunicate request_size=4 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 09 00 00 [04:54:15]Write to MH i2c: E2 08 00 B9 42 80 09 00 00 00 00 00 00 6D [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 B9 42 00 90 00 6F [04:54:15]RAPDU: 90 00 [04:54:15]wFMCommunicate OK [04:54:15]SAM_PROTO_ClearQueue done [04:54:15]KKMCreateOFDPacket [04:54:15]OFDProtocolAddRootSTLVToBuf [04:54:15]FM_MakeSignedData [04:54:15]FM_MakeSignedData [04:54:15]SAM_PROTO_SignData [04:54:15]wFMCommunicate request_size=4 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 0D 01 02 [04:54:15]Write to MH i2c: E2 08 00 BA 42 80 0D 01 02 00 00 00 00 75 [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 BA 42 00 90 00 70 [04:54:15]RAPDU: 90 00 [04:54:15]wFMCommunicate OK [04:54:15]wFMCommunicate request_size=255 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 0D 02 02 FA 03 00 18 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 [04:54:15]Write to MH i2c: E2 02 01 BB 42 80 0D 02 02 FA 00 03 00 18 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 00 00 67 [04:54:15]OFD Sender: No OFD packet to send [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 03 00 BB 42 00 90 00 71 [04:54:15]RAPDU: 90 00 [04:54:15]wFMCommunicate OK [04:54:15]wFMCommunicate request_size=255 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 0D 02 02 FA 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 7D C3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 [04:54:15]Write to MH i2c: E2 02 01 BC 42 80 0D 02 02 FA 00 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 7D C3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 00 00 34 [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:16]Read from MH i2c: E2 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 03 00 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 03 00 BC 42 00 90 00 72 [04:54:16]RAPDU: 90 00 [04:54:16]wFMCommunicate OK [04:54:16]wFMCommunicate request_size=45 [04:54:16]MH_SAM_APDU [04:54:16]CAPDU: 80 0D 02 02 28 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 0A 00 00 35 04 06 00 1A CE 27 0F 95 8D [04:54:16]Write to MH i2c: E2 30 00 BD 42 80 0D 02 02 28 00 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 0A 00 00 35 04 06 00 1A CE 27 0F 95 8D 00 00 2D [04:54:16]Write i2c OK [04:54:16]MH_I2C_Read... [04:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:16]Read from MH i2c: E2 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 03 00 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 03 00 BD 42 00 90 00 73 [04:54:16]RAPDU: 90 00 [04:54:16]wFMCommunicate OK [04:54:16]wFMCommunicate request_size=4 [04:54:16]MH_SAM_APDU [04:54:16]CAPDU: 80 0D 03 02 [04:54:16]Write to MH i2c: E2 08 00 BE 42 80 0D 03 02 00 00 00 00 7B [04:54:16]Write i2c OK [04:54:16]MH_I2C_Read... [04:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:16]Read from MH i2c: E2 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 0B 00 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 0B 00 BE 42 00 6B 44 05 B2 7E A6 8E 62 90 00 F6 [04:54:16]RAPDU: 6B 44 05 B2 7E A6 8E 62 90 00 [04:54:16]wFMCommunicate OK [04:54:16]SAM_PROTO_SignData done [04:54:16]FM_MakeSignedData done [04:54:16]CreateOFDProtocolMessage [04:54:16]wFMCommunicate request_size=4 [04:54:16]MH_SAM_APDU [04:54:16]CAPDU: 80 11 00 00 [04:54:16]Write to MH i2c: E2 08 00 BF 42 80 11 00 00 00 00 00 00 7B [04:54:16]Write i2c OK [04:54:16]MH_I2C_Read... [04:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:16]Read from MH i2c: E2 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 17 00 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: E2 17 00 BF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CB [04:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:54:16]wFMCommunicate OK [04:54:16]CreateOFDProtocolMessage done [04:54:16]OFDSenderStorePacket 2580 [04:54:16]StoreOFDPacket docnum=2580 [04:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 02 00 00 C5 6C 24 02 BF DE 5A 03 01 00 03 00 18 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 7D C3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 0A 00 00 35 04 06 00 1A CE 27 0F 95 8D 6B 44 05 B2 7E A6 8E 62 [04:54:16]CheckFolder [04:54:16]dirname=/storage/ofd_packets [04:54:16]CheckFolder done [04:54:16]ProducePacketName [04:54:16]name=ofd_packets/00002580 [04:54:16]NVStorageSaveData ofd_packets/00002580 [04:54:16]File name is /storage/ofd_packets/00002580 [04:54:16]Write 586 bytes [04:54:16]NVStorageSaveData done [04:54:16]OFDSenderStorePacket done [04:54:16]KKMCreateOFDPacket done [04:54:16]NVStorageSaveData kkm_last_timestamp [04:54:16]File name is /storage/kkm_last_timestamp [04:54:16]Write 4 bytes [04:54:16]NVStorageSaveData done [04:54:16]ExternCall_PrintAddStr [04:54:16]wPrintStart [04:54:16]Write to MH i2c: 01 00 00 C0 42 02 [04:54:16]Write i2c OK [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: 01 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: 01 07 00 [04:54:16]MH_I2C_Read... [04:54:16]Read from MH i2c: 01 07 00 C0 42 00 00 00 00 00 FF 0F 17 [04:54:16]RasterBufferAndPrint [04:54:16]line Счет N : (3)126766 [04:54:16]line ИНН: 02508201610067 [04:54:16]line Контрольно-Кассовый Чек [04:54:16]line ПРОДАЖА [04:54:16]line Товар: 4600080322137 [04:54:16]line Ваф Коровка с шок начинкой 150г [04:54:16]line 1.000 * 115.00 [04:54:16]line = 115.00 [04:54:16]line НДС 12% НСП 1% [04:54:16]line > о реализуемом товаре [04:54:16]line Товар: 4700000160204 [04:54:16]line Вода Легенда 1,5л [04:54:16]line 1.000 * 60.00 [04:54:16]line = 60.00 [04:54:16]line НДС 12% НСП 1% [04:54:16]line > о реализуемом товаре [04:54:16]line Товар: 4630056952563 [04:54:16]line Печ Юбилейное Торжество молочное 120г [04:54:16]line 1.000 * 59.00 [04:54:16]line = 59.00 [04:54:16]line НДС 12% НСП 1% [04:54:16]line > о реализуемом товаре [04:54:16]line ИТОГО: 234.00 [04:54:16]line НСП 1% : 2.07 [04:54:16]line НДС 12% : 24.84 [04:54:16]line Наличными: 234.00 [04:54:16]line Безнал.: 0.00 [04:54:16]line Место: АЗС № 127 "Партнер Нефть" [04:54:16]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:54:16]line СНО: Общий режим [04:54:16]line Чек 33 31.07.2024 04:54 [04:54:16]line Смена: 17 ФФД: 1.0 [04:54:16]line ЗНМ: 0300000161 [04:54:16]line РНМ: 0000000000189667 [04:54:16]line Версия ККМ: v1.0 [04:54:16]line ФМ: 0000000002094248 [04:54:16]line ФД: 2580 [04:54:16]line ФПД: 29472720917901 [04:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045421&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2580&fm=29472720917901&tin=02508201610067®Number=0000000000189667&sum=23400 [04:54:16]line 0 [04:54:16]OFD Sender: Processing packet 2580 [packets to send 1, broken 0] [04:54:16]ProducePacketName [04:54:16]name=ofd_packets/00002580 [04:54:16]OFD Sender: To server: pG, [04:54:16]CommunicateWithHost lk.salyk.kg:30040 [04:54:16]ConnectInit lk.salyk.kg [04:54:16]written 0, free lines is 4095 [04:54:16]Connected sock=9 [04:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 02 00 00 C5 6C 24 02 BF DE 5A 03 01 00 03 00 18 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 7D C3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 0A 00 00 35 04 06 00 1A CE 27 0F 95 8D 6B 44 05 B2 7E A6 8E 62 [04:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CA DA 47 00 9F 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 32 30 39 34 32 34 38 10 04 04 00 14 0A 00 00 F4 03 04 00 E5 6E A9 66 B6 04 01 00 00 B0 97 3F EC B7 02 B9 D5 [04:54:17]CommunicateWithHost err = 0 [04:54:17]CheckOFDResponse [04:54:17]1017 (14) - 77093643461234 [04:54:17]1041 (16) - 0000000002094248 [04:54:17]1040 (4) - 2580 [04:54:17]1012 (4) - 30.07.2024 22:53 [04:54:17]1206 (1) - 0 [04:54:17]OFD Sender: Remove packet 2580 [04:54:17]ProducePacketName [04:54:17]name=ofd_packets/00002580 [04:54:17]NVStorageDeleteData [04:54:17]Write to MH i2c: 01 00 00 F6 42 38 [04:54:17]Write i2c OK [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: 01 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: 01 07 00 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: 01 07 00 F6 42 00 00 00 00 00 69 0C B4 [04:54:17]RasterBufferAndPrint [04:54:17]line [04:54:17]line [04:54:17]line [04:54:17]line [04:54:17]line [04:54:17]written 0, free lines is 3186 [04:54:17]MH_Cut [04:54:17]Write to MH i2c: D1 01 00 FD 42 01 11 [04:54:17]Write i2c OK [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: D1 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: D1 01 00 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: D1 01 00 FD 42 00 10 [04:54:17]Write to MH i2c: 01 00 00 FE 42 40 [04:54:17]Write i2c OK [04:54:17]MH_I2C_Read... [04:54:17]OFD Sender: No OFD packet to send [04:54:18]*** Cut start [04:54:18]*** Partial cut [04:54:18]*** CUTSNS_PIN = 1 [04:54:18]*** CUTSNS_PIN = 0 [04:54:18]*** Brake cut motor [04:54:18]Read from MH i2c: 01 [04:54:18]MH_I2C_Read... [04:54:18]*** Stop cut motor [04:54:18]*** Cut end [04:54:18]Read from MH i2c: 01 07 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: 01 07 00 FE 42 00 00 00 00 00 FF 0F 55 [04:54:18]process_action close_receipt done [04:54:18]requested_data is exist [04:54:18]produce_requested_data [04:54:18]requested_item fm.sn is exist - process it [04:54:18]wFMCommunicate request_size=4 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 11 00 00 [04:54:18]Write to MH i2c: E2 08 00 FF 42 80 11 00 00 00 00 00 00 BB [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:18]Read from MH i2c: E2 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 17 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 17 00 FF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0B [04:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:54:18]wFMCommunicate OK [04:54:18]requested_item fd.num is exist - process it [04:54:18]SAM_PROTO_GetFieldsCounters [04:54:18]wFMCommunicate request_size=4 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 13 00 00 [04:54:18]Write to MH i2c: E2 08 00 00 43 80 13 00 00 00 00 00 00 BF [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:18]Read from MH i2c: E2 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 62 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 62 00 00 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 0A 00 00 0E 04 04 00 11 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 7B [04:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 0A 00 00 0E 04 04 00 11 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 [04:54:18]wFMCommunicate OK [04:54:18]SAM_PROTO_GetFieldsCounters done [04:54:18]requested_item shift.num is exist - process it [04:54:18]requested_item shift.opened is exist - process it [04:54:18]req_shift_opened [04:54:18]FM_GetShiftState [04:54:18]SAM_PROTO_GetShiftState [04:54:18]wFMCommunicate request_size=4 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 13 01 00 [04:54:18]Write to MH i2c: E2 08 00 01 43 80 13 01 00 00 00 00 00 C1 [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:18]Read from MH i2c: E2 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 0E 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 0E 00 01 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 8E [04:54:18]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [04:54:18]wFMCommunicate OK [04:54:18]SAM_PROTO_GetShiftState done [04:54:18]FM_GetShiftState done [04:54:18]req_shift_opened done [04:54:18]requested_item shift.open_date is exist - process it [04:54:18]req_shift_open_date [04:54:18]req_shift_open_date done [04:54:18]produce_requested_data done [04:54:18]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2580,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [04:54:18]process_action_free close_receipt [04:54:18]json_value_free [04:54:18]json_value_free done [04:54:18]process_json_proto returns [04:54:18]Send response to host [04:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2580,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [04:54:18]free response buf [04:54:18]execute_script done [04:54:18]execute_script returns [04:54:18]free content buf [04:54:18]Sock 7.Close socket [04:54:18]Sock 7.Thread stoped [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:36]accept exits with 10 [05:08:36]New connection [05:08:36]New thread 3067481444 created [05:08:36]Thread 3067624804 joined [05:08:36]Waiting for new connection... [05:08:36] Sock 10.Parse request [05:08:36]Sock 10.Check first char [05:08:36]Sock 10.First char is OK [05:08:36]request: POST /json_proto HTTP/1.0 [05:08:36]Method: POST [05:08:36]URL: /json_proto [05:08:36]Method is POST - this is cgi request [05:08:36]url: /json_proto [05:08:36]query_string will be loaded in cgi processing [05:08:36]execute_cgi json_proto POST (null) [05:08:36]execute_cgi path=json_proto method=POST [05:08:36]POST find Content-Length [05:08:36]Host: 172.17.45.132:8080 [05:08:36]Content-Length: 2299 [05:08:36]Content-Type: application/json [05:08:36] [05:08:36]POST finish read [05:08:36]Found Content-Length = 2299 [05:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126767", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:36]execute_script... [05:08:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126767", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:37]POST & json_proto [05:08:37]process_json_proto [05:08:37]json parsed OK: [05:08:37]protocol is kg_v1.0 [05:08:37]action value=close_receipt [05:08:37]process_action close_receipt [05:08:37]cmd_close_receipt [05:08:37]MH_GetDate [05:08:37]Write to MH i2c: F0 00 00 02 43 34 [05:08:37]Write i2c OK [05:08:37]MH_I2C_Read... [05:08:37]Read from MH i2c: F0 [05:08:37]MH_I2C_Read... [05:08:37]Read from MH i2c: F0 09 00 [05:08:37]MH_I2C_Read... [05:08:37]Read from MH i2c: F0 09 00 02 43 00 DC C6 A9 66 E3 0B 90 66 D2 [05:08:37]GetLastDocTimeStamp 1722401661 [05:08:37]current date 1722402524 [05:08:37]FM_GetShiftState [05:08:37]SAM_PROTO_GetShiftState [05:08:37]wFMCommunicate request_size=4 [05:08:37]MH_SAM_APDU [05:08:37]CAPDU: 80 13 01 00 [05:08:37]Write to MH i2c: E2 08 00 03 43 80 13 01 00 00 00 00 00 C3 [05:08:37]Write i2c OK [05:08:37]MH_I2C_Read... [05:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:37]Read from MH i2c: E2 [05:08:37]MH_I2C_Read... [05:08:37]Read from MH i2c: E2 0E 00 [05:08:37]MH_I2C_Read... [05:08:37]Read from MH i2c: E2 0E 00 03 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 90 [05:08:37]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:08:37]wFMCommunicate OK [05:08:37]SAM_PROTO_GetShiftState done [05:08:37]FM_GetShiftState done [05:08:37]opened in 1722384689 [05:08:37]opened+sec_in_day 1722471089 [05:08:37]quantity*price = 33000 [05:08:37]sum+1 = 33001 [05:08:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004753 Напиток Garage hard lemon ст 0,4л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000011527 Напиток Фанта 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 5.000 * 7.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747066 Сигареты Winston True Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 815.00 НСП 1% : 7.21 НДС 12% : 86.55 Наличными: 815.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 34 31.07.2024 05:08 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2581 ФПД: 33329118276112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T050844&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2581&fm=33329118276112&tin=02508201610067®Number=0000000000189667&sum=81500 0 [05:08:38]StoreToDocumentArchive [05:08:38]shift 17 fd 2581 [05:08:38]save to /storage/0017/doc_00002581 [05:08:38]save last doc name /storage/0017/doc_00002581 to /storage/kkm_last_doc_name [05:08:38]save OK [05:08:38]Clear old archive folders... [05:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=952 [05:08:38]tlvbuf is 008548E0 [05:08:38]SAM_PROTO_ClearQueue [05:08:38]wFMCommunicate request_size=4 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 09 00 00 [05:08:38]Write to MH i2c: E2 08 00 10 43 80 09 00 00 00 00 00 00 C5 [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:08:38]Read from MH i2c: E2 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 03 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 03 00 10 43 00 90 00 C7 [05:08:38]RAPDU: 90 00 [05:08:38]wFMCommunicate OK [05:08:38]SAM_PROTO_ClearQueue done [05:08:38]KKMCreateOFDPacket [05:08:38]OFDProtocolAddRootSTLVToBuf [05:08:38]FM_MakeSignedData [05:08:38]FM_MakeSignedData [05:08:38]SAM_PROTO_SignData [05:08:38]wFMCommunicate request_size=4 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 0D 01 02 [05:08:38]Write to MH i2c: E2 08 00 11 43 80 0D 01 02 00 00 00 00 CD [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:08:38]Read from MH i2c: E2 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 03 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 03 00 11 43 00 90 00 C8 [05:08:38]RAPDU: 90 00 [05:08:38]wFMCommunicate OK [05:08:38]wFMCommunicate request_size=255 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 0D 02 02 FA 03 00 B8 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 [05:08:38]Write to MH i2c: E2 02 01 12 43 80 0D 02 02 FA 00 03 00 B8 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 00 00 74 [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 12 43 00 90 00 C9 [05:08:39]RAPDU: 90 00 [05:08:39]wFMCommunicate OK [05:08:39]wFMCommunicate request_size=255 [05:08:39]MH_SAM_APDU [05:08:39]CAPDU: 80 0D 02 02 FA B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 [05:08:39]Write to MH i2c: E2 02 01 13 43 80 0D 02 02 FA 00 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 00 00 DB [05:08:39]Write i2c OK [05:08:39]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [05:08:39]RAPDU: 90 00 [05:08:39]wFMCommunicate OK [05:08:39]wFMCommunicate request_size=255 [05:08:39]MH_SAM_APDU [05:08:39]CAPDU: 80 0D 02 02 FA 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 [05:08:39]Write to MH i2c: E2 02 01 14 43 80 0D 02 02 FA 00 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 00 00 37 [05:08:39]Write i2c OK [05:08:39]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [05:08:39]RAPDU: 90 00 [05:08:39]wFMCommunicate OK [05:08:39]wFMCommunicate request_size=211 [05:08:39]MH_SAM_APDU [05:08:39]CAPDU: 80 0D 02 02 CE 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 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 DC C6 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 0A 00 00 35 04 06 00 1E 50 0A 41 6A 10 [05:08:39]Write to MH i2c: E2 D6 00 15 43 80 0D 02 02 CE 00 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 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 DC C6 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 0A 00 00 35 04 06 00 1E 50 0A 41 6A 10 00 00 C9 [05:08:39]Write i2c OK [05:08:39]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 03 00 15 43 00 90 00 CC [05:08:39]RAPDU: 90 00 [05:08:39]wFMCommunicate OK [05:08:39]wFMCommunicate request_size=4 [05:08:39]MH_SAM_APDU [05:08:39]CAPDU: 80 0D 03 02 [05:08:39]Write to MH i2c: E2 08 00 16 43 80 0D 03 02 00 00 00 00 D4 [05:08:39]Write i2c OK [05:08:39]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 0B 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 0B 00 16 43 00 6C 25 45 0D 64 C6 2B BA 90 00 C7 [05:08:39]RAPDU: 6C 25 45 0D 64 C6 2B BA 90 00 [05:08:39]wFMCommunicate OK [05:08:39]SAM_PROTO_SignData done [05:08:39]FM_MakeSignedData done [05:08:39]CreateOFDProtocolMessage [05:08:39]wFMCommunicate request_size=4 [05:08:39]MH_SAM_APDU [05:08:39]CAPDU: 80 11 00 00 [05:08:39]Write to MH i2c: E2 08 00 17 43 80 11 00 00 00 00 00 00 D4 [05:08:39]Write i2c OK [05:08:39]MH_I2C_Read... [05:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:39]Read from MH i2c: E2 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 17 00 [05:08:39]MH_I2C_Read... [05:08:39]Read from MH i2c: E2 17 00 17 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 24 [05:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:08:39]wFMCommunicate OK [05:08:39]CreateOFDProtocolMessage done [05:08:39]OFDSenderStorePacket 2581 [05:08:39]StoreOFDPacket docnum=2581 [05:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CC 03 00 00 34 8A C4 03 26 51 5A 03 01 00 03 00 B8 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 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 DC C6 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 0A 00 00 35 04 06 00 1E 50 0A 41 6A 10 6C 25 45 0D 64 C6 2B BA [05:08:40]CheckFolder [05:08:40]dirname=/storage/ofd_packets [05:08:40]CheckFolder done [05:08:40]ProducePacketName [05:08:40]name=ofd_packets/00002581 [05:08:40]NVStorageSaveData ofd_packets/00002581 [05:08:40]File name is /storage/ofd_packets/00002581 [05:08:40]Write 1002 bytes [05:08:40]NVStorageSaveData done [05:08:40]OFDSenderStorePacket done [05:08:40]KKMCreateOFDPacket done [05:08:40]NVStorageSaveData kkm_last_timestamp [05:08:40]File name is /storage/kkm_last_timestamp [05:08:40]Write 4 bytes [05:08:40]NVStorageSaveData done [05:08:40]ExternCall_PrintAddStr [05:08:40]wPrintStart [05:08:40]Write to MH i2c: 01 00 00 18 43 5B [05:08:40]Write i2c OK [05:08:40]MH_I2C_Read... [05:08:40]Read from MH i2c: 01 [05:08:40]MH_I2C_Read... [05:08:40]Read from MH i2c: 01 07 00 [05:08:40]MH_I2C_Read... [05:08:40]OFD Sender: Processing packet 2581 [packets to send 1, broken 0] [05:08:40]ProducePacketName [05:08:40]name=ofd_packets/00002581 [05:08:40]OFD Sender: To server: pG, [05:08:40]CommunicateWithHost lk.salyk.kg:30040 [05:08:40]ConnectInit lk.salyk.kg [05:08:40]Read from MH i2c: 01 07 00 18 43 00 00 00 00 00 FF 0F 70 [05:08:40]RasterBufferAndPrint [05:08:40]line Счет N : (3)126767 [05:08:40]line ИНН: 02508201610067 [05:08:40]line Контрольно-Кассовый Чек [05:08:40]line ПРОДАЖА [05:08:40]line Товар: 4700001060169 [05:08:40]line Коньяк Бишкек 0,2л [05:08:40]line 1.000 * 330.00 [05:08:40]line = 330.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 4870145004753 [05:08:40]line Напиток Garage hard lemon ст 0,4л [05:08:40]line 1.000 * 120.00 [05:08:40]line = 120.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 42203100 [05:08:40]line Жев Orbit банан-клубника [05:08:40]line 1.000 * 45.00 [05:08:40]line = 45.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 5449000011527 [05:08:40]line Напиток Фанта 0,33л [05:08:40]line 1.000 * 85.00 [05:08:40]line = 85.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 4700000160792 [05:08:40]line Снек Курут классический (круглый) [05:08:40]line 1.000 * 60.00 [05:08:40]line = 60.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 2000053020015 [05:08:40]line Бумажные стаканы 250мл 1шт [05:08:40]line 5.000 * 7.00 [05:08:40]line = 35.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line Товар: 48747066 [05:08:40]line Сигареты Winston True Silver [05:08:40]line 1.000 * 140.00 [05:08:40]line = 140.00 [05:08:40]line НДС 12% НСП 1% [05:08:40]line > о реализуемом товаре [05:08:40]line ИТОГО: 815.00 [05:08:40]line НСП 1% : 7.21 [05:08:40]line НДС 12% : 86.55 [05:08:40]line Наличными: 815.00 [05:08:40]line Безнал.: 0.00 [05:08:40]line Место: АЗС № 127 "Партнер Нефть" [05:08:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:08:40]line СНО: Общий режим [05:08:40]line Чек 34 31.07.2024 05:08 [05:08:40]line Смена: 17 ФФД: 1.0 [05:08:40]line ЗНМ: 0300000161 [05:08:40]line РНМ: 0000000000189667 [05:08:40]line Версия ККМ: v1.0 [05:08:40]line ФМ: 0000000002094248 [05:08:40]line ФД: 2581 [05:08:40]line ФПД: 33329118276112 [05:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T050844&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2581&fm=33329118276112&tin=02508201610067®Number=0000000000189667&sum=81500 [05:08:40]line 0 [05:08:40]written 0, free lines is 4095 [05:08:40]Connected sock=9 [05:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CC 03 00 00 34 8A C4 03 26 51 5A 03 01 00 03 00 B8 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 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 DC C6 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 0A 00 00 35 04 06 00 1E 50 0A 41 6A 10 6C 25 45 0D 64 C6 2B BA [05:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BA A5 47 00 E5 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 32 30 39 34 32 34 38 10 04 04 00 15 0A 00 00 F4 03 04 00 45 72 A9 66 B6 04 01 00 00 B5 B0 B0 29 11 68 71 18 [05:08:40]CommunicateWithHost err = 0 [05:08:40]CheckOFDResponse [05:08:40]1017 (14) - 77093643461234 [05:08:40]1041 (16) - 0000000002094248 [05:08:40]1040 (4) - 2581 [05:08:40]1012 (4) - 30.07.2024 23:07 [05:08:40]1206 (1) - 0 [05:08:40]OFD Sender: Remove packet 2581 [05:08:40]ProducePacketName [05:08:40]name=ofd_packets/00002581 [05:08:40]NVStorageDeleteData [05:08:41]Write to MH i2c: 01 00 00 67 43 AA [05:08:41]Write i2c OK [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: 01 [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: 01 07 00 [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: 01 07 00 67 43 00 00 00 00 00 29 0B E5 [05:08:41]RasterBufferAndPrint [05:08:41]line [05:08:41]line [05:08:41]line [05:08:41]line [05:08:41]line [05:08:41]written 0, free lines is 2869 [05:08:41]MH_Cut [05:08:41]Write to MH i2c: D1 01 00 6E 43 01 83 [05:08:41]Write i2c OK [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: D1 [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: D1 01 00 [05:08:41]MH_I2C_Read... [05:08:41]Read from MH i2c: D1 01 00 6E 43 00 82 [05:08:41]Write to MH i2c: 01 00 00 6F 43 B2 [05:08:41]Write i2c OK [05:08:41]MH_I2C_Read... [05:08:41]OFD Sender: No OFD packet to send [05:08:42]*** Cut start [05:08:42]*** Partial cut [05:08:42]*** CUTSNS_PIN = 1 [05:08:42]*** CUTSNS_PIN = 0 [05:08:42]*** Brake cut motor [05:08:42]Read from MH i2c: 01 [05:08:42]MH_I2C_Read... [05:08:42]*** Stop cut motor [05:08:42]*** Cut end [05:08:42]Read from MH i2c: 01 07 00 [05:08:42]MH_I2C_Read... [05:08:42]Read from MH i2c: 01 07 00 6F 43 00 00 00 00 00 FF 0F C7 [05:08:42]process_action close_receipt done [05:08:42]requested_data is exist [05:08:42]produce_requested_data [05:08:42]requested_item fm.sn is exist - process it [05:08:42]wFMCommunicate request_size=4 [05:08:42]MH_SAM_APDU [05:08:42]CAPDU: 80 11 00 00 [05:08:42]Write to MH i2c: E2 08 00 70 43 80 11 00 00 00 00 00 00 2D [05:08:42]Write i2c OK [05:08:42]MH_I2C_Read... [05:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:42]Read from MH i2c: E2 [05:08:42]MH_I2C_Read... [05:08:42]Read from MH i2c: E2 17 00 [05:08:42]MH_I2C_Read... [05:08:42]Read from MH i2c: E2 17 00 70 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7D [05:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:08:42]wFMCommunicate OK [05:08:42]requested_item fd.num is exist - process it [05:08:42]SAM_PROTO_GetFieldsCounters [05:08:42]wFMCommunicate request_size=4 [05:08:42]MH_SAM_APDU [05:08:42]CAPDU: 80 13 00 00 [05:08:42]Write to MH i2c: E2 08 00 71 43 80 13 00 00 00 00 00 00 30 [05:08:42]Write i2c OK [05:08:42]MH_I2C_Read... [05:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:08:42]Read from MH i2c: E2 [05:08:42]MH_I2C_Read... [05:08:42]Read from MH i2c: E2 62 00 [05:08:42]MH_I2C_Read... [05:08:42]Read from MH i2c: E2 62 00 71 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 15 0A 00 00 0E 04 04 00 11 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 F0 [05:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 15 0A 00 00 0E 04 04 00 11 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 [05:08:43]wFMCommunicate OK [05:08:43]SAM_PROTO_GetFieldsCounters done [05:08:43]requested_item shift.num is exist - process it [05:08:43]requested_item shift.opened is exist - process it [05:08:43]req_shift_opened [05:08:43]FM_GetShiftState [05:08:43]SAM_PROTO_GetShiftState [05:08:43]wFMCommunicate request_size=4 [05:08:43]MH_SAM_APDU [05:08:43]CAPDU: 80 13 01 00 [05:08:43]Write to MH i2c: E2 08 00 72 43 80 13 01 00 00 00 00 00 32 [05:08:43]Write i2c OK [05:08:43]MH_I2C_Read... [05:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:43]Read from MH i2c: E2 [05:08:43]MH_I2C_Read... [05:08:43]Read from MH i2c: E2 0E 00 [05:08:43]MH_I2C_Read... [05:08:43]Read from MH i2c: E2 0E 00 72 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 FF [05:08:43]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:08:43]wFMCommunicate OK [05:08:43]SAM_PROTO_GetShiftState done [05:08:43]FM_GetShiftState done [05:08:43]req_shift_opened done [05:08:43]requested_item shift.open_date is exist - process it [05:08:43]req_shift_open_date [05:08:43]req_shift_open_date done [05:08:43]produce_requested_data done [05:08:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2581,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [05:08:43]process_action_free close_receipt [05:08:43]json_value_free [05:08:43]json_value_free done [05:08:43]process_json_proto returns [05:08:43]Send response to host [05:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2581,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [05:08:43]free response buf [05:08:43]execute_script done [05:08:43]execute_script returns [05:08:43]free content buf [05:08:43]Sock 10.Close socket [05:08:43]Sock 10.Thread stoped [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:21]accept exits with 7 [05:30:21]New connection [05:30:21]New thread 3067624804 created [05:30:21]Thread 3067481444 joined [05:30:21]Waiting for new connection... [05:30:21] Sock 7.Parse request [05:30:21]Sock 7.Check first char [05:30:21]Sock 7.First char is OK [05:30:21]request: POST /json_proto HTTP/1.0 [05:30:21]Method: POST [05:30:21]URL: /json_proto [05:30:21]Method is POST - this is cgi request [05:30:21]url: /json_proto [05:30:21]query_string will be loaded in cgi processing [05:30:21]execute_cgi json_proto POST (null) [05:30:21]execute_cgi path=json_proto method=POST [05:30:21]POST find Content-Length [05:30:21]Host: 172.17.45.132:8080 [05:30:21]Content-Length: 817 [05:30:21]Content-Type: application/json [05:30:21] [05:30:21]POST finish read [05:30:21]Found Content-Length = 817 [05:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126768", "tax_sys" : 0, "items" : [ { "code": "4600721018757", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u043A\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:21]execute_script... [05:30:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126768", "tax_sys" : 0, "items" : [ { "code": "4600721018757", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u043A\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:21]POST & json_proto [05:30:21]process_json_proto [05:30:21]json parsed OK: [05:30:21]protocol is kg_v1.0 [05:30:21]action value=close_receipt [05:30:21]process_action close_receipt [05:30:21]cmd_close_receipt [05:30:21]MH_GetDate [05:30:21]Write to MH i2c: F0 00 00 73 43 A5 [05:30:21]Write i2c OK [05:30:21]MH_I2C_Read... [05:30:21]Read from MH i2c: F0 [05:30:21]MH_I2C_Read... [05:30:21]Read from MH i2c: F0 09 00 [05:30:21]MH_I2C_Read... [05:30:21]Read from MH i2c: F0 09 00 73 43 00 F5 CB A9 66 E3 0B 90 66 61 [05:30:21]GetLastDocTimeStamp 1722402524 [05:30:21]current date 1722403829 [05:30:21]FM_GetShiftState [05:30:21]SAM_PROTO_GetShiftState [05:30:21]wFMCommunicate request_size=4 [05:30:21]MH_SAM_APDU [05:30:21]CAPDU: 80 13 01 00 [05:30:21]Write to MH i2c: E2 08 00 74 43 80 13 01 00 00 00 00 00 34 [05:30:21]Write i2c OK [05:30:21]MH_I2C_Read... [05:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:21]Read from MH i2c: E2 [05:30:21]MH_I2C_Read... [05:30:21]Read from MH i2c: E2 0E 00 [05:30:21]MH_I2C_Read... [05:30:21]Read from MH i2c: E2 0E 00 74 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 01 [05:30:21]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:30:21]wFMCommunicate OK [05:30:21]SAM_PROTO_GetShiftState done [05:30:21]FM_GetShiftState done [05:30:21]opened in 1722384689 [05:30:21]opened+sec_in_day 1722471089 [05:30:21]quantity*price = 29000 [05:30:21]sum+1 = 29001 [05:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 0.00 Безнал.: 290.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 35 31.07.2024 05:30 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2582 ФПД: 153762476476334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053029&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2582&fm=153762476476334&tin=02508201610067®Number=0000000000189667&sum=29000 0 [05:30:22]StoreToDocumentArchive [05:30:22]shift 17 fd 2582 [05:30:22]save to /storage/0017/doc_00002582 [05:30:22]save last doc name /storage/0017/doc_00002582 to /storage/kkm_last_doc_name [05:30:22]save OK [05:30:22]Clear old archive folders... [05:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [05:30:22]tlvbuf is 00985760 [05:30:22]SAM_PROTO_ClearQueue [05:30:22]wFMCommunicate request_size=4 [05:30:22]MH_SAM_APDU [05:30:22]CAPDU: 80 09 00 00 [05:30:22]Write to MH i2c: E2 08 00 81 43 80 09 00 00 00 00 00 00 36 [05:30:22]Write i2c OK [05:30:22]MH_I2C_Read... [05:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:22]Read from MH i2c: E2 [05:30:22]MH_I2C_Read... [05:30:22]Read from MH i2c: E2 03 00 [05:30:22]MH_I2C_Read... [05:30:22]Read from MH i2c: E2 03 00 81 43 00 90 00 38 [05:30:22]RAPDU: 90 00 [05:30:22]wFMCommunicate OK [05:30:22]SAM_PROTO_ClearQueue done [05:30:22]KKMCreateOFDPacket [05:30:22]OFDProtocolAddRootSTLVToBuf [05:30:22]FM_MakeSignedData [05:30:22]FM_MakeSignedData [05:30:22]SAM_PROTO_SignData [05:30:22]wFMCommunicate request_size=4 [05:30:22]MH_SAM_APDU [05:30:22]CAPDU: 80 0D 01 02 [05:30:22]Write to MH i2c: E2 08 00 82 43 80 0D 01 02 00 00 00 00 3E [05:30:22]Write i2c OK [05:30:22]MH_I2C_Read... [05:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:22]Read from MH i2c: E2 [05:30:22]MH_I2C_Read... [05:30:22]Read from MH i2c: E2 03 00 [05:30:22]MH_I2C_Read... [05:30:22]Read from MH i2c: E2 03 00 82 43 00 90 00 39 [05:30:22]RAPDU: 90 00 [05:30:22]wFMCommunicate OK [05:30:22]wFMCommunicate request_size=255 [05:30:22]MH_SAM_APDU [05:30:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F5 CB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [05:30:22]Write to MH i2c: E2 02 01 83 43 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F5 CB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 AC [05:30:22]Write i2c OK [05:30:22]MH_I2C_Read... [05:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:23]Read from MH i2c: E2 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 03 00 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 03 00 83 43 00 90 00 3A [05:30:23]RAPDU: 90 00 [05:30:23]wFMCommunicate OK [05:30:23]wFMCommunicate request_size=39 [05:30:23]MH_SAM_APDU [05:30:23]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 0A 00 00 35 04 06 00 8B D8 9D CA 47 AE [05:30:23]Write to MH i2c: E2 2A 00 84 43 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 0A 00 00 35 04 06 00 8B D8 9D CA 47 AE 00 00 D8 [05:30:23]Write i2c OK [05:30:23]MH_I2C_Read... [05:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:23]Read from MH i2c: E2 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 03 00 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 03 00 84 43 00 90 00 3B [05:30:23]RAPDU: 90 00 [05:30:23]wFMCommunicate OK [05:30:23]wFMCommunicate request_size=4 [05:30:23]MH_SAM_APDU [05:30:23]CAPDU: 80 0D 03 02 [05:30:23]Write to MH i2c: E2 08 00 85 43 80 0D 03 02 00 00 00 00 43 [05:30:23]Write i2c OK [05:30:23]MH_I2C_Read... [05:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:23]Read from MH i2c: E2 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 0B 00 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 0B 00 85 43 00 89 9A 92 3E F4 CE C0 FB 90 00 B4 [05:30:23]RAPDU: 89 9A 92 3E F4 CE C0 FB 90 00 [05:30:23]wFMCommunicate OK [05:30:23]SAM_PROTO_SignData done [05:30:23]FM_MakeSignedData done [05:30:23]CreateOFDProtocolMessage [05:30:23]wFMCommunicate request_size=4 [05:30:23]MH_SAM_APDU [05:30:23]CAPDU: 80 11 00 00 [05:30:23]Write to MH i2c: E2 08 00 86 43 80 11 00 00 00 00 00 00 43 [05:30:23]Write i2c OK [05:30:23]MH_I2C_Read... [05:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:23]Read from MH i2c: E2 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 17 00 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: E2 17 00 86 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 93 [05:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:30:23]wFMCommunicate OK [05:30:23]CreateOFDProtocolMessage done [05:30:23]OFDSenderStorePacket 2582 [05:30:23]StoreOFDPacket docnum=2582 [05:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 2F 83 24 01 2F 8A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F5 CB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 0A 00 00 35 04 06 00 8B D8 9D CA 47 AE 89 9A 92 3E F4 CE C0 FB [05:30:23]CheckFolder [05:30:23]dirname=/storage/ofd_packets [05:30:23]CheckFolder done [05:30:23]ProducePacketName [05:30:23]name=ofd_packets/00002582 [05:30:23]NVStorageSaveData ofd_packets/00002582 [05:30:23]File name is /storage/ofd_packets/00002582 [05:30:23]Write 330 bytes [05:30:23]NVStorageSaveData done [05:30:23]OFDSenderStorePacket done [05:30:23]KKMCreateOFDPacket done [05:30:23]NVStorageSaveData kkm_last_timestamp [05:30:23]File name is /storage/kkm_last_timestamp [05:30:23]Write 4 bytes [05:30:23]NVStorageSaveData done [05:30:23]ExternCall_PrintAddStr [05:30:23]wPrintStart [05:30:23]Write to MH i2c: 01 00 00 87 43 CA [05:30:23]Write i2c OK [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: 01 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: 01 07 00 [05:30:23]MH_I2C_Read... [05:30:23]Read from MH i2c: 01 07 00 87 43 00 00 00 00 00 FF 0F DF [05:30:23]RasterBufferAndPrint [05:30:23]line Счет N : (3)126768 [05:30:23]line ИНН: 02508201610067 [05:30:23]line Контрольно-Кассовый Чек [05:30:23]line ПРОДАЖА [05:30:23]line Товар: 4600721018757 [05:30:23]line Пиво Сиб.Кор кл 0,5л ст [05:30:23]line 2.000 * 145.00 [05:30:23]line = 290.00 [05:30:23]line НДС 12% НСП 1% [05:30:23]line > о реализуемом товаре [05:30:23]line ИТОГО: 290.00 [05:30:23]line НСП 1% : 2.57 [05:30:23]line НДС 12% : 30.80 [05:30:23]line Наличными: 0.00 [05:30:23]line Безнал.: 290.00 [05:30:23]line Место: АЗС № 127 "Партнер Нефть" [05:30:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:30:23]line СНО: Общий режим [05:30:23]line Чек 35 31.07.2024 05:30 [05:30:23]line Смена: 17 ФФД: 1.0 [05:30:23]line ЗНМ: 0300000161 [05:30:23]line РНМ: 0000000000189667 [05:30:23]line Версия ККМ: v1.0 [05:30:23]line Платежная система: O! деньги [05:30:23]line ФМ: 0000000002094248 [05:30:23]line ФД: 2582 [05:30:23]line ФПД: 153762476476334 [05:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053029&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2582&fm=153762476476334&tin=02508201610067®Number=0000000000189667&sum=29000 [05:30:23]line 0 [05:30:23]OFD Sender: Processing packet 2582 [packets to send 1, broken 0] [05:30:23]ProducePacketName [05:30:23]name=ofd_packets/00002582 [05:30:23]OFD Sender: To server: pG, [05:30:23]CommunicateWithHost lk.salyk.kg:30040 [05:30:23]ConnectInit lk.salyk.kg [05:30:23]written 0, free lines is 4095 [05:30:23]Connected sock=10 [05:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 2F 83 24 01 2F 8A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F5 CB A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 0A 00 00 35 04 06 00 8B D8 9D CA 47 AE 89 9A 92 3E F4 CE C0 FB [05:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1F C6 47 00 E3 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 0A 00 00 F4 03 04 00 5C 77 A9 66 B6 04 01 00 00 95 BE 2C 74 BE 25 A9 8B [05:30:24]CommunicateWithHost err = 0 [05:30:24]CheckOFDResponse [05:30:24]1017 (14) - 77093643461234 [05:30:24]1041 (16) - 0000000002094248 [05:30:24]1040 (4) - 2582 [05:30:24]1012 (4) - 30.07.2024 23:29 [05:30:24]1206 (1) - 0 [05:30:24]OFD Sender: Remove packet 2582 [05:30:24]ProducePacketName [05:30:24]name=ofd_packets/00002582 [05:30:24]NVStorageDeleteData [05:30:24]Write to MH i2c: 01 00 00 B1 43 F4 [05:30:24]Write i2c OK [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: 01 [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: 01 07 00 [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: 01 07 00 B1 43 00 00 00 00 00 07 0D 0F [05:30:24]RasterBufferAndPrint [05:30:24]line [05:30:24]line [05:30:24]line [05:30:24]line [05:30:24]line [05:30:24]written 0, free lines is 3344 [05:30:24]MH_Cut [05:30:24]Write to MH i2c: D1 01 00 B8 43 01 CD [05:30:24]Write i2c OK [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: D1 [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: D1 01 00 [05:30:24]MH_I2C_Read... [05:30:24]Read from MH i2c: D1 01 00 B8 43 00 CC [05:30:24]Write to MH i2c: 01 00 00 B9 43 FC [05:30:24]Write i2c OK [05:30:24]MH_I2C_Read... [05:30:24]OFD Sender: No OFD packet to send [05:30:24]*** Cut start [05:30:24]*** Partial cut [05:30:24]*** CUTSNS_PIN = 1 [05:30:24]*** CUTSNS_PIN = 0 [05:30:25]*** Brake cut motor [05:30:25]Read from MH i2c: 01 [05:30:25]MH_I2C_Read... [05:30:25]*** Stop cut motor [05:30:25]*** Cut end [05:30:25]Read from MH i2c: 01 07 00 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: 01 07 00 B9 43 00 00 00 00 00 FF 0F 11 [05:30:25]process_action close_receipt done [05:30:25]requested_data is exist [05:30:25]produce_requested_data [05:30:25]requested_item fm.sn is exist - process it [05:30:25]wFMCommunicate request_size=4 [05:30:25]MH_SAM_APDU [05:30:25]CAPDU: 80 11 00 00 [05:30:25]Write to MH i2c: E2 08 00 BA 43 80 11 00 00 00 00 00 00 77 [05:30:25]Write i2c OK [05:30:25]MH_I2C_Read... [05:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:25]Read from MH i2c: E2 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 17 00 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 17 00 BA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C7 [05:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:30:25]wFMCommunicate OK [05:30:25]requested_item fd.num is exist - process it [05:30:25]SAM_PROTO_GetFieldsCounters [05:30:25]wFMCommunicate request_size=4 [05:30:25]MH_SAM_APDU [05:30:25]CAPDU: 80 13 00 00 [05:30:25]Write to MH i2c: E2 08 00 BB 43 80 13 00 00 00 00 00 00 7A [05:30:25]Write i2c OK [05:30:25]MH_I2C_Read... [05:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:25]Read from MH i2c: E2 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 62 00 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 62 00 BB 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 16 0A 00 00 0E 04 04 00 11 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 3E [05:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 16 0A 00 00 0E 04 04 00 11 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 [05:30:25]wFMCommunicate OK [05:30:25]SAM_PROTO_GetFieldsCounters done [05:30:25]requested_item shift.num is exist - process it [05:30:25]requested_item shift.opened is exist - process it [05:30:25]req_shift_opened [05:30:25]FM_GetShiftState [05:30:25]SAM_PROTO_GetShiftState [05:30:25]wFMCommunicate request_size=4 [05:30:25]MH_SAM_APDU [05:30:25]CAPDU: 80 13 01 00 [05:30:25]Write to MH i2c: E2 08 00 BC 43 80 13 01 00 00 00 00 00 7C [05:30:25]Write i2c OK [05:30:25]MH_I2C_Read... [05:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:25]Read from MH i2c: E2 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 0E 00 [05:30:25]MH_I2C_Read... [05:30:25]Read from MH i2c: E2 0E 00 BC 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 49 [05:30:25]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:30:25]wFMCommunicate OK [05:30:25]SAM_PROTO_GetShiftState done [05:30:25]FM_GetShiftState done [05:30:25]req_shift_opened done [05:30:25]requested_item shift.open_date is exist - process it [05:30:25]req_shift_open_date [05:30:25]req_shift_open_date done [05:30:25]produce_requested_data done [05:30:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2582,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [05:30:25]process_action_free close_receipt [05:30:25]json_value_free [05:30:25]json_value_free done [05:30:25]process_json_proto returns [05:30:25]Send response to host [05:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2582,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [05:30:25]free response buf [05:30:25]execute_script done [05:30:25]execute_script returns [05:30:25]free content buf [05:30:25]Sock 7.Close socket [05:30:25]Sock 7.Thread stoped [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:05]accept exits with 9 [05:38:05]New connection [05:38:05]New thread 3067481444 created [05:38:05]Thread 3067624804 joined [05:38:05]Waiting for new connection... [05:38:05] Sock 9.Parse request [05:38:05]Sock 9.Check first char [05:38:05]Sock 9.First char is OK [05:38:05]request: POST /json_proto HTTP/1.0 [05:38:05]Method: POST [05:38:05]URL: /json_proto [05:38:05]Method is POST - this is cgi request [05:38:05]url: /json_proto [05:38:05]query_string will be loaded in cgi processing [05:38:05]execute_cgi json_proto POST (null) [05:38:05]execute_cgi path=json_proto method=POST [05:38:05]POST find Content-Length [05:38:05]Host: 172.17.45.132:8080 [05:38:05]Content-Length: 617 [05:38:05]Content-Type: application/json [05:38:05] [05:38:05]POST finish read [05:38:05]Found Content-Length = 617 [05:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126769", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:05]execute_script... [05:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126769", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:05]POST & json_proto [05:38:05]process_json_proto [05:38:05]json parsed OK: [05:38:05]protocol is kg_v1.0 [05:38:05]action value=close_receipt [05:38:05]process_action close_receipt [05:38:05]cmd_close_receipt [05:38:05]MH_GetDate [05:38:05]Write to MH i2c: F0 00 00 BD 43 EF [05:38:05]Write i2c OK [05:38:05]MH_I2C_Read... [05:38:05]Read from MH i2c: F0 [05:38:05]MH_I2C_Read... [05:38:05]Read from MH i2c: F0 09 00 [05:38:05]MH_I2C_Read... [05:38:05]Read from MH i2c: F0 09 00 BD 43 00 C4 CD A9 66 E3 0B 90 66 7C [05:38:05]GetLastDocTimeStamp 1722403829 [05:38:05]current date 1722404292 [05:38:05]FM_GetShiftState [05:38:05]SAM_PROTO_GetShiftState [05:38:05]wFMCommunicate request_size=4 [05:38:05]MH_SAM_APDU [05:38:05]CAPDU: 80 13 01 00 [05:38:05]Write to MH i2c: E2 08 00 BE 43 80 13 01 00 00 00 00 00 7E [05:38:05]Write i2c OK [05:38:05]MH_I2C_Read... [05:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:05]Read from MH i2c: E2 [05:38:05]MH_I2C_Read... [05:38:05]Read from MH i2c: E2 0E 00 [05:38:05]MH_I2C_Read... [05:38:05]Read from MH i2c: E2 0E 00 BE 43 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 4B [05:38:05]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:38:05]wFMCommunicate OK [05:38:05]SAM_PROTO_GetShiftState done [05:38:05]FM_GetShiftState done [05:38:05]opened in 1722384689 [05:38:05]opened+sec_in_day 1722471089 [05:38:05]quantity*price = 21000 [05:38:05]sum+1 = 21001 [05:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 36 31.07.2024 05:38 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2583 ФПД: 153006588550576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2583&fm=153006588550576&tin=02508201610067®Number=0000000000189667&sum=21000 0 [05:38:06]StoreToDocumentArchive [05:38:06]shift 17 fd 2583 [05:38:06]save to /storage/0017/doc_00002583 [05:38:06]save last doc name /storage/0017/doc_00002583 to /storage/kkm_last_doc_name [05:38:06]save OK [05:38:06]Clear old archive folders... [05:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=270 [05:38:06]tlvbuf is 0092AB70 [05:38:06]SAM_PROTO_ClearQueue [05:38:06]wFMCommunicate request_size=4 [05:38:06]MH_SAM_APDU [05:38:06]CAPDU: 80 09 00 00 [05:38:06]Write to MH i2c: E2 08 00 CB 43 80 09 00 00 00 00 00 00 80 [05:38:06]Write i2c OK [05:38:06]MH_I2C_Read... [05:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:06]Read from MH i2c: E2 [05:38:06]MH_I2C_Read... [05:38:06]Read from MH i2c: E2 03 00 [05:38:06]MH_I2C_Read... [05:38:06]Read from MH i2c: E2 03 00 CB 43 00 90 00 82 [05:38:06]RAPDU: 90 00 [05:38:06]wFMCommunicate OK [05:38:06]SAM_PROTO_ClearQueue done [05:38:06]KKMCreateOFDPacket [05:38:06]OFDProtocolAddRootSTLVToBuf [05:38:06]FM_MakeSignedData [05:38:06]FM_MakeSignedData [05:38:06]SAM_PROTO_SignData [05:38:06]wFMCommunicate request_size=4 [05:38:06]MH_SAM_APDU [05:38:06]CAPDU: 80 0D 01 02 [05:38:06]Write to MH i2c: E2 08 00 CC 43 80 0D 01 02 00 00 00 00 88 [05:38:06]Write i2c OK [05:38:06]MH_I2C_Read... [05:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:06]Read from MH i2c: E2 [05:38:06]MH_I2C_Read... [05:38:06]Read from MH i2c: E2 03 00 [05:38:06]MH_I2C_Read... [05:38:06]Read from MH i2c: E2 03 00 CC 43 00 90 00 83 [05:38:06]RAPDU: 90 00 [05:38:06]wFMCommunicate OK [05:38:06]wFMCommunicate request_size=255 [05:38:06]MH_SAM_APDU [05:38:06]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C5 CD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [05:38:06]Write to MH i2c: E2 02 01 CD 43 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C5 CD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 66 [05:38:06]Write i2c OK [05:38:06]MH_I2C_Read... [05:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:07]Read from MH i2c: E2 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 03 00 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 03 00 CD 43 00 90 00 84 [05:38:07]RAPDU: 90 00 [05:38:07]wFMCommunicate OK [05:38:07]wFMCommunicate request_size=29 [05:38:07]MH_SAM_APDU [05:38:07]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 17 0A 00 00 35 04 06 00 8B 28 9F 5B DD B0 [05:38:07]Write to MH i2c: E2 20 00 CE 43 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 17 0A 00 00 35 04 06 00 8B 28 9F 5B DD B0 00 00 A8 [05:38:07]Write i2c OK [05:38:07]MH_I2C_Read... [05:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:07]Read from MH i2c: E2 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 03 00 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 03 00 CE 43 00 90 00 85 [05:38:07]RAPDU: 90 00 [05:38:07]wFMCommunicate OK [05:38:07]wFMCommunicate request_size=4 [05:38:07]MH_SAM_APDU [05:38:07]CAPDU: 80 0D 03 02 [05:38:07]Write to MH i2c: E2 08 00 CF 43 80 0D 03 02 00 00 00 00 8D [05:38:07]Write i2c OK [05:38:07]MH_I2C_Read... [05:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:07]Read from MH i2c: E2 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 0B 00 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 0B 00 CF 43 00 BE D3 0E 0D A1 15 9C 03 90 00 8F [05:38:07]RAPDU: BE D3 0E 0D A1 15 9C 03 90 00 [05:38:07]wFMCommunicate OK [05:38:07]SAM_PROTO_SignData done [05:38:07]FM_MakeSignedData done [05:38:07]CreateOFDProtocolMessage [05:38:07]wFMCommunicate request_size=4 [05:38:07]MH_SAM_APDU [05:38:07]CAPDU: 80 11 00 00 [05:38:07]Write to MH i2c: E2 08 00 D0 43 80 11 00 00 00 00 00 00 8D [05:38:07]Write i2c OK [05:38:07]MH_I2C_Read... [05:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:07]Read from MH i2c: E2 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 17 00 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: E2 17 00 D0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DD [05:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:38:07]wFMCommunicate OK [05:38:07]CreateOFDProtocolMessage done [05:38:07]OFDSenderStorePacket 2583 [05:38:07]StoreOFDPacket docnum=2583 [05:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 E8 34 1A 01 D3 6C 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C5 CD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 0A 00 00 35 04 06 00 8B 28 9F 5B DD B0 BE D3 0E 0D A1 15 9C 03 [05:38:07]CheckFolder [05:38:07]dirname=/storage/ofd_packets [05:38:07]CheckFolder done [05:38:07]ProducePacketName [05:38:07]name=ofd_packets/00002583 [05:38:07]NVStorageSaveData ofd_packets/00002583 [05:38:07]File name is /storage/ofd_packets/00002583 [05:38:07]Write 320 bytes [05:38:07]NVStorageSaveData done [05:38:07]OFDSenderStorePacket done [05:38:07]KKMCreateOFDPacket done [05:38:07]NVStorageSaveData kkm_last_timestamp [05:38:07]File name is /storage/kkm_last_timestamp [05:38:07]Write 4 bytes [05:38:07]NVStorageSaveData done [05:38:07]ExternCall_PrintAddStr [05:38:07]wPrintStart [05:38:07]Write to MH i2c: 01 00 00 D1 43 14 [05:38:07]Write i2c OK [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: 01 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: 01 07 00 [05:38:07]MH_I2C_Read... [05:38:07]Read from MH i2c: 01 07 00 D1 43 00 00 00 00 00 FF 0F 29 [05:38:07]RasterBufferAndPrint [05:38:07]line Счет N : (3)126769 [05:38:07]line ИНН: 02508201610067 [05:38:07]line Контрольно-Кассовый Чек [05:38:07]line ПРОДАЖА [05:38:07]line Товар: 4870112002768 [05:38:07]line Печенье Biskrem 100г [05:38:07]line 3.000 * 70.00 [05:38:07]line = 210.00 [05:38:07]line НДС 12% НСП 1% [05:38:07]line > о реализуемом товаре [05:38:07]line ИТОГО: 210.00 [05:38:07]line НСП 1% : 1.86 [05:38:07]line НДС 12% : 22.30 [05:38:07]line Наличными: 210.00 [05:38:07]line Безнал.: 0.00 [05:38:07]line Место: АЗС № 127 "Партнер Нефть" [05:38:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:38:07]line СНО: Общий режим [05:38:07]line Чек 36 31.07.2024 05:38 [05:38:07]line Смена: 17 ФФД: 1.0 [05:38:07]line ЗНМ: 0300000161 [05:38:07]line РНМ: 0000000000189667 [05:38:07]line Версия ККМ: v1.0 [05:38:07]line ФМ: 0000000002094248 [05:38:07]line ФД: 2583 [05:38:07]line ФПД: 153006588550576 [05:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2583&fm=153006588550576&tin=02508201610067®Number=0000000000189667&sum=21000 [05:38:07]OFD Sender: Processing packet 2583 [packets to send 1, broken 0] [05:38:07]ProducePacketName [05:38:07]name=ofd_packets/00002583 [05:38:07]OFD Sender: To server: pG, [05:38:07]CommunicateWithHost lk.salyk.kg:30040 [05:38:07]ConnectInit lk.salyk.kg [05:38:07]line 0 [05:38:07]written 0, free lines is 4095 [05:38:07]Connected sock=10 [05:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 E8 34 1A 01 D3 6C 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C5 CD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 0A 00 00 35 04 06 00 8B 28 9F 5B DD B0 BE D3 0E 0D A1 15 9C 03 [05:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F2 E2 47 00 A1 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 0A 00 00 F4 03 04 00 2C 79 A9 66 B6 04 01 00 00 E1 40 49 35 41 EE D9 AB [05:38:07]CommunicateWithHost err = 0 [05:38:07]CheckOFDResponse [05:38:07]1017 (14) - 77093643461234 [05:38:07]1041 (16) - 0000000002094248 [05:38:07]1040 (4) - 2583 [05:38:07]1012 (4) - 30.07.2024 23:37 [05:38:07]1206 (1) - 0 [05:38:07]OFD Sender: Remove packet 2583 [05:38:07]ProducePacketName [05:38:07]name=ofd_packets/00002583 [05:38:07]NVStorageDeleteData [05:38:08]Write to MH i2c: 01 00 00 F9 43 3C [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: 01 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: 01 07 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: 01 07 00 F9 43 00 00 00 00 00 22 0D 72 [05:38:08]RasterBufferAndPrint [05:38:08]line [05:38:08]line [05:38:08]line [05:38:08]line [05:38:08]line [05:38:08]written 0, free lines is 3372 [05:38:08]MH_Cut [05:38:08]Write to MH i2c: D1 01 00 00 44 01 16 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: D1 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: D1 01 00 [05:38:08]MH_I2C_Read... [05:38:08]Read from MH i2c: D1 01 00 00 44 00 15 [05:38:08]Write to MH i2c: 01 00 00 01 44 45 [05:38:08]Write i2c OK [05:38:08]MH_I2C_Read... [05:38:08]OFD Sender: No OFD packet to send [05:38:08]*** Cut start [05:38:08]*** Partial cut [05:38:08]*** CUTSNS_PIN = 1 [05:38:08]*** CUTSNS_PIN = 0 [05:38:08]*** Brake cut motor [05:38:09]Read from MH i2c: 01 [05:38:09]MH_I2C_Read... [05:38:09]*** Stop cut motor [05:38:09]*** Cut end [05:38:09]Read from MH i2c: 01 07 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: 01 07 00 01 44 00 00 00 00 00 FF 0F 5A [05:38:09]process_action close_receipt done [05:38:09]requested_data is exist [05:38:09]produce_requested_data [05:38:09]requested_item fm.sn is exist - process it [05:38:09]wFMCommunicate request_size=4 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 11 00 00 [05:38:09]Write to MH i2c: E2 08 00 02 44 80 11 00 00 00 00 00 00 C0 [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 17 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 17 00 02 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [05:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:38:09]wFMCommunicate OK [05:38:09]requested_item fd.num is exist - process it [05:38:09]SAM_PROTO_GetFieldsCounters [05:38:09]wFMCommunicate request_size=4 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 13 00 00 [05:38:09]Write to MH i2c: E2 08 00 03 44 80 13 00 00 00 00 00 00 C3 [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 62 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 62 00 03 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 17 0A 00 00 0E 04 04 00 11 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 8B [05:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 17 0A 00 00 0E 04 04 00 11 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 [05:38:09]wFMCommunicate OK [05:38:09]SAM_PROTO_GetFieldsCounters done [05:38:09]requested_item shift.num is exist - process it [05:38:09]requested_item shift.opened is exist - process it [05:38:09]req_shift_opened [05:38:09]FM_GetShiftState [05:38:09]SAM_PROTO_GetShiftState [05:38:09]wFMCommunicate request_size=4 [05:38:09]MH_SAM_APDU [05:38:09]CAPDU: 80 13 01 00 [05:38:09]Write to MH i2c: E2 08 00 04 44 80 13 01 00 00 00 00 00 C5 [05:38:09]Write i2c OK [05:38:09]MH_I2C_Read... [05:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:09]Read from MH i2c: E2 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 0E 00 [05:38:09]MH_I2C_Read... [05:38:09]Read from MH i2c: E2 0E 00 04 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 92 [05:38:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:38:09]wFMCommunicate OK [05:38:09]SAM_PROTO_GetShiftState done [05:38:09]FM_GetShiftState done [05:38:09]req_shift_opened done [05:38:09]requested_item shift.open_date is exist - process it [05:38:09]req_shift_open_date [05:38:09]req_shift_open_date done [05:38:09]produce_requested_data done [05:38:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2583,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [05:38:09]process_action_free close_receipt [05:38:09]json_value_free [05:38:09]json_value_free done [05:38:09]process_json_proto returns [05:38:09]Send response to host [05:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2583,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [05:38:09]free response buf [05:38:09]execute_script done [05:38:09]execute_script returns [05:38:09]free content buf [05:38:09]Sock 9.Close socket [05:38:09]Sock 9.Thread stoped [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]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:34]accept exits with 7 [05:57:34]New connection [05:57:34]New thread 3067624804 created [05:57:34]Thread 3067481444 joined [05:57:34]Waiting for new connection... [05:57:34] Sock 7.Parse request [05:57:34]Sock 7.Check first char [05:57:34]Sock 7.First char is OK [05:57:34]request: POST /json_proto HTTP/1.0 [05:57:34]Method: POST [05:57:34]URL: /json_proto [05:57:34]Method is POST - this is cgi request [05:57:34]url: /json_proto [05:57:34]query_string will be loaded in cgi processing [05:57:34]execute_cgi json_proto POST (null) [05:57:34]execute_cgi path=json_proto method=POST [05:57:34]POST find Content-Length [05:57:34]Host: 172.17.45.132:8080 [05:57:34]Content-Length: 941 [05:57:34]Content-Type: application/json [05:57:34] [05:57:34]POST finish read [05:57:34]Found Content-Length = 941 [05:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126770", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:34]execute_script... [05:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126770", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:34]POST & json_proto [05:57:34]process_json_proto [05:57:34]json parsed OK: [05:57:34]protocol is kg_v1.0 [05:57:34]action value=close_receipt [05:57:34]process_action close_receipt [05:57:34]cmd_close_receipt [05:57:34]MH_GetDate [05:57:34]Write to MH i2c: F0 00 00 05 44 38 [05:57:34]Write i2c OK [05:57:34]MH_I2C_Read... [05:57:34]Read from MH i2c: F0 [05:57:34]MH_I2C_Read... [05:57:34]Read from MH i2c: F0 09 00 [05:57:34]MH_I2C_Read... [05:57:34]Read from MH i2c: F0 09 00 05 44 00 56 D2 A9 66 E3 0B 90 66 5C [05:57:34]GetLastDocTimeStamp 1722404293 [05:57:34]current date 1722405462 [05:57:34]FM_GetShiftState [05:57:34]SAM_PROTO_GetShiftState [05:57:34]wFMCommunicate request_size=4 [05:57:34]MH_SAM_APDU [05:57:34]CAPDU: 80 13 01 00 [05:57:34]Write to MH i2c: E2 08 00 06 44 80 13 01 00 00 00 00 00 C7 [05:57:34]Write i2c OK [05:57:34]MH_I2C_Read... [05:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:34]Read from MH i2c: E2 [05:57:34]MH_I2C_Read... [05:57:34]Read from MH i2c: E2 0E 00 [05:57:34]MH_I2C_Read... [05:57:34]Read from MH i2c: E2 0E 00 06 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 94 [05:57:34]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:57:34]wFMCommunicate OK [05:57:34]SAM_PROTO_GetShiftState done [05:57:34]FM_GetShiftState done [05:57:34]opened in 1722384689 [05:57:34]opened+sec_in_day 1722471089 [05:57:34]quantity*price = 11500 [05:57:34]sum+1 = 11501 [05:57:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 37 31.07.2024 05:57 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2584 ФПД: 268255410880138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T055742&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2584&fm=268255410880138&tin=02508201610067®Number=0000000000189667&sum=13000 0 [05:57:35]StoreToDocumentArchive [05:57:35]shift 17 fd 2584 [05:57:35]save to /storage/0017/doc_00002584 [05:57:35]save last doc name /storage/0017/doc_00002584 to /storage/kkm_last_doc_name [05:57:35]save OK [05:57:35]Clear old archive folders... [05:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=389 [05:57:35]tlvbuf is 009B5A00 [05:57:35]SAM_PROTO_ClearQueue [05:57:35]wFMCommunicate request_size=4 [05:57:35]MH_SAM_APDU [05:57:35]CAPDU: 80 09 00 00 [05:57:35]Write to MH i2c: E2 08 00 13 44 80 09 00 00 00 00 00 00 C9 [05:57:35]Write i2c OK [05:57:35]MH_I2C_Read... [05:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:57:35]Read from MH i2c: E2 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: E2 03 00 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: E2 03 00 13 44 00 90 00 CB [05:57:35]RAPDU: 90 00 [05:57:35]wFMCommunicate OK [05:57:35]SAM_PROTO_ClearQueue done [05:57:35]KKMCreateOFDPacket [05:57:35]OFDProtocolAddRootSTLVToBuf [05:57:35]FM_MakeSignedData [05:57:35]FM_MakeSignedData [05:57:35]SAM_PROTO_SignData [05:57:35]wFMCommunicate request_size=4 [05:57:35]MH_SAM_APDU [05:57:35]CAPDU: 80 0D 01 02 [05:57:35]Write to MH i2c: E2 08 00 14 44 80 0D 01 02 00 00 00 00 D1 [05:57:35]Write i2c OK [05:57:35]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 14 44 00 90 00 CC [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]wFMCommunicate request_size=255 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [05:57:36]Write to MH i2c: E2 02 01 15 44 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 7D [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 15 44 00 90 00 CD [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]wFMCommunicate request_size=148 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 56 D2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 0A 00 00 35 04 06 00 F3 FA 14 79 7E 8A [05:57:36]Write to MH i2c: E2 97 00 16 44 80 0D 02 02 8F 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 56 D2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 0A 00 00 35 04 06 00 F3 FA 14 79 7E 8A 00 00 10 [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 16 44 00 90 00 CE [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]wFMCommunicate request_size=4 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 03 02 [05:57:36]Write to MH i2c: E2 08 00 17 44 80 0D 03 02 00 00 00 00 D6 [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 0B 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 0B 00 17 44 00 F9 5B D7 DB B5 71 02 09 90 00 0E [05:57:36]RAPDU: F9 5B D7 DB B5 71 02 09 90 00 [05:57:36]wFMCommunicate OK [05:57:36]SAM_PROTO_SignData done [05:57:36]FM_MakeSignedData done [05:57:36]CreateOFDProtocolMessage [05:57:36]wFMCommunicate request_size=4 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 11 00 00 [05:57:36]Write to MH i2c: E2 08 00 18 44 80 11 00 00 00 00 00 00 D6 [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 17 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 17 00 18 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [05:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:57:36]wFMCommunicate OK [05:57:36]CreateOFDProtocolMessage done [05:57:36]OFDSenderStorePacket 2584 [05:57:36]StoreOFDPacket docnum=2584 [05:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 99 01 00 00 2F 69 91 01 90 AC 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 56 D2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 0A 00 00 35 04 06 00 F3 FA 14 79 7E 8A F9 5B D7 DB B5 71 02 09 [05:57:36]CheckFolder [05:57:36]dirname=/storage/ofd_packets [05:57:36]CheckFolder done [05:57:36]ProducePacketName [05:57:36]name=ofd_packets/00002584 [05:57:36]NVStorageSaveData ofd_packets/00002584 [05:57:36]File name is /storage/ofd_packets/00002584 [05:57:36]Write 439 bytes [05:57:36]NVStorageSaveData done [05:57:36]OFDSenderStorePacket done [05:57:36]KKMCreateOFDPacket done [05:57:36]NVStorageSaveData kkm_last_timestamp [05:57:36]File name is /storage/kkm_last_timestamp [05:57:36]Write 4 bytes [05:57:36]NVStorageSaveData done [05:57:36]ExternCall_PrintAddStr [05:57:36]wPrintStart [05:57:36]Write to MH i2c: 01 00 00 19 44 5D [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: 01 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: 01 07 00 [05:57:36]MH_I2C_Read... [05:57:36]OFD Sender: Processing packet 2584 [packets to send 1, broken 0] [05:57:36]ProducePacketName [05:57:36]name=ofd_packets/00002584 [05:57:36]Read from MH i2c: 01 OFD Sender: To server: pG, [05:57:36]07 CommunicateWithHost lk.salyk.kg:30040 [05:57:36]00 ConnectInit lk.salyk.kg [05:57:36]19 44 00 00 00 00 00 FF 0F 72 [05:57:36]RasterBufferAndPrint [05:57:36]line Счет N : (3)126770 [05:57:36]line ИНН: 02508201610067 [05:57:36]line Контрольно-Кассовый Чек [05:57:36]line ПРОДАЖА [05:57:36]line Товар: 4700003610553 [05:57:36]line Вода Энесай 10л. [05:57:36]line 1.000 * 115.00 [05:57:36]line = 115.00 [05:57:36]line НДС 12% НСП 1% [05:57:36]line > о реализуемом товаре [05:57:36]line Товар: 4700000160099 [05:57:36]line Снек Курут индивидуальный [05:57:36]line 1.000 * 15.00 [05:57:36]line = 15.00 [05:57:36]line НДС 12% НСП 1% [05:57:36]line > о реализуемом товаре [05:57:36]line ИТОГО: 130.00 [05:57:36]line НСП 1% : 1.15 [05:57:36]line НДС 12% : 13.80 [05:57:36]line Наличными: 130.00 [05:57:36]line Безнал.: 0.00 [05:57:36]line Место: АЗС № 127 "Партнер Нефть" [05:57:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:57:36]line СНО: Общий режим [05:57:36]line Чек 37 31.07.2024 05:57 [05:57:36]line Смена: 17 ФФД: 1.0 [05:57:36]line ЗНМ: 0300000161 [05:57:36]line РНМ: 0000000000189667 [05:57:36]line Версия ККМ: v1.0 [05:57:36]line ФМ: 0000000002094248 [05:57:36]line ФД: 2584 [05:57:36]line ФПД: 268255410880138 [05:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T055742&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2584&fm=268255410880138&tin=02508201610067®Number=0000000000189667&sum=13000 [05:57:36]line 0 [05:57:36]written 0, free lines is 4095 [05:57:37]Connected sock=11 [05:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 99 01 00 00 2F 69 91 01 90 AC 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 56 D2 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 0A 00 00 35 04 06 00 F3 FA 14 79 7E 8A F9 5B D7 DB B5 71 02 09 [05:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 64 35 47 00 3B A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 0A 00 00 F4 03 04 00 BD 7D A9 66 B6 04 01 00 00 10 91 19 1D F7 8E 24 E1 [05:57:37]CommunicateWithHost err = 0 [05:57:37]CheckOFDResponse [05:57:37]1017 (14) - 77093643461234 [05:57:37]1041 (16) - 0000000002094248 [05:57:37]1040 (4) - 2584 [05:57:37]1012 (4) - 30.07.2024 23:56 [05:57:37]1206 (1) - 0 [05:57:37]OFD Sender: Remove packet 2584 [05:57:37]ProducePacketName [05:57:37]name=ofd_packets/00002584 [05:57:37]NVStorageDeleteData [05:57:37]Write to MH i2c: 01 00 00 47 44 8B [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 47 44 00 00 00 00 00 D4 0C 72 [05:57:37]RasterBufferAndPrint [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]written 0, free lines is 3294 [05:57:37]MH_Cut [05:57:37]Write to MH i2c: D1 01 00 4E 44 01 64 [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 01 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 01 00 4E 44 00 63 [05:57:37]Write to MH i2c: 01 00 00 4F 44 93 [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]OFD Sender: No OFD packet to send [05:57:38]*** Cut start [05:57:38]*** Partial cut [05:57:38]*** CUTSNS_PIN = 1 [05:57:38]*** CUTSNS_PIN = 0 [05:57:38]*** Brake cut motor [05:57:38]Read from MH i2c: 01 [05:57:38]*** Stop cut motor [05:57:38]MH_I2C_Read... [05:57:38]*** Cut end [05:57:38]Read from MH i2c: 01 07 00 [05:57:38]MH_I2C_Read... [05:57:38]Read from MH i2c: 01 07 00 4F 44 00 00 00 00 00 FF 0F A8 [05:57:38]process_action close_receipt done [05:57:38]requested_data is exist [05:57:38]produce_requested_data [05:57:38]requested_item fm.sn is exist - process it [05:57:38]wFMCommunicate request_size=4 [05:57:38]MH_SAM_APDU [05:57:38]CAPDU: 80 11 00 00 [05:57:38]Write to MH i2c: E2 08 00 50 44 80 11 00 00 00 00 00 00 0E [05:57:38]Write i2c OK [05:57:38]MH_I2C_Read... [05:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:38]Read from MH i2c: E2 [05:57:38]MH_I2C_Read... [05:57:38]Read from MH i2c: E2 17 00 [05:57:38]MH_I2C_Read... [05:57:38]Read from MH i2c: E2 17 00 50 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5E [05:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:57:38]wFMCommunicate OK [05:57:38]requested_item fd.num is exist - process it [05:57:38]SAM_PROTO_GetFieldsCounters [05:57:38]wFMCommunicate request_size=4 [05:57:38]MH_SAM_APDU [05:57:38]CAPDU: 80 13 00 00 [05:57:38]Write to MH i2c: E2 08 00 51 44 80 13 00 00 00 00 00 00 11 [05:57:38]Write i2c OK [05:57:38]MH_I2C_Read... [05:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:57:38]Read from MH i2c: E2 [05:57:38]MH_I2C_Read... [05:57:38]Read from MH i2c: E2 62 00 [05:57:38]MH_I2C_Read... [05:57:38]Read from MH i2c: E2 62 00 51 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 18 0A 00 00 0E 04 04 00 11 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 DD [05:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 18 0A 00 00 0E 04 04 00 11 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 [05:57:38]wFMCommunicate OK [05:57:38]SAM_PROTO_GetFieldsCounters done [05:57:38]requested_item shift.num is exist - process it [05:57:38]requested_item shift.opened is exist - process it [05:57:38]req_shift_opened [05:57:38]FM_GetShiftState [05:57:38]SAM_PROTO_GetShiftState [05:57:38]wFMCommunicate request_size=4 [05:57:38]MH_SAM_APDU [05:57:38]CAPDU: 80 13 01 00 [05:57:38]Write to MH i2c: E2 08 00 52 44 80 13 01 00 00 00 00 00 13 [05:57:38]Write i2c OK [05:57:38]MH_I2C_Read... [05:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:39]Read from MH i2c: E2 [05:57:39]MH_I2C_Read... [05:57:39]Read from MH i2c: E2 0E 00 [05:57:39]MH_I2C_Read... [05:57:39]Read from MH i2c: E2 0E 00 52 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E0 [05:57:39]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [05:57:39]wFMCommunicate OK [05:57:39]SAM_PROTO_GetShiftState done [05:57:39]FM_GetShiftState done [05:57:39]req_shift_opened done [05:57:39]requested_item shift.open_date is exist - process it [05:57:39]req_shift_open_date [05:57:39]req_shift_open_date done [05:57:39]produce_requested_data done [05:57:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2584,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [05:57:39]process_action_free close_receipt [05:57:39]json_value_free [05:57:39]json_value_free done [05:57:39]process_json_proto returns [05:57:39]Send response to host [05:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2584,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [05:57:39]free response buf [05:57:39]execute_script done [05:57:39]execute_script returns [05:57:39]free content buf [05:57:39]Sock 7.Close socket [05:57:39]Sock 7.Thread stoped [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:10]accept exits with 9 [06:01:10]New connection [06:01:10]New thread 3067481444 created [06:01:10]Thread 3067624804 joined [06:01:10]Waiting for new connection... [06:01:10] Sock 9.Parse request [06:01:10]Sock 9.Check first char [06:01:10]Sock 9.First char is OK [06:01:10]request: POST /json_proto HTTP/1.0 [06:01:10]Method: POST [06:01:10]URL: /json_proto [06:01:10]Method is POST - this is cgi request [06:01:10]url: /json_proto [06:01:10]query_string will be loaded in cgi processing [06:01:10]execute_cgi json_proto POST (null) [06:01:10]execute_cgi path=json_proto method=POST [06:01:10]POST find Content-Length [06:01:10]Host: 172.17.45.132:8080 [06:01:10]Content-Length: 632 [06:01:10]Content-Type: application/json [06:01:10] [06:01:10]POST finish read [06:01:10]Found Content-Length = 632 [06:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126771", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:10]execute_script... [06:01: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 : (3)126771", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:10]POST & json_proto [06:01:10]process_json_proto [06:01:10]json parsed OK: [06:01:10]protocol is kg_v1.0 [06:01:10]action value=close_receipt [06:01:10]process_action close_receipt [06:01:10]cmd_close_receipt [06:01:10]MH_GetDate [06:01:10]Write to MH i2c: F0 00 00 53 44 86 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: F0 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: F0 09 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: F0 09 00 53 44 00 2E D3 A9 66 E3 0B 90 66 83 [06:01:10]GetLastDocTimeStamp 1722405462 [06:01:10]current date 1722405678 [06:01:10]FM_GetShiftState [06:01:10]SAM_PROTO_GetShiftState [06:01:10]wFMCommunicate request_size=4 [06:01:10]MH_SAM_APDU [06:01:10]CAPDU: 80 13 01 00 [06:01:10]Write to MH i2c: E2 08 00 54 44 80 13 01 00 00 00 00 00 15 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:10]Read from MH i2c: E2 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: E2 0E 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: E2 0E 00 54 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E2 [06:01:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:01:10]wFMCommunicate OK [06:01:10]SAM_PROTO_GetShiftState done [06:01:10]FM_GetShiftState done [06:01:10]opened in 1722384689 [06:01:10]opened+sec_in_day 1722471089 [06:01:10]quantity*price = 6000 [06:01:10]sum+1 = 6001 [06:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 38 31.07.2024 06:01 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2585 ФПД: 201442593073323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T060118&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2585&fm=201442593073323&tin=02508201610067®Number=0000000000189667&sum=6000 0 [06:01:11]StoreToDocumentArchive [06:01:11]shift 17 fd 2585 [06:01:11]save to /storage/0017/doc_00002585 [06:01:11]save last doc name /storage/0017/doc_00002585 to /storage/kkm_last_doc_name [06:01:11]save OK [06:01:11]Clear old archive folders... [06:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=271 [06:01:11]tlvbuf is B6FFC680 [06:01:11]SAM_PROTO_ClearQueue [06:01:11]wFMCommunicate request_size=4 [06:01:11]MH_SAM_APDU [06:01:11]CAPDU: 80 09 00 00 [06:01:11]Write to MH i2c: E2 08 00 61 44 80 09 00 00 00 00 00 00 17 [06:01:11]Write i2c OK [06:01:11]MH_I2C_Read... [06:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:11]Read from MH i2c: E2 [06:01:11]MH_I2C_Read... [06:01:11]Read from MH i2c: E2 03 00 [06:01:11]MH_I2C_Read... [06:01:11]Read from MH i2c: E2 03 00 61 44 00 90 00 19 [06:01:11]RAPDU: 90 00 [06:01:11]wFMCommunicate OK [06:01:11]SAM_PROTO_ClearQueue done [06:01:11]KKMCreateOFDPacket [06:01:11]OFDProtocolAddRootSTLVToBuf [06:01:11]FM_MakeSignedData [06:01:11]FM_MakeSignedData [06:01:11]SAM_PROTO_SignData [06:01:11]wFMCommunicate request_size=4 [06:01:11]MH_SAM_APDU [06:01:11]CAPDU: 80 0D 01 02 [06:01:11]Write to MH i2c: E2 08 00 62 44 80 0D 01 02 00 00 00 00 1F [06:01:11]Write i2c OK [06:01:11]MH_I2C_Read... [06:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:11]Read from MH i2c: E2 [06:01:11]MH_I2C_Read... [06:01:11]Read from MH i2c: E2 03 00 [06:01:11]MH_I2C_Read... [06:01:11]Read from MH i2c: E2 03 00 62 44 00 90 00 1A [06:01:11]RAPDU: 90 00 [06:01:11]wFMCommunicate OK [06:01:11]wFMCommunicate request_size=255 [06:01:11]MH_SAM_APDU [06:01:11]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 26 00 00 00 F4 03 04 00 2E D3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [06:01:11]Write to MH i2c: E2 02 01 63 44 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 26 00 00 00 F4 03 04 00 2E D3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A1 [06:01:11]Write i2c OK [06:01:11]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 03 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 03 00 63 44 00 90 00 1B [06:01:12]RAPDU: 90 00 [06:01:12]wFMCommunicate OK [06:01:12]wFMCommunicate request_size=30 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 19 0A 00 00 35 04 06 00 B7 36 02 33 E8 AB [06:01:12]Write to MH i2c: E2 21 00 64 44 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 19 0A 00 00 35 04 06 00 B7 36 02 33 E8 AB 00 00 F0 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 03 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 03 00 64 44 00 90 00 1C [06:01:12]RAPDU: 90 00 [06:01:12]wFMCommunicate OK [06:01:12]wFMCommunicate request_size=4 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 0D 03 02 [06:01:12]Write to MH i2c: E2 08 00 65 44 80 0D 03 02 00 00 00 00 24 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 0B 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 0B 00 65 44 00 DF D7 99 8B C0 A8 D1 68 90 00 A0 [06:01:12]RAPDU: DF D7 99 8B C0 A8 D1 68 90 00 [06:01:12]wFMCommunicate OK [06:01:12]SAM_PROTO_SignData done [06:01:12]FM_MakeSignedData done [06:01:12]CreateOFDProtocolMessage [06:01:12]wFMCommunicate request_size=4 [06:01:12]MH_SAM_APDU [06:01:12]CAPDU: 80 11 00 00 [06:01:12]Write to MH i2c: E2 08 00 66 44 80 11 00 00 00 00 00 00 24 [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:12]Read from MH i2c: E2 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 17 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: E2 17 00 66 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 74 [06:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:01:12]wFMCommunicate OK [06:01:12]CreateOFDProtocolMessage done [06:01:12]OFDSenderStorePacket 2585 [06:01:12]StoreOFDPacket docnum=2585 [06:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F4 07 1B 01 19 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 26 00 00 00 F4 03 04 00 2E D3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 0A 00 00 35 04 06 00 B7 36 02 33 E8 AB DF D7 99 8B C0 A8 D1 68 [06:01:12]CheckFolder [06:01:12]dirname=/storage/ofd_packets [06:01:12]CheckFolder done [06:01:12]ProducePacketName [06:01:12]name=ofd_packets/00002585 [06:01:12]NVStorageSaveData ofd_packets/00002585 [06:01:12]File name is /storage/ofd_packets/00002585 [06:01:12]Write 321 bytes [06:01:12]NVStorageSaveData done [06:01:12]OFDSenderStorePacket done [06:01:12]KKMCreateOFDPacket done [06:01:12]NVStorageSaveData kkm_last_timestamp [06:01:12]File name is /storage/kkm_last_timestamp [06:01:12]Write 4 bytes [06:01:12]NVStorageSaveData done [06:01:12]ExternCall_PrintAddStr [06:01:12]wPrintStart [06:01:12]Write to MH i2c: 01 00 00 67 44 AB [06:01:12]Write i2c OK [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: 01 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: 01 07 00 [06:01:12]MH_I2C_Read... [06:01:12]Read from MH i2c: 01 07 00 67 44 00 00 00 00 00 FF 0F C0 [06:01:12]RasterBufferAndPrint [06:01:12]line Счет N : (3)126771 [06:01:12]line ИНН: 02508201610067 [06:01:12]line Контрольно-Кассовый Чек [06:01:12]line ПРОДАЖА [06:01:12]line Товар: 4700000160204 [06:01:12]line Вода Легенда 1,5л [06:01:12]line 1.000 * 60.00 [06:01:12]line = 60.00 [06:01:12]line НДС 12% НСП 1% [06:01:12]line > о реализуемом товаре [06:01:12]line ИТОГО: 60.00 [06:01:12]line НСП 1% : 0.53 [06:01:12]line НДС 12% : 6.37 [06:01:12]line Наличными: 60.00 [06:01:12]line Безнал.: 0.00 [06:01:12]line Место: АЗС № 127 "Партнер Нефть" [06:01:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:01:12]line СНО: Общий режим [06:01:12]line Чек 38 31.07.2024 06:01 [06:01:12]line Смена: 17 ФФД: 1.0 [06:01:12]line ЗНМ: 0300000161 [06:01:12]line РНМ: 0000000000189667 [06:01:12]line Версия ККМ: v1.0 [06:01:12]line ФМ: 0000000002094248 [06:01:12]line ФД: 2585 [06:01:12]line ФПД: 201442593073323 [06:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T060118&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2585&fm=201442593073323&tin=02508201610067®Number=0000000000189667&sum=6000 [06:01:12]OFD Sender: Processing packet 2585 [packets to send 1, broken 0] [06:01:12]ProducePacketName [06:01:12]name=ofd_packets/00002585 [06:01:12]OFD Sender: To server: pG, [06:01:12]CommunicateWithHost lk.salyk.kg:30040 [06:01:12]ConnectInit lk.salyk.kg [06:01:12]line 0 [06:01:12]written 0, free lines is 4095 [06:01:12]Connected sock=10 [06:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F4 07 1B 01 19 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 26 00 00 00 F4 03 04 00 2E D3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 0A 00 00 35 04 06 00 B7 36 02 33 E8 AB DF D7 99 8B C0 A8 D1 68 [06:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 16 B2 47 00 2D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 0A 00 00 F4 03 04 00 95 7E A9 66 B6 04 01 00 00 8F 68 7C 90 A3 C5 87 7E [06:01:13]CommunicateWithHost err = 0 [06:01:13]CheckOFDResponse [06:01:13]1017 (14) - 77093643461234 [06:01:13]1041 (16) - 0000000002094248 [06:01:13]1040 (4) - 2585 [06:01:13]1012 (4) - 31.07.2024 00:00 [06:01:13]1206 (1) - 0 [06:01:13]OFD Sender: Remove packet 2585 [06:01:13]ProducePacketName [06:01:13]name=ofd_packets/00002585 [06:01:13]NVStorageDeleteData [06:01:13]Write to MH i2c: 01 00 00 8F 44 D3 [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: 01 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: 01 07 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: 01 07 00 8F 44 00 00 00 00 00 1E 0D 05 [06:01:13]RasterBufferAndPrint [06:01:13]line [06:01:13]line [06:01:13]line [06:01:13]line [06:01:13]line [06:01:13]written 0, free lines is 3363 [06:01:13]MH_Cut [06:01:13]Write to MH i2c: D1 01 00 96 44 01 AC [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: D1 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: D1 01 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: D1 01 00 96 44 00 AB [06:01:13]Write to MH i2c: 01 00 00 97 44 DB [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]OFD Sender: No OFD packet to send [06:01:13]*** Cut start [06:01:13]*** Partial cut [06:01:13]*** CUTSNS_PIN = 1 [06:01:13]*** CUTSNS_PIN = 0 [06:01:14]*** Brake cut motor [06:01:14]Read from MH i2c: 01 [06:01:14]MH_I2C_Read... [06:01:14]*** Stop cut motor [06:01:14]*** Cut end [06:01:14]Read from MH i2c: 01 07 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: 01 07 00 97 44 00 00 00 00 00 FF 0F F0 [06:01:14]process_action close_receipt done [06:01:14]requested_data is exist [06:01:14]produce_requested_data [06:01:14]requested_item fm.sn is exist - process it [06:01:14]wFMCommunicate request_size=4 [06:01:14]MH_SAM_APDU [06:01:14]CAPDU: 80 11 00 00 [06:01:14]Write to MH i2c: E2 08 00 98 44 80 11 00 00 00 00 00 00 56 [06:01:14]Write i2c OK [06:01:14]MH_I2C_Read... [06:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:14]Read from MH i2c: E2 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 17 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 17 00 98 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A6 [06:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:01:14]wFMCommunicate OK [06:01:14]requested_item fd.num is exist - process it [06:01:14]SAM_PROTO_GetFieldsCounters [06:01:14]wFMCommunicate request_size=4 [06:01:14]MH_SAM_APDU [06:01:14]CAPDU: 80 13 00 00 [06:01:14]Write to MH i2c: E2 08 00 99 44 80 13 00 00 00 00 00 00 59 [06:01:14]Write i2c OK [06:01:14]MH_I2C_Read... [06:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:14]Read from MH i2c: E2 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 62 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 62 00 99 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 19 0A 00 00 0E 04 04 00 11 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 29 [06:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 19 0A 00 00 0E 04 04 00 11 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 [06:01:14]wFMCommunicate OK [06:01:14]SAM_PROTO_GetFieldsCounters done [06:01:14]requested_item shift.num is exist - process it [06:01:14]requested_item shift.opened is exist - process it [06:01:14]req_shift_opened [06:01:14]FM_GetShiftState [06:01:14]SAM_PROTO_GetShiftState [06:01:14]wFMCommunicate request_size=4 [06:01:14]MH_SAM_APDU [06:01:14]CAPDU: 80 13 01 00 [06:01:14]Write to MH i2c: E2 08 00 9A 44 80 13 01 00 00 00 00 00 5B [06:01:14]Write i2c OK [06:01:14]MH_I2C_Read... [06:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:14]Read from MH i2c: E2 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 0E 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 0E 00 9A 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 28 [06:01:14]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:01:14]wFMCommunicate OK [06:01:14]SAM_PROTO_GetShiftState done [06:01:14]FM_GetShiftState done [06:01:14]req_shift_opened done [06:01:14]requested_item shift.open_date is exist - process it [06:01:14]req_shift_open_date [06:01:14]req_shift_open_date done [06:01:14]produce_requested_data done [06:01:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2585,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [06:01:14]process_action_free close_receipt [06:01:14]json_value_free [06:01:14]json_value_free done [06:01:14]process_json_proto returns [06:01:14]Send response to host [06:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2585,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [06:01:14]free response buf [06:01:14]execute_script done [06:01:14]execute_script returns [06:01:14]free content buf [06:01:14]Sock 9.Close socket [06:01:14]Sock 9.Thread stoped [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:52]accept exits with 7 [06:42:52]New connection [06:42:52]New thread 3067624804 created [06:42:52]Thread 3067481444 joined [06:42:52]Waiting for new connection... [06:42:52] Sock 7.Parse request [06:42:52]Sock 7.Check first char [06:42:52]Sock 7.First char is OK [06:42:52]request: POST /json_proto HTTP/1.0 [06:42:52]Method: POST [06:42:52]URL: /json_proto [06:42:52]Method is POST - this is cgi request [06:42:52]url: /json_proto [06:42:52]query_string will be loaded in cgi processing [06:42:52]execute_cgi json_proto POST (null) [06:42:52]execute_cgi path=json_proto method=POST [06:42:52]POST find Content-Length [06:42:52]Host: 172.17.45.132:8080 [06:42:52]Content-Length: 967 [06:42:52]Content-Type: application/json [06:42:52] [06:42:52]POST finish read [06:42:52]Found Content-Length = 967 [06:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126772", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:52]execute_script... [06:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126772", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:52]POST & json_proto [06:42:52]process_json_proto [06:42:52]json parsed OK: [06:42:52]protocol is kg_v1.0 [06:42:52]action value=close_receipt [06:42:52]process_action close_receipt [06:42:52]cmd_close_receipt [06:42:52]MH_GetDate [06:42:52]Write to MH i2c: F0 00 00 9B 44 CE [06:42:52]Write i2c OK [06:42:52]MH_I2C_Read... [06:42:52]Read from MH i2c: F0 [06:42:52]MH_I2C_Read... [06:42:52]Read from MH i2c: F0 09 00 [06:42:52]MH_I2C_Read... [06:42:52]Read from MH i2c: F0 09 00 9B 44 00 F4 DC A9 66 E3 0B 90 66 9A [06:42:52]GetLastDocTimeStamp 1722405678 [06:42:52]current date 1722408180 [06:42:52]FM_GetShiftState [06:42:52]SAM_PROTO_GetShiftState [06:42:52]wFMCommunicate request_size=4 [06:42:52]MH_SAM_APDU [06:42:52]CAPDU: 80 13 01 00 [06:42:52]Write to MH i2c: E2 08 00 9C 44 80 13 01 00 00 00 00 00 5D [06:42:52]Write i2c OK [06:42:52]MH_I2C_Read... [06:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:52]Read from MH i2c: E2 [06:42:52]MH_I2C_Read... [06:42:52]Read from MH i2c: E2 0E 00 [06:42:52]MH_I2C_Read... [06:42:52]Read from MH i2c: E2 0E 00 9C 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 2A [06:42:52]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:42:52]wFMCommunicate OK [06:42:52]SAM_PROTO_GetShiftState done [06:42:52]FM_GetShiftState done [06:42:52]opened in 1722384689 [06:42:52]opened+sec_in_day 1722471089 [06:42:52]quantity*price = 10500 [06:42:52]sum+1 = 10501 [06:42:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682035466 Напиток безалк. Flash Up Экзотик 0,45 ж/ 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 39 31.07.2024 06:43 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2586 ФПД: 237652604872861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2586&fm=237652604872861&tin=02508201610067®Number=0000000000189667&sum=19000 0 [06:42:53]StoreToDocumentArchive [06:42:53]shift 17 fd 2586 [06:42:53]save to /storage/0017/doc_00002586 [06:42:53]save last doc name /storage/0017/doc_00002586 to /storage/kkm_last_doc_name [06:42:53]save OK [06:42:53]Clear old archive folders... [06:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=415 [06:42:53]tlvbuf is 009ACF40 [06:42:53]SAM_PROTO_ClearQueue [06:42:53]wFMCommunicate request_size=4 [06:42:53]MH_SAM_APDU [06:42:53]CAPDU: 80 09 00 00 [06:42:53]Write to MH i2c: E2 08 00 A9 44 80 09 00 00 00 00 00 00 5F [06:42:53]Write i2c OK [06:42:53]MH_I2C_Read... [06:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:53]Read from MH i2c: E2 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: E2 03 00 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: E2 03 00 A9 44 00 90 00 61 [06:42:53]RAPDU: 90 00 [06:42:53]wFMCommunicate OK [06:42:53]SAM_PROTO_ClearQueue done [06:42:53]KKMCreateOFDPacket [06:42:53]OFDProtocolAddRootSTLVToBuf [06:42:53]FM_MakeSignedData [06:42:53]FM_MakeSignedData [06:42:53]SAM_PROTO_SignData [06:42:53]wFMCommunicate request_size=4 [06:42:53]MH_SAM_APDU [06:42:53]CAPDU: 80 0D 01 02 [06:42:53]Write to MH i2c: E2 08 00 AA 44 80 0D 01 02 00 00 00 00 67 [06:42:53]Write i2c OK [06:42:53]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 AA 44 00 90 00 62 [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=255 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [06:42:54]Write to MH i2c: E2 02 01 AB 44 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 EA [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 AB 44 00 90 00 63 [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=174 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 02 02 A9 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 27 00 00 00 F4 03 04 00 F4 DC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 0A 00 00 35 04 06 00 D8 24 CF 17 E8 9D [06:42:54]Write to MH i2c: E2 B1 00 AC 44 80 0D 02 02 A9 00 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 27 00 00 00 F4 03 04 00 F4 DC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 0A 00 00 35 04 06 00 D8 24 CF 17 E8 9D 00 00 44 [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 AC 44 00 90 00 64 [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 03 02 [06:42:54]Write to MH i2c: E2 08 00 AD 44 80 0D 03 02 00 00 00 00 6C [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 0B 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 0B 00 AD 44 00 1B 57 33 DD 10 89 C8 27 90 00 77 [06:42:54]RAPDU: 1B 57 33 DD 10 89 C8 27 90 00 [06:42:54]wFMCommunicate OK [06:42:54]SAM_PROTO_SignData done [06:42:54]FM_MakeSignedData done [06:42:54]CreateOFDProtocolMessage [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 11 00 00 [06:42:54]Write to MH i2c: E2 08 00 AE 44 80 11 00 00 00 00 00 00 6C [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 17 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 17 00 AE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BC [06:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:42:54]wFMCommunicate OK [06:42:54]CreateOFDProtocolMessage done [06:42:54]OFDSenderStorePacket 2586 [06:42:54]StoreOFDPacket docnum=2586 [06:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B3 01 00 00 D4 17 AB 01 71 9A 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 27 00 00 00 F4 03 04 00 F4 DC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 0A 00 00 35 04 06 00 D8 24 CF 17 E8 9D 1B 57 33 DD 10 89 C8 27 [06:42:54]CheckFolder [06:42:54]dirname=/storage/ofd_packets [06:42:54]CheckFolder done [06:42:54]ProducePacketName [06:42:54]name=ofd_packets/00002586 [06:42:54]NVStorageSaveData ofd_packets/00002586 [06:42:54]File name is /storage/ofd_packets/00002586 [06:42:54]Write 465 bytes [06:42:54]NVStorageSaveData done [06:42:54]OFDSenderStorePacket done [06:42:54]KKMCreateOFDPacket done [06:42:54]NVStorageSaveData kkm_last_timestamp [06:42:54]File name is /storage/kkm_last_timestamp [06:42:54]Write 4 bytes [06:42:54]NVStorageSaveData done [06:42:54]ExternCall_PrintAddStr [06:42:54]wPrintStart [06:42:54]Write to MH i2c: 01 00 00 AF 44 F3 [06:42:54]OFD Sender: Processing packet 2586 [packets to send 1, broken 0] [06:42:54]ProducePacketName [06:42:54]name=ofd_packets/00002586 [06:42:54]OFD Sender: To server: pG, [06:42:54]CommunicateWithHost lk.salyk.kg:30040 [06:42:54]Write i2c OK [06:42:54]ConnectInit lk.salyk.kg [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 07 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 07 00 AF 44 00 00 00 00 00 FF 0F 08 [06:42:54]RasterBufferAndPrint [06:42:54]line Счет N : (3)126772 [06:42:54]line ИНН: 02508201610067 [06:42:54]line Контрольно-Кассовый Чек [06:42:54]line ПРОДАЖА [06:42:54]line Товар: 2000034730018 [06:42:54]line Кофе Американо (GABB TRADE) [06:42:54]line 1.000 * 105.00 [06:42:54]line = 105.00 [06:42:54]line НДС 12% НСП 1% [06:42:54]line > о реализуемом товаре [06:42:54]line Товар: 4600682035466 [06:42:54]line Напиток безалк. Flash Up Экзотик 0,45 ж/ [06:42:54]line 1.000 * 85.00 [06:42:54]line = 85.00 [06:42:54]line НДС 12% НСП 1% [06:42:54]line > о реализуемом товаре [06:42:54]line ИТОГО: 190.00 [06:42:54]line НСП 1% : 1.68 [06:42:54]line НДС 12% : 20.18 [06:42:54]line Наличными: 190.00 [06:42:54]line Безнал.: 0.00 [06:42:54]line Место: АЗС № 127 "Партнер Нефть" [06:42:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:42:54]line СНО: Общий режим [06:42:54]line Чек 39 31.07.2024 06:43 [06:42:54]line Смена: 17 ФФД: 1.0 [06:42:54]line ЗНМ: 0300000161 [06:42:54]line РНМ: 0000000000189667 [06:42:54]line Версия ККМ: v1.0 [06:42:54]line ФМ: 0000000002094248 [06:42:54]line ФД: 2586 [06:42:54]line ФПД: 237652604872861 [06:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2586&fm=237652604872861&tin=02508201610067®Number=0000000000189667&sum=19000 [06:42:54]line 0 [06:42:54]written 0, free lines is 4095 [06:42:55]Write to MH i2c: 01 00 00 DF 44 23 [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 07 00 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 07 00 DF 44 00 00 00 00 00 A7 0C DD [06:42:55]RasterBufferAndPrint [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]written 0, free lines is 3245 [06:42:55]MH_Cut [06:42:55]Write to MH i2c: D1 01 00 E6 44 01 FC [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 01 00 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 01 00 E6 44 00 FB [06:42:55]Write to MH i2c: 01 00 00 E7 44 2B [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:56]*** Cut start [06:42:56]*** Partial cut [06:42:56]*** CUTSNS_PIN = 1 [06:42:56]*** CUTSNS_PIN = 0 [06:42:56]*** Brake cut motor [06:42:56]Read from MH i2c: 01 [06:42:56]MH_I2C_Read... [06:42:56]*** Stop cut motor [06:42:56]*** Cut end [06:42:56]Read from MH i2c: 01 07 00 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: 01 07 00 E7 44 00 00 00 00 00 FF 0F 40 [06:42:56]process_action close_receipt done [06:42:56]requested_data is exist [06:42:56]produce_requested_data [06:42:56]requested_item fm.sn is exist - process it [06:42:56]wFMCommunicate request_size=4 [06:42:56]MH_SAM_APDU [06:42:56]CAPDU: 80 11 00 00 [06:42:56]Write to MH i2c: E2 08 00 E8 44 80 11 00 00 00 00 00 00 A6 [06:42:56]Write i2c OK [06:42:56]MH_I2C_Read... [06:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:56]Read from MH i2c: E2 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: E2 17 00 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: E2 17 00 E8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [06:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:42:56]wFMCommunicate OK [06:42:56]requested_item fd.num is exist - process it [06:42:56]SAM_PROTO_GetFieldsCounters [06:42:56]wFMCommunicate request_size=4 [06:42:56]MH_SAM_APDU [06:42:56]CAPDU: 80 13 00 00 [06:42:56]Write to MH i2c: E2 08 00 E9 44 80 13 00 00 00 00 00 00 A9 [06:42:56]Write i2c OK [06:42:56]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 E9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1A 0A 00 00 0E 04 04 00 11 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 7D [06:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1A 0A 00 00 0E 04 04 00 11 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 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetFieldsCounters done [06:42:57]requested_item shift.num is exist - process it [06:42:57]requested_item shift.opened is exist - process it [06:42:57]req_shift_opened [06:42:57]FM_GetShiftState [06:42:57]SAM_PROTO_GetShiftState [06:42:57]wFMCommunicate request_size=4 [06:42:57]MH_SAM_APDU [06:42:57]CAPDU: 80 13 01 00 [06:42:57]Write to MH i2c: E2 08 00 EA 44 80 13 01 00 00 00 00 00 AB [06:42:57]Write i2c OK [06:42:57]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 EA 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 78 [06:42:57]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetShiftState done [06:42:57]FM_GetShiftState done [06:42:57]req_shift_opened done [06:42:57]requested_item shift.open_date is exist - process it [06:42:57]req_shift_open_date [06:42:57]req_shift_open_date done [06:42:57]produce_requested_data done [06:42:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2586,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [06:42:57]process_action_free close_receipt [06:42:57]json_value_free [06:42:57]json_value_free done [06:42:57]process_json_proto returns [06:42:57]Send response to host [06:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2586,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [06:42:57]free response buf [06:42:57]execute_script done [06:42:57]execute_script returns [06:42:57]free content buf [06:42:57]Sock 7.Close socket [06:42:57]Sock 7.Thread stoped [06:44:37]accept exits with 9 [06:44:37]New connection [06:44:37]New thread 3067481444 created [06:44:37]Thread 3067624804 joined [06:44:37]Waiting for new connection... [06:44:37] Sock 9.Parse request [06:44:37]Sock 9.Check first char [06:44:37]Sock 9.First char is OK [06:44:37]request: POST /json_proto HTTP/1.0 [06:44:37]Method: POST [06:44:37]URL: /json_proto [06:44:37]Method is POST - this is cgi request [06:44:37]url: /json_proto [06:44:37]query_string will be loaded in cgi processing [06:44:37]execute_cgi json_proto POST (null) [06:44:37]execute_cgi path=json_proto method=POST [06:44:37]POST find Content-Length [06:44:37]Host: 172.17.45.132:8080 [06:44:37]Content-Length: 709 [06:44:37]Content-Type: application/json [06:44:37] [06:44:37]POST finish read [06:44:37]Found Content-Length = 709 [06:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126773", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:37]execute_script... [06:44: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 : (3)126773", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:37]POST & json_proto [06:44:37]process_json_proto [06:44:37]json parsed OK: [06:44:37]protocol is kg_v1.0 [06:44:37]action value=close_receipt [06:44:37]process_action close_receipt [06:44:37]cmd_close_receipt [06:44:37]MH_GetDate [06:44:37]Write to MH i2c: F0 00 00 EB 44 1E [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: F0 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: F0 09 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: F0 09 00 EB 44 00 5D DD A9 66 E3 0B 90 66 54 [06:44:37]GetLastDocTimeStamp 1722408180 [06:44:37]current date 1722408285 [06:44:37]FM_GetShiftState [06:44:37]SAM_PROTO_GetShiftState [06:44:37]wFMCommunicate request_size=4 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 13 01 00 [06:44:37]Write to MH i2c: E2 08 00 EC 44 80 13 01 00 00 00 00 00 AD [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 0E 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 0E 00 EC 44 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7A [06:44:37]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:44:37]wFMCommunicate OK [06:44:37]SAM_PROTO_GetShiftState done [06:44:37]FM_GetShiftState done [06:44:37]opened in 1722384689 [06:44:37]opened+sec_in_day 1722471089 [06:44:37]quantity*price = 9500 [06:44:37]sum+1 = 9501 [06:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 40 31.07.2024 06:44 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2587 ФПД: 257975458868326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2587&fm=257975458868326&tin=02508201610067®Number=0000000000189667&sum=9500 0 [06:44:38]StoreToDocumentArchive [06:44:38]shift 17 fd 2587 [06:44:38]save to /storage/0017/doc_00002587 [06:44:38]save last doc name /storage/0017/doc_00002587 to /storage/kkm_last_doc_name [06:44:38]save OK [06:44:38]Clear old archive folders... [06:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=304 [06:44:38]tlvbuf is B6FF9700 [06:44:38]SAM_PROTO_ClearQueue [06:44:38]wFMCommunicate request_size=4 [06:44:38]MH_SAM_APDU [06:44:38]CAPDU: 80 09 00 00 [06:44:38]Write to MH i2c: E2 08 00 F9 44 80 09 00 00 00 00 00 00 AF [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:38]Read from MH i2c: E2 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: E2 03 00 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: E2 03 00 F9 44 00 90 00 B1 [06:44:38]RAPDU: 90 00 [06:44:38]wFMCommunicate OK [06:44:38]SAM_PROTO_ClearQueue done [06:44:38]KKMCreateOFDPacket [06:44:38]OFDProtocolAddRootSTLVToBuf [06:44:38]FM_MakeSignedData [06:44:38]FM_MakeSignedData [06:44:38]SAM_PROTO_SignData [06:44:38]wFMCommunicate request_size=4 [06:44:38]MH_SAM_APDU [06:44:38]CAPDU: 80 0D 01 02 [06:44:38]Write to MH i2c: E2 08 00 FA 44 80 0D 01 02 00 00 00 00 B7 [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:38]Read from MH i2c: E2 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: E2 03 00 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [06:44:38]RAPDU: 90 00 [06:44:38]wFMCommunicate OK [06:44:38]wFMCommunicate request_size=255 [06:44:38]MH_SAM_APDU [06:44:38]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5D DD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 [06:44:38]Write to MH i2c: E2 02 01 FB 44 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5D DD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 00 00 7F [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 03 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [06:44:39]RAPDU: 90 00 [06:44:39]wFMCommunicate OK [06:44:39]wFMCommunicate request_size=63 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 0A 00 00 35 04 06 00 EA A0 97 96 2C 66 [06:44:39]Write to MH i2c: E2 42 00 FC 44 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 0A 00 00 35 04 06 00 EA A0 97 96 2C 66 00 00 7B [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 03 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [06:44:39]RAPDU: 90 00 [06:44:39]wFMCommunicate OK [06:44:39]wFMCommunicate request_size=4 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 0D 03 02 [06:44:39]Write to MH i2c: E2 08 00 FD 44 80 0D 03 02 00 00 00 00 BC [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 0B 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 0B 00 FD 44 00 D6 88 4C 04 A3 26 6C 4B 90 00 EB [06:44:39]RAPDU: D6 88 4C 04 A3 26 6C 4B 90 00 [06:44:39]wFMCommunicate OK [06:44:39]SAM_PROTO_SignData done [06:44:39]FM_MakeSignedData done [06:44:39]CreateOFDProtocolMessage [06:44:39]wFMCommunicate request_size=4 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 11 00 00 [06:44:39]Write to MH i2c: E2 08 00 FE 44 80 11 00 00 00 00 00 00 BC [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 17 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 17 00 FE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0C [06:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:44:39]wFMCommunicate OK [06:44:39]CreateOFDProtocolMessage done [06:44:39]OFDSenderStorePacket 2587 [06:44:39]StoreOFDPacket docnum=2587 [06:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 91 DD 3C 01 F2 46 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5D DD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 0A 00 00 35 04 06 00 EA A0 97 96 2C 66 D6 88 4C 04 A3 26 6C 4B [06:44:39]CheckFolder [06:44:39]dirname=/storage/ofd_packets [06:44:39]CheckFolder done [06:44:39]ProducePacketName [06:44:39]name=ofd_packets/00002587 [06:44:39]NVStorageSaveData ofd_packets/00002587 [06:44:39]File name is /storage/ofd_packets/00002587 [06:44:39]Write 354 bytes [06:44:39]NVStorageSaveData done [06:44:39]OFDSenderStorePacket done [06:44:39]KKMCreateOFDPacket done [06:44:39]NVStorageSaveData kkm_last_timestamp [06:44:39]File name is /storage/kkm_last_timestamp [06:44:39]Write 4 bytes [06:44:39]NVStorageSaveData done [06:44:39]ExternCall_PrintAddStr [06:44:39]wPrintStart [06:44:39]Write to MH i2c: 01 00 00 FF 44 43 [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: 01 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: 01 07 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [06:44:39]RasterBufferAndPrint [06:44:39]line Счет N : (3)126773 [06:44:39]line ИНН: 02508201610067 [06:44:39]line Контрольно-Кассовый Чек [06:44:39]line ПРОДАЖА [06:44:39]line Товар: 4700000480302 [06:44:39]line Напиток энерг Nitro манго-клуб 0.45 ж/б [06:44:39]line 1.000 * 95.00 [06:44:39]line = 95.00 [06:44:39]line НДС 12% НСП 1% [06:44:39]line > о реализуемом товаре [06:44:39]line ИТОГО: 95.00 [06:44:39]line НСП 1% : 0.84 [06:44:39]line НДС 12% : 10.09 [06:44:39]line Наличными: 95.00 [06:44:39]line Безнал.: 0.00 [06:44:39]line Место: АЗС № 127 "Партнер Нефть" [06:44:39]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:44:39]line СНО: Общий режим [06:44:39]line Чек 40 31.07.2024 06:44 [06:44:39]line Смена: 17 ФФД: 1.0 [06:44:39]line ЗНМ: 0300000161 [06:44:39]line РНМ: 0000000000189667 [06:44:39]line Версия ККМ: v1.0 [06:44:39]line ФМ: 0000000002094248 [06:44:39]line ФД: 2587 [06:44:39]line ФПД: 257975458868326 [06:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2587&fm=257975458868326&tin=02508201610067®Number=0000000000189667&sum=9500 [06:44:39]line 0 [06:44:39]written 0, free lines is 4095 [06:44:40]Write to MH i2c: 01 00 00 28 45 6D [06:44:40]Write i2c OK [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: 01 [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: 01 07 00 [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: 01 07 00 28 45 00 00 00 00 00 F4 0C 74 [06:44:40]RasterBufferAndPrint [06:44:40]line [06:44:40]line [06:44:40]line [06:44:40]line [06:44:40]line [06:44:40]written 0, free lines is 3323 [06:44:40]MH_Cut [06:44:40]Write to MH i2c: D1 01 00 2F 45 01 46 [06:44:40]Write i2c OK [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: D1 [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: D1 01 00 [06:44:40]MH_I2C_Read... [06:44:40]Read from MH i2c: D1 01 00 2F 45 00 45 [06:44:40]Write to MH i2c: 01 00 00 30 45 75 [06:44:40]Write i2c OK [06:44:40]MH_I2C_Read... [06:44:40]*** Cut start [06:44:40]*** Partial cut [06:44:40]*** CUTSNS_PIN = 1 [06:44:40]*** CUTSNS_PIN = 0 [06:44:41]*** Brake cut motor [06:44:41]Read from MH i2c: 01 [06:44:41]MH_I2C_Read... [06:44:41]*** Stop cut motor [06:44:41]*** Cut end [06:44:41]Read from MH i2c: 01 07 00 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: 01 07 00 30 45 00 00 00 00 00 FF 0F 8A [06:44:41]process_action close_receipt done [06:44:41]requested_data is exist [06:44:41]produce_requested_data [06:44:41]requested_item fm.sn is exist - process it [06:44:41]wFMCommunicate request_size=4 [06:44:41]MH_SAM_APDU [06:44:41]CAPDU: 80 11 00 00 [06:44:41]Write to MH i2c: E2 08 00 31 45 80 11 00 00 00 00 00 00 F0 [06:44:41]Write i2c OK [06:44:41]MH_I2C_Read... [06:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:41]Read from MH i2c: E2 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 17 00 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 17 00 31 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [06:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:44:41]wFMCommunicate OK [06:44:41]requested_item fd.num is exist - process it [06:44:41]SAM_PROTO_GetFieldsCounters [06:44:41]wFMCommunicate request_size=4 [06:44:41]MH_SAM_APDU [06:44:41]CAPDU: 80 13 00 00 [06:44:41]Write to MH i2c: E2 08 00 32 45 80 13 00 00 00 00 00 00 F3 [06:44:41]Write i2c OK [06:44:41]MH_I2C_Read... [06:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:41]Read from MH i2c: E2 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 62 00 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 62 00 32 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1B 0A 00 00 0E 04 04 00 11 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 CB [06:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1B 0A 00 00 0E 04 04 00 11 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 [06:44:41]wFMCommunicate OK [06:44:41]SAM_PROTO_GetFieldsCounters done [06:44:41]requested_item shift.num is exist - process it [06:44:41]requested_item shift.opened is exist - process it [06:44:41]req_shift_opened [06:44:41]FM_GetShiftState [06:44:41]SAM_PROTO_GetShiftState [06:44:41]wFMCommunicate request_size=4 [06:44:41]MH_SAM_APDU [06:44:41]CAPDU: 80 13 01 00 [06:44:41]Write to MH i2c: E2 08 00 33 45 80 13 01 00 00 00 00 00 F5 [06:44:41]Write i2c OK [06:44:41]MH_I2C_Read... [06:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:41]Read from MH i2c: E2 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 0E 00 [06:44:41]MH_I2C_Read... [06:44:41]Read from MH i2c: E2 0E 00 33 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C2 [06:44:41]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [06:44:41]wFMCommunicate OK [06:44:41]SAM_PROTO_GetShiftState done [06:44:41]FM_GetShiftState done [06:44:41]req_shift_opened done [06:44:41]requested_item shift.open_date is exist - process it [06:44:41]req_shift_open_date [06:44:41]req_shift_open_date done [06:44:41]produce_requested_data done [06:44:41]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2587,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [06:44:41]process_action_free close_receipt [06:44:41]json_value_free [06:44:41]json_value_free done [06:44:41]process_json_proto returns [06:44:41]Send response to host [06:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2587,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [06:44:41]free response buf [06:44:41]execute_script done [06:44:41]execute_script returns [06:44:41]free content buf [06:44:41]Sock 9.Close socket [06:44:41]Sock 9.Thread stoped [06:45:08]ConnectInit Can't connect to host [06:45:08]CommunicateWithHost connect error [06:45:08]CommunicateWithHost err = -1 [06:45:08]OFD Sender: Server communicate error [06:45:08]OFD Sender: Processing packet 2586 [packets to send 2, broken 0] [06:45:08]ProducePacketName [06:45:08]name=ofd_packets/00002586 [06:45:08]OFD Sender: To server: pG, [06:45:08]CommunicateWithHost lk.salyk.kg:30040 [06:45:08]ConnectInit lk.salyk.kg [06:45:08]Connected sock=9 [06:45:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B3 01 00 00 D4 17 AB 01 71 9A 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 27 00 00 00 F4 03 04 00 F4 DC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 0A 00 00 35 04 06 00 D8 24 CF 17 E8 9D 1B 57 33 DD 10 89 C8 27 [06:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F F8 47 00 27 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 32 30 39 34 32 34 38 10 04 04 00 1A 0A 00 00 F4 03 04 00 E1 88 A9 66 B6 04 01 00 00 35 E1 FB 71 D1 6F A1 51 [06:45:09]CommunicateWithHost err = 0 [06:45:09]CheckOFDResponse [06:45:09]1017 (14) - 77093643461234 [06:45:09]1041 (16) - 0000000002094248 [06:45:09]1040 (4) - 2586 [06:45:09]1012 (4) - 31.07.2024 00:44 [06:45:09]1206 (1) - 0 [06:45:09]OFD Sender: Remove packet 2586 [06:45:09]ProducePacketName [06:45:09]name=ofd_packets/00002586 [06:45:09]NVStorageDeleteData [06:45:09]OFD Sender: Processing packet 2587 [packets to send 1, broken 0] [06:45:09]ProducePacketName [06:45:09]name=ofd_packets/00002587 [06:45:09]OFD Sender: To server: pG, [06:45:09]CommunicateWithHost lk.salyk.kg:30040 [06:45:09]ConnectInit lk.salyk.kg [06:45:09]Connected sock=9 [06:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 91 DD 3C 01 F2 46 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5D DD A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 0A 00 00 35 04 06 00 EA A0 97 96 2C 66 D6 88 4C 04 A3 26 6C 4B [06:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 28 B0 47 00 82 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 0A 00 00 F4 03 04 00 E2 88 A9 66 B6 04 01 00 00 F5 73 CB EF 04 4A 5C 99 [06:45:10]CommunicateWithHost err = 0 [06:45:10]CheckOFDResponse [06:45:10]1017 (14) - 77093643461234 [06:45:10]1041 (16) - 0000000002094248 [06:45:10]1040 (4) - 2587 [06:45:10]1012 (4) - 31.07.2024 00:44 [06:45:10]1206 (1) - 0 [06:45:10]OFD Sender: Remove packet 2587 [06:45:10]ProducePacketName [06:45:10]name=ofd_packets/00002587 [06:45:10]NVStorageDeleteData [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:55]accept exits with 7 [07:02:55]New connection [07:02:55]New thread 3067624804 created [07:02:55]Thread 3067481444 joined [07:02:55]Waiting for new connection... [07:02:55] Sock 7.Parse request [07:02:55]Sock 7.Check first char [07:02:55]Sock 7.First char is OK [07:02:55]request: POST /json_proto HTTP/1.0 [07:02:55]Method: POST [07:02:55]URL: /json_proto [07:02:55]Method is POST - this is cgi request [07:02:55]url: /json_proto [07:02:55]query_string will be loaded in cgi processing [07:02:55]execute_cgi json_proto POST (null) [07:02:55]execute_cgi path=json_proto method=POST [07:02:55]POST find Content-Length [07:02:55]Host: 172.17.45.132:8080 [07:02:55]Content-Length: 646 [07:02:55]Content-Type: application/json [07:02:55] [07:02:55]POST finish read [07:02:55]Found Content-Length = 646 [07:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126774", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:55]execute_script... [07:02: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 : (3)126774", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:55]POST & json_proto [07:02:55]process_json_proto [07:02:55]json parsed OK: [07:02:55]protocol is kg_v1.0 [07:02:55]action value=close_receipt [07:02:55]process_action close_receipt [07:02:55]cmd_close_receipt [07:02:55]MH_GetDate [07:02:55]Write to MH i2c: F0 00 00 34 45 68 [07:02:55]Write i2c OK [07:02:55]MH_I2C_Read... [07:02:55]Read from MH i2c: F0 [07:02:55]MH_I2C_Read... [07:02:55]Read from MH i2c: F0 09 00 [07:02:55]MH_I2C_Read... [07:02:55]Read from MH i2c: F0 09 00 34 45 00 A7 E1 A9 66 E3 0B 90 66 EC [07:02:55]GetLastDocTimeStamp 1722408285 [07:02:55]current date 1722409383 [07:02:55]FM_GetShiftState [07:02:55]SAM_PROTO_GetShiftState [07:02:55]wFMCommunicate request_size=4 [07:02:55]MH_SAM_APDU [07:02:55]CAPDU: 80 13 01 00 [07:02:55]Write to MH i2c: E2 08 00 35 45 80 13 01 00 00 00 00 00 F7 [07:02:55]Write i2c OK [07:02:55]MH_I2C_Read... [07:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:55]Read from MH i2c: E2 [07:02:55]MH_I2C_Read... [07:02:55]Read from MH i2c: E2 0E 00 [07:02:55]MH_I2C_Read... [07:02:55]Read from MH i2c: E2 0E 00 35 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C4 [07:02:55]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [07:02:55]wFMCommunicate OK [07:02:55]SAM_PROTO_GetShiftState done [07:02:55]FM_GetShiftState done [07:02:55]opened in 1722384689 [07:02:55]opened+sec_in_day 1722471089 [07:02:55]quantity*price = 13000 [07:02:55]sum+1 = 13001 [07:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 41 31.07.2024 07:03 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2588 ФПД: 18358536137858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070303&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2588&fm=18358536137858&tin=02508201610067®Number=0000000000189667&sum=13000 0 [07:02:56]StoreToDocumentArchive [07:02:56]shift 17 fd 2588 [07:02:56]save to /storage/0017/doc_00002588 [07:02:56]save last doc name /storage/0017/doc_00002588 to /storage/kkm_last_doc_name [07:02:56]save OK [07:02:56]Clear old archive folders... [07:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:02:56]tlvbuf is 0091E2D0 [07:02:56]SAM_PROTO_ClearQueue [07:02:56]wFMCommunicate request_size=4 [07:02:56]MH_SAM_APDU [07:02:56]CAPDU: 80 09 00 00 [07:02:56]Write to MH i2c: E2 08 00 42 45 80 09 00 00 00 00 00 00 F9 [07:02:56]Write i2c OK [07:02:56]MH_I2C_Read... [07:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:56]Read from MH i2c: E2 [07:02:56]MH_I2C_Read... [07:02:56]Read from MH i2c: E2 03 00 [07:02:56]MH_I2C_Read... [07:02:56]Read from MH i2c: E2 03 00 42 45 00 90 00 FB [07:02:56]RAPDU: 90 00 [07:02:56]wFMCommunicate OK [07:02:56]SAM_PROTO_ClearQueue done [07:02:56]KKMCreateOFDPacket [07:02:56]OFDProtocolAddRootSTLVToBuf [07:02:56]FM_MakeSignedData [07:02:56]FM_MakeSignedData [07:02:56]SAM_PROTO_SignData [07:02:56]wFMCommunicate request_size=4 [07:02:56]MH_SAM_APDU [07:02:56]CAPDU: 80 0D 01 02 [07:02:56]Write to MH i2c: E2 08 00 43 45 80 0D 01 02 00 00 00 00 01 [07:02:56]Write i2c OK [07:02:56]MH_I2C_Read... [07:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:56]Read from MH i2c: E2 [07:02:56]MH_I2C_Read... [07:02:56]Read from MH i2c: E2 03 00 [07:02:56]MH_I2C_Read... [07:02:56]Read from MH i2c: E2 03 00 43 45 00 90 00 FC [07:02:56]RAPDU: 90 00 [07:02:56]wFMCommunicate OK [07:02:56]wFMCommunicate request_size=255 [07:02:56]MH_SAM_APDU [07:02:56]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A7 E1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [07:02:56]Write to MH i2c: E2 02 01 44 45 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A7 E1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 ED [07:02:56]Write i2c OK [07:02:56]MH_I2C_Read... [07:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:57]Read from MH i2c: E2 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 03 00 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 03 00 44 45 00 90 00 FD [07:02:57]RAPDU: 90 00 [07:02:57]wFMCommunicate OK [07:02:57]wFMCommunicate request_size=41 [07:02:57]MH_SAM_APDU [07:02:57]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 0A 00 00 35 04 06 00 10 B2 6E 06 6C 82 [07:02:57]Write to MH i2c: E2 2C 00 45 45 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 0A 00 00 35 04 06 00 10 B2 6E 06 6C 82 00 00 1A [07:02:57]Write i2c OK [07:02:57]MH_I2C_Read... [07:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:57]Read from MH i2c: E2 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 03 00 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 03 00 45 45 00 90 00 FE [07:02:57]RAPDU: 90 00 [07:02:57]wFMCommunicate OK [07:02:57]wFMCommunicate request_size=4 [07:02:57]MH_SAM_APDU [07:02:57]CAPDU: 80 0D 03 02 [07:02:57]Write to MH i2c: E2 08 00 46 45 80 0D 03 02 00 00 00 00 06 [07:02:57]Write i2c OK [07:02:57]MH_I2C_Read... [07:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:57]Read from MH i2c: E2 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 0B 00 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 0B 00 46 45 00 E1 29 94 D8 4E CF 21 8B 90 00 46 [07:02:57]RAPDU: E1 29 94 D8 4E CF 21 8B 90 00 [07:02:57]wFMCommunicate OK [07:02:57]SAM_PROTO_SignData done [07:02:57]FM_MakeSignedData done [07:02:57]CreateOFDProtocolMessage [07:02:57]wFMCommunicate request_size=4 [07:02:57]MH_SAM_APDU [07:02:57]CAPDU: 80 11 00 00 [07:02:57]Write to MH i2c: E2 08 00 47 45 80 11 00 00 00 00 00 00 06 [07:02:57]Write i2c OK [07:02:57]MH_I2C_Read... [07:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:57]Read from MH i2c: E2 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 17 00 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: E2 17 00 47 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 56 [07:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:02:57]wFMCommunicate OK [07:02:57]CreateOFDProtocolMessage done [07:02:57]OFDSenderStorePacket 2588 [07:02:57]StoreOFDPacket docnum=2588 [07:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 D9 05 26 01 27 F2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A7 E1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 0A 00 00 35 04 06 00 10 B2 6E 06 6C 82 E1 29 94 D8 4E CF 21 8B [07:02:57]CheckFolder [07:02:57]dirname=/storage/ofd_packets [07:02:57]CheckFolder done [07:02:57]ProducePacketName [07:02:57]name=ofd_packets/00002588 [07:02:57]NVStorageSaveData ofd_packets/00002588 [07:02:57]File name is /storage/ofd_packets/00002588 [07:02:57]Write 332 bytes [07:02:57]NVStorageSaveData done [07:02:57]OFDSenderStorePacket done [07:02:57]KKMCreateOFDPacket done [07:02:57]NVStorageSaveData kkm_last_timestamp [07:02:57]File name is /storage/kkm_last_timestamp [07:02:57]Write 4 bytes [07:02:57]NVStorageSaveData done [07:02:57]ExternCall_PrintAddStr [07:02:57]wPrintStart [07:02:57]Write to MH i2c: 01 00 00 48 45 8D [07:02:57]Write i2c OK [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: 01 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: 01 07 00 [07:02:57]MH_I2C_Read... [07:02:57]Read from MH i2c: 01 07 00 48 45 00 00 00 00 00 FF 0F A2 [07:02:57]RasterBufferAndPrint [07:02:57]line Счет N : (3)126774 [07:02:57]line ИНН: 02508201610067 [07:02:57]line Контрольно-Кассовый Чек [07:02:57]line ПРОДАЖА [07:02:57]line Товар: 2000036220012 [07:02:57]line Кофе Капучино XL(GABB TRADE) [07:02:57]line 1.000 * 130.00 [07:02:57]line = 130.00 [07:02:57]line НДС 12% НСП 1% [07:02:57]line > о реализуемом товаре [07:02:57]line ИТОГО: 130.00 [07:02:57]line НСП 1% : 1.15 [07:02:57]line НДС 12% : 13.80 [07:02:57]line Наличными: 130.00 [07:02:57]line Безнал.: 0.00 [07:02:57]line Место: АЗС № 127 "Партнер Нефть" [07:02:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:02:57]line СНО: Общий режим [07:02:57]line Чек 41 31.07.2024 07:03 [07:02:57]line Смена: 17 ФФД: 1.0 [07:02:57]line ЗНМ: 0300000161 [07:02:57]line РНМ: 0000000000189667 [07:02:57]line Версия ККМ: v1.0 [07:02:57]line ФМ: 0000000002094248 [07:02:57]line ФД: 2588 [07:02:57]line ФПД: 18358536137858 [07:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070303&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2588&fm=18358536137858&tin=02508201610067®Number=0000000000189667&sum=13000 [07:02:57]line 0 [07:02:57]OFD Sender: Processing packet 2588 [packets to send 1, broken 0] [07:02:57]ProducePacketName [07:02:57]name=ofd_packets/00002588 [07:02:57]OFD Sender: To server: pG, [07:02:57]CommunicateWithHost lk.salyk.kg:30040 [07:02:57]ConnectInit lk.salyk.kg [07:02:57]written 0, free lines is 4095 [07:02:57]Connected sock=10 [07:02:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 D9 05 26 01 27 F2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A7 E1 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 0A 00 00 35 04 06 00 10 B2 6E 06 6C 82 E1 29 94 D8 4E CF 21 8B [07:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E9 99 47 00 F6 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 0A 00 00 F4 03 04 00 0E 8D A9 66 B6 04 01 00 00 E6 78 ED 86 59 CF 1A 12 [07:02:57]CommunicateWithHost err = 0 [07:02:57]CheckOFDResponse [07:02:57]1017 (14) - 77093643461234 [07:02:57]1041 (16) - 0000000002094248 [07:02:57]1040 (4) - 2588 [07:02:57]1012 (4) - 31.07.2024 01:02 [07:02:57]1206 (1) - 0 [07:02:57]OFD Sender: Remove packet 2588 [07:02:57]ProducePacketName [07:02:57]name=ofd_packets/00002588 [07:02:57]NVStorageDeleteData [07:02:58]Write to MH i2c: 01 00 00 71 45 B6 [07:02:58]Write i2c OK [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: 01 [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: 01 07 00 [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: 01 07 00 71 45 00 00 00 00 00 02 0D CC [07:02:58]RasterBufferAndPrint [07:02:58]line [07:02:58]line [07:02:58]line [07:02:58]line [07:02:58]line [07:02:58]written 0, free lines is 3336 [07:02:58]MH_Cut [07:02:58]Write to MH i2c: D1 01 00 78 45 01 8F [07:02:58]Write i2c OK [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: D1 [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: D1 01 00 [07:02:58]MH_I2C_Read... [07:02:58]Read from MH i2c: D1 01 00 78 45 00 8E [07:02:58]Write to MH i2c: 01 00 00 79 45 BE [07:02:58]Write i2c OK [07:02:58]MH_I2C_Read... [07:02:58]OFD Sender: No OFD packet to send [07:02:58]*** Cut start [07:02:58]*** Partial cut [07:02:58]*** CUTSNS_PIN = 1 [07:02:58]*** CUTSNS_PIN = 0 [07:02:59]*** Brake cut motor [07:02:59]Read from MH i2c: 01 [07:02:59]MH_I2C_Read... [07:02:59]*** Stop cut motor [07:02:59]*** Cut end [07:02:59]Read from MH i2c: 01 07 00 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: 01 07 00 79 45 00 00 00 00 00 FF 0F D3 [07:02:59]process_action close_receipt done [07:02:59]requested_data is exist [07:02:59]produce_requested_data [07:02:59]requested_item fm.sn is exist - process it [07:02:59]wFMCommunicate request_size=4 [07:02:59]MH_SAM_APDU [07:02:59]CAPDU: 80 11 00 00 [07:02:59]Write to MH i2c: E2 08 00 7A 45 80 11 00 00 00 00 00 00 39 [07:02:59]Write i2c OK [07:02:59]MH_I2C_Read... [07:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:59]Read from MH i2c: E2 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 17 00 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 17 00 7A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [07:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:02:59]wFMCommunicate OK [07:02:59]requested_item fd.num is exist - process it [07:02:59]SAM_PROTO_GetFieldsCounters [07:02:59]wFMCommunicate request_size=4 [07:02:59]MH_SAM_APDU [07:02:59]CAPDU: 80 13 00 00 [07:02:59]Write to MH i2c: E2 08 00 7B 45 80 13 00 00 00 00 00 00 3C [07:02:59]Write i2c OK [07:02:59]MH_I2C_Read... [07:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:59]Read from MH i2c: E2 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 62 00 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 62 00 7B 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1C 0A 00 00 0E 04 04 00 11 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 18 [07:02:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1C 0A 00 00 0E 04 04 00 11 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 [07:02:59]wFMCommunicate OK [07:02:59]SAM_PROTO_GetFieldsCounters done [07:02:59]requested_item shift.num is exist - process it [07:02:59]requested_item shift.opened is exist - process it [07:02:59]req_shift_opened [07:02:59]FM_GetShiftState [07:02:59]SAM_PROTO_GetShiftState [07:02:59]wFMCommunicate request_size=4 [07:02:59]MH_SAM_APDU [07:02:59]CAPDU: 80 13 01 00 [07:02:59]Write to MH i2c: E2 08 00 7C 45 80 13 01 00 00 00 00 00 3E [07:02:59]Write i2c OK [07:02:59]MH_I2C_Read... [07:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:59]Read from MH i2c: E2 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 0E 00 [07:02:59]MH_I2C_Read... [07:02:59]Read from MH i2c: E2 0E 00 7C 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0B [07:02:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [07:02:59]wFMCommunicate OK [07:02:59]SAM_PROTO_GetShiftState done [07:02:59]FM_GetShiftState done [07:02:59]req_shift_opened done [07:02:59]requested_item shift.open_date is exist - process it [07:02:59]req_shift_open_date [07:02:59]req_shift_open_date done [07:02:59]produce_requested_data done [07:02:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2588,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [07:02:59]process_action_free close_receipt [07:02:59]json_value_free [07:02:59]json_value_free done [07:02:59]process_json_proto returns [07:02:59]Send response to host [07:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2588,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [07:02:59]free response buf [07:02:59]execute_script done [07:02:59]execute_script returns [07:02:59]free content buf [07:02:59]Sock 7.Close socket [07:02:59]Sock 7.Thread stoped [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]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:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:27]accept exits with 9 [07:17:27]New connection [07:17:27]New thread 3067481444 created [07:17:27]Thread 3067624804 joined [07:17:27]Waiting for new connection... [07:17:27] Sock 9.Parse request [07:17:27]Sock 9.Check first char [07:17:27]Sock 9.First char is OK [07:17:27]request: POST /json_proto HTTP/1.0 [07:17:27]Method: POST [07:17:27]URL: /json_proto [07:17:27]Method is POST - this is cgi request [07:17:27]url: /json_proto [07:17:27]query_string will be loaded in cgi processing [07:17:27]execute_cgi json_proto POST (null) [07:17:27]execute_cgi path=json_proto method=POST [07:17:27]POST find Content-Length [07:17:27]Host: 172.17.45.132:8080 [07:17:27]Content-Length: 624 [07:17:27]Content-Type: application/json [07:17:27] [07:17:27]POST finish read [07:17:27]Found Content-Length = 624 [07:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126775", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:27]execute_script... [07:17: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 : (3)126775", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:27]POST & json_proto [07:17:27]process_json_proto [07:17:27]json parsed OK: [07:17:27]protocol is kg_v1.0 [07:17:27]action value=close_receipt [07:17:27]process_action close_receipt [07:17:27]cmd_close_receipt [07:17:27]MH_GetDate [07:17:27]Write to MH i2c: F0 00 00 7D 45 B1 [07:17:27]Write i2c OK [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: F0 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: F0 09 00 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: F0 09 00 7D 45 00 0F E5 A9 66 E3 0B 90 66 A1 [07:17:27]GetLastDocTimeStamp 1722409383 [07:17:27]current date 1722410255 [07:17:27]FM_GetShiftState [07:17:27]SAM_PROTO_GetShiftState [07:17:27]wFMCommunicate request_size=4 [07:17:27]MH_SAM_APDU [07:17:27]CAPDU: 80 13 01 00 [07:17:27]Write to MH i2c: E2 08 00 7E 45 80 13 01 00 00 00 00 00 40 [07:17:27]Write i2c OK [07:17:27]MH_I2C_Read... [07:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:27]Read from MH i2c: E2 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 0E 00 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 0E 00 7E 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0D [07:17:27]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [07:17:27]wFMCommunicate OK [07:17:27]SAM_PROTO_GetShiftState done [07:17:27]FM_GetShiftState done [07:17:27]opened in 1722384689 [07:17:27]opened+sec_in_day 1722471089 [07:17:27]quantity*price = 5000 [07:17:27]sum+1 = 5001 [07:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 42 31.07.2024 07:17 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2589 ФПД: 254426323426503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T071735&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2589&fm=254426323426503&tin=02508201610067®Number=0000000000189667&sum=5000 0 [07:17:28]StoreToDocumentArchive [07:17:28]shift 17 fd 2589 [07:17:28]save to /storage/0017/doc_00002589 [07:17:28]save last doc name /storage/0017/doc_00002589 to /storage/kkm_last_doc_name [07:17:28]save OK [07:17:28]Clear old archive folders... [07:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=267 [07:17:28]tlvbuf is 0091E1A0 [07:17:28]SAM_PROTO_ClearQueue [07:17:28]wFMCommunicate request_size=4 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 09 00 00 [07:17:28]Write to MH i2c: E2 08 00 8B 45 80 09 00 00 00 00 00 00 42 [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 8B 45 00 90 00 44 [07:17:28]RAPDU: 90 00 [07:17:28]wFMCommunicate OK [07:17:28]SAM_PROTO_ClearQueue done [07:17:28]KKMCreateOFDPacket [07:17:28]OFDProtocolAddRootSTLVToBuf [07:17:28]FM_MakeSignedData [07:17:28]FM_MakeSignedData [07:17:28]SAM_PROTO_SignData [07:17:28]wFMCommunicate request_size=4 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 0D 01 02 [07:17:28]Write to MH i2c: E2 08 00 8C 45 80 0D 01 02 00 00 00 00 4A [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 8C 45 00 90 00 45 [07:17:28]RAPDU: 90 00 [07:17:28]wFMCommunicate OK [07:17:28]wFMCommunicate request_size=255 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F E5 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 [07:17:28]Write to MH i2c: E2 02 01 8D 45 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F E5 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 00 00 4C [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 8D 45 00 90 00 46 [07:17:28]RAPDU: 90 00 [07:17:28]wFMCommunicate OK [07:17:28]wFMCommunicate request_size=26 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 0D 02 02 15 32 34 38 10 04 04 00 1D 0A 00 00 35 04 06 00 E7 66 3E A1 1C C7 [07:17:28]Write to MH i2c: E2 1D 00 8E 45 80 0D 02 02 15 00 32 34 38 10 04 04 00 1D 0A 00 00 35 04 06 00 E7 66 3E A1 1C C7 00 00 A2 [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:29]Read from MH i2c: E2 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 03 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 03 00 8E 45 00 90 00 47 [07:17:29]RAPDU: 90 00 [07:17:29]wFMCommunicate OK [07:17:29]wFMCommunicate request_size=4 [07:17:29]MH_SAM_APDU [07:17:29]CAPDU: 80 0D 03 02 [07:17:29]Write to MH i2c: E2 08 00 8F 45 80 0D 03 02 00 00 00 00 4F [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:29]Read from MH i2c: E2 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 0B 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 0B 00 8F 45 00 EF E5 1B CE EE DC 9B 5C 90 00 CE [07:17:29]RAPDU: EF E5 1B CE EE DC 9B 5C 90 00 [07:17:29]wFMCommunicate OK [07:17:29]SAM_PROTO_SignData done [07:17:29]FM_MakeSignedData done [07:17:29]CreateOFDProtocolMessage [07:17:29]wFMCommunicate request_size=4 [07:17:29]MH_SAM_APDU [07:17:29]CAPDU: 80 11 00 00 [07:17:29]Write to MH i2c: E2 08 00 90 45 80 11 00 00 00 00 00 00 4F [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:29]Read from MH i2c: E2 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 17 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: E2 17 00 90 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9F [07:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:17:29]wFMCommunicate OK [07:17:29]CreateOFDProtocolMessage done [07:17:29]OFDSenderStorePacket 2589 [07:17:29]StoreOFDPacket docnum=2589 [07:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 25 5B 17 01 3A 4A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F E5 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 0A 00 00 35 04 06 00 E7 66 3E A1 1C C7 EF E5 1B CE EE DC 9B 5C [07:17:29]CheckFolder [07:17:29]dirname=/storage/ofd_packets [07:17:29]CheckFolder done [07:17:29]ProducePacketName [07:17:29]name=ofd_packets/00002589 [07:17:29]NVStorageSaveData ofd_packets/00002589 [07:17:29]File name is /storage/ofd_packets/00002589 [07:17:29]Write 317 bytes [07:17:29]NVStorageSaveData done [07:17:29]OFDSenderStorePacket done [07:17:29]KKMCreateOFDPacket done [07:17:29]NVStorageSaveData kkm_last_timestamp [07:17:29]File name is /storage/kkm_last_timestamp [07:17:29]Write 4 bytes [07:17:29]NVStorageSaveData done [07:17:29]ExternCall_PrintAddStr [07:17:29]wPrintStart [07:17:29]Write to MH i2c: 01 00 00 91 45 D6 [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 91 45 00 00 00 00 00 FF 0F EB [07:17:29]RasterBufferAndPrint [07:17:29]line Счет N : (3)126775 [07:17:29]line ИНН: 02508201610067 [07:17:29]line Контрольно-Кассовый Чек [07:17:29]line ПРОДАЖА [07:17:29]line Товар: 4700000160181 [07:17:29]line Вода Байтик 1л [07:17:29]line 1.000 * 50.00 [07:17:29]line = 50.00 [07:17:29]line НДС 12% НСП 1% [07:17:29]line > о реализуемом товаре [07:17:29]line ИТОГО: 50.00 [07:17:29]line НСП 1% : 0.44 [07:17:29]line НДС 12% : 5.31 [07:17:29]line Наличными: 50.00 [07:17:29]line Безнал.: 0.00 [07:17:29]line Место: АЗС № 127 "Партнер Нефть" [07:17:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:17:29]line СНО: Общий режим [07:17:29]line Чек 42 31.07.2024 07:17 [07:17:29]line Смена: 17 ФФД: 1.0 [07:17:29]line ЗНМ: 0300000161 [07:17:29]line РНМ: 0000000000189667 [07:17:29]line Версия ККМ: v1.0 [07:17:29]line ФМ: 0000000002094248 [07:17:29]line ФД: 2589 [07:17:29]line ФПД: 254426323426503 [07:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T071735&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2589&fm=254426323426503&tin=02508201610067®Number=0000000000189667&sum=5000 [07:17:29]OFD Sender: Processing packet 2589 [packets to send 1, broken 0] [07:17:29]ProducePacketName [07:17:29]name=ofd_packets/00002589 [07:17:29]OFD Sender: To server: pG, [07:17:29]CommunicateWithHost lk.salyk.kg:30040 [07:17:29]ConnectInit lk.salyk.kg [07:17:29]line 0 [07:17:29]written 0, free lines is 4095 [07:17:29]Connected sock=10 [07:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 25 5B 17 01 3A 4A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F E5 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 0A 00 00 35 04 06 00 E7 66 3E A1 1C C7 EF E5 1B CE EE DC 9B 5C [07:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9C 94 47 00 7D 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 32 30 39 34 32 34 38 10 04 04 00 1D 0A 00 00 F4 03 04 00 76 90 A9 66 B6 04 01 00 00 7F 0D 1E 77 DF 1C D4 1C [07:17:29]CommunicateWithHost err = 0 [07:17:29]CheckOFDResponse [07:17:29]1017 (14) - 77093643461234 [07:17:29]1041 (16) - 0000000002094248 [07:17:29]1040 (4) - 2589 [07:17:29]1012 (4) - 31.07.2024 01:16 [07:17:29]1206 (1) - 0 [07:17:29]OFD Sender: Remove packet 2589 [07:17:29]ProducePacketName [07:17:29]name=ofd_packets/00002589 [07:17:29]NVStorageDeleteData [07:17:29]Write to MH i2c: 01 00 00 B9 45 FE [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 B9 45 00 00 00 00 00 16 0D 28 [07:17:29]RasterBufferAndPrint [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]written 0, free lines is 3360 [07:17:29]MH_Cut [07:17:29]Write to MH i2c: D1 01 00 C0 45 01 D7 [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 01 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 01 00 C0 45 00 D6 [07:17:29]Write to MH i2c: 01 00 00 C1 45 06 [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:30]OFD Sender: No OFD packet to send [07:17:30]*** Cut start [07:17:30]*** Partial cut [07:17:30]*** CUTSNS_PIN = 1 [07:17:30]*** CUTSNS_PIN = 0 [07:17:30]*** Brake cut motor [07:17:31]Read from MH i2c: 01 [07:17:31]MH_I2C_Read... [07:17:31]*** Stop cut motor [07:17:31]*** Cut end [07:17:31]Read from MH i2c: 01 07 00 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: 01 07 00 C1 45 00 00 00 00 00 FF 0F 1B [07:17:31]process_action close_receipt done [07:17:31]requested_data is exist [07:17:31]produce_requested_data [07:17:31]requested_item fm.sn is exist - process it [07:17:31]wFMCommunicate request_size=4 [07:17:31]MH_SAM_APDU [07:17:31]CAPDU: 80 11 00 00 [07:17:31]Write to MH i2c: E2 08 00 C2 45 80 11 00 00 00 00 00 00 81 [07:17:31]Write i2c OK [07:17:31]MH_I2C_Read... [07:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:31]Read from MH i2c: E2 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 17 00 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 17 00 C2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D1 [07:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:17:31]wFMCommunicate OK [07:17:31]requested_item fd.num is exist - process it [07:17:31]SAM_PROTO_GetFieldsCounters [07:17:31]wFMCommunicate request_size=4 [07:17:31]MH_SAM_APDU [07:17:31]CAPDU: 80 13 00 00 [07:17:31]Write to MH i2c: E2 08 00 C3 45 80 13 00 00 00 00 00 00 84 [07:17:31]Write i2c OK [07:17:31]MH_I2C_Read... [07:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:31]Read from MH i2c: E2 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 62 00 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 62 00 C3 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1D 0A 00 00 0E 04 04 00 11 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 64 [07:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1D 0A 00 00 0E 04 04 00 11 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 [07:17:31]wFMCommunicate OK [07:17:31]SAM_PROTO_GetFieldsCounters done [07:17:31]requested_item shift.num is exist - process it [07:17:31]requested_item shift.opened is exist - process it [07:17:31]req_shift_opened [07:17:31]FM_GetShiftState [07:17:31]SAM_PROTO_GetShiftState [07:17:31]wFMCommunicate request_size=4 [07:17:31]MH_SAM_APDU [07:17:31]CAPDU: 80 13 01 00 [07:17:31]Write to MH i2c: E2 08 00 C4 45 80 13 01 00 00 00 00 00 86 [07:17:31]Write i2c OK [07:17:31]MH_I2C_Read... [07:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:31]Read from MH i2c: E2 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 0E 00 [07:17:31]MH_I2C_Read... [07:17:31]Read from MH i2c: E2 0E 00 C4 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 53 [07:17:31]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [07:17:31]wFMCommunicate OK [07:17:31]SAM_PROTO_GetShiftState done [07:17:31]FM_GetShiftState done [07:17:31]req_shift_opened done [07:17:31]requested_item shift.open_date is exist - process it [07:17:31]req_shift_open_date [07:17:31]req_shift_open_date done [07:17:31]produce_requested_data done [07:17:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2589,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [07:17:31]process_action_free close_receipt [07:17:31]json_value_free [07:17:31]json_value_free done [07:17:31]process_json_proto returns [07:17:31]Send response to host [07:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2589,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [07:17:31]free response buf [07:17:31]execute_script done [07:17:31]execute_script returns [07:17:31]free content buf [07:17:31]Sock 9.Close socket [07:17:31]Sock 9.Thread stoped [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]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:20]accept exits with 7 [08:03:20]New connection [08:03:20]New thread 3067624804 created [08:03:20]Thread 3067481444 joined [08:03:20]Waiting for new connection... [08:03:20] Sock 7.Parse request [08:03:20]Sock 7.Check first char [08:03:20]Sock 7.First char is OK [08:03:20]request: POST /json_proto HTTP/1.0 [08:03:20]Method: POST [08:03:20]URL: /json_proto [08:03:20]Method is POST - this is cgi request [08:03:20]url: /json_proto [08:03:20]query_string will be loaded in cgi processing [08:03:20]execute_cgi json_proto POST (null) [08:03:20]execute_cgi path=json_proto method=POST [08:03:20]POST find Content-Length [08:03:20]Host: 172.17.45.132:8080 [08:03:20]Content-Length: 678 [08:03:20]Content-Type: application/json [08:03:20] [08:03:20]POST finish read [08:03:20]Found Content-Length = 678 [08:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 29.730, "sum" : 2250.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:20]execute_script... [08:03: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)610933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 29.730, "sum" : 2250.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:20]POST & json_proto [08:03:20]process_json_proto [08:03:20]json parsed OK: [08:03:20]protocol is kg_v1.0 [08:03:20]action value=close_receipt [08:03:20]process_action close_receipt [08:03:20]cmd_close_receipt [08:03:20]MH_GetDate [08:03:20]Write to MH i2c: F0 00 00 C5 45 F9 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 09 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: F0 09 00 C5 45 00 D0 EF A9 66 E3 0B 90 66 B4 [08:03:20]GetLastDocTimeStamp 1722410255 [08:03:20]current date 1722413008 [08:03:20]FM_GetShiftState [08:03:20]SAM_PROTO_GetShiftState [08:03:20]wFMCommunicate request_size=4 [08:03:20]MH_SAM_APDU [08:03:20]CAPDU: 80 13 01 00 [08:03:20]Write to MH i2c: E2 08 00 C6 45 80 13 01 00 00 00 00 00 88 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:20]Read from MH i2c: E2 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 0E 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 0E 00 C6 45 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 55 [08:03:20]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:03:20]wFMCommunicate OK [08:03:20]SAM_PROTO_GetShiftState done [08:03:20]FM_GetShiftState done [08:03:20]opened in 1722384689 [08:03:20]opened+sec_in_day 1722471089 [08:03:20]quantity*price = 225056 [08:03:20]sum+1 = 225057 [08:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 2250.00 Внесено: 4000.00 СДАЧА: 1750.00 НСП 1% : 19.92 НДС 12% : 239.00 Наличными: 2250.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 43 31.07.2024 08:03 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2590 ФПД: 27736603445747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080328&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2590&fm=27736603445747&tin=02508201610067®Number=0000000000189667&sum=225000 [08:03:22]StoreToDocumentArchive [08:03:22]shift 17 fd 2590 [08:03:22]save to /storage/0017/doc_00002590 [08:03:22]save last doc name /storage/0017/doc_00002590 to /storage/kkm_last_doc_name [08:03:22]save OK [08:03:22]Clear old archive folders... [08:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:03:22]tlvbuf is 00854390 [08:03:22]SAM_PROTO_ClearQueue [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 09 00 00 [08:03:22]Write to MH i2c: E2 08 00 D3 45 80 09 00 00 00 00 00 00 8A [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 D3 45 00 90 00 8C [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]SAM_PROTO_ClearQueue done [08:03:22]KKMCreateOFDPacket [08:03:22]OFDProtocolAddRootSTLVToBuf [08:03:22]FM_MakeSignedData [08:03:22]FM_MakeSignedData [08:03:22]SAM_PROTO_SignData [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 01 02 [08:03:22]Write to MH i2c: E2 08 00 D4 45 80 0D 01 02 00 00 00 00 92 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 D4 45 00 90 00 8D [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=255 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 22 74 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 20 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 D0 EF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 0A 00 00 35 04 06 00 19 39 EE 65 [08:03:22]Write to MH i2c: E2 02 01 D5 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 22 74 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 20 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 D0 EF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 0A 00 00 35 04 06 00 19 39 EE 65 00 00 DD [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 D5 45 00 90 00 8E [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=7 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 02 02 02 49 F3 [08:03:22]Write to MH i2c: E2 0A 00 D6 45 80 0D 02 02 02 00 49 F3 00 00 D5 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 03 00 D6 45 00 90 00 8F [08:03:22]RAPDU: 90 00 [08:03:22]wFMCommunicate OK [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 0D 03 02 [08:03:22]Write to MH i2c: E2 08 00 D7 45 80 0D 03 02 00 00 00 00 97 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:22]OFD Sender: No OFD packet to send [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 0B 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 0B 00 D7 45 00 C3 5D 4B 21 50 74 26 93 90 00 A1 [08:03:22]RAPDU: C3 5D 4B 21 50 74 26 93 90 00 [08:03:22]wFMCommunicate OK [08:03:22]SAM_PROTO_SignData done [08:03:22]FM_MakeSignedData done [08:03:22]CreateOFDProtocolMessage [08:03:22]wFMCommunicate request_size=4 [08:03:22]MH_SAM_APDU [08:03:22]CAPDU: 80 11 00 00 [08:03:22]Write to MH i2c: E2 08 00 D8 45 80 11 00 00 00 00 00 00 97 [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:22]Read from MH i2c: E2 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 17 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: E2 17 00 D8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E7 [08:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:03:22]wFMCommunicate OK [08:03:22]CreateOFDProtocolMessage done [08:03:22]OFDSenderStorePacket 2590 [08:03:22]StoreOFDPacket docnum=2590 [08:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 05 7F 04 01 D2 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 22 74 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 20 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 D0 EF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 0A 00 00 35 04 06 00 19 39 EE 65 49 F3 C3 5D 4B 21 50 74 26 93 [08:03:22]CheckFolder [08:03:22]dirname=/storage/ofd_packets [08:03:22]CheckFolder done [08:03:22]ProducePacketName [08:03:22]name=ofd_packets/00002590 [08:03:22]NVStorageSaveData ofd_packets/00002590 [08:03:22]File name is /storage/ofd_packets/00002590 [08:03:22]Write 298 bytes [08:03:22]NVStorageSaveData done [08:03:22]OFDSenderStorePacket done [08:03:22]KKMCreateOFDPacket done [08:03:22]NVStorageSaveData kkm_last_timestamp [08:03:22]File name is /storage/kkm_last_timestamp [08:03:22]Write 4 bytes [08:03:22]NVStorageSaveData done [08:03:22]ExternCall_PrintAddStr [08:03:22]wPrintStart [08:03:22]Write to MH i2c: 01 00 00 D9 45 1E [08:03:22]Write i2c OK [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 [08:03:22]MH_I2C_Read... [08:03:22]Read from MH i2c: 01 07 00 D9 45 00 00 00 00 00 FF 0F 33 [08:03:22]RasterBufferAndPrint [08:03:22]line Счет N : (1)610933 [08:03:22]line ИНН: 02508201610067 [08:03:22]line Контрольно-Кассовый Чек [08:03:22]line ПРОДАЖА [08:03:22]line ТРК (МРК, ГНК) : 1 [08:03:22]line Товар: 2710194210 [08:03:22]line ДТ-К-2 [08:03:22]line 29.730 * 75.70 [08:03:22]line = 2250.56 [08:03:22]line НДС 12% НСП 1% [08:03:22]line > о реализуемом товаре [08:03:22]line ОКРУГЛЕНИЕ: -0.56 [08:03:22]line ИТОГО: 2250.00 [08:03:22]line Внесено: 4000.00 [08:03:22]line СДАЧА: 1750.00 [08:03:22]line НСП 1% : 19.92 [08:03:22]line НДС 12% : 239.00 [08:03:22]line Наличными: 2250.00 [08:03:22]line Безнал.: 0.00 [08:03:22]line Место: АЗС № 127 "Партнер Нефть" [08:03:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:03:22]line СНО: Общий режим [08:03:22]line Чек 43 31.07.2024 08:03 [08:03:22]line Смена: 17 ФФД: 1.0 [08:03:22]line ЗНМ: 0300000161 [08:03:22]line РНМ: 0000000000189667 [08:03:22]line Версия ККМ: v1.0 [08:03:22]line ФМ: 0000000002094248 [08:03:22]line ФД: 2590 [08:03:22]line ФПД: 27736603445747 [08:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080328&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2590&fm=27736603445747&tin=02508201610067®Number=0000000000189667&sum=225000 [08:03:22]OFD Sender: Processing packet 2590 [packets to send 1, broken 0] [08:03:22]ProducePacketName [08:03:22]name=ofd_packets/00002590 [08:03:22]OFD Sender: To server: pG, [08:03:22]CommunicateWithHost lk.salyk.kg:30040 [08:03:22]ConnectInit lk.salyk.kg [08:03:22]written 0, free lines is 4095 [08:03:22]Connected sock=10 [08:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 05 7F 04 01 D2 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 22 74 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 20 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 D0 EF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 0A 00 00 35 04 06 00 19 39 EE 65 49 F3 C3 5D 4B 21 50 74 26 93 [08:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DB FE 47 00 2F 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 32 30 39 34 32 34 38 10 04 04 00 1E 0A 00 00 F4 03 04 00 37 9B A9 66 B6 04 01 00 00 29 33 A0 29 FF B3 12 56 [08:03:23]CommunicateWithHost err = 0 [08:03:23]CheckOFDResponse [08:03:23]1017 (14) - 77093643461234 [08:03:23]1041 (16) - 0000000002094248 [08:03:23]1040 (4) - 2590 [08:03:23]1012 (4) - 31.07.2024 02:02 [08:03:23]1206 (1) - 0 [08:03:23]OFD Sender: Remove packet 2590 [08:03:23]ProducePacketName [08:03:23]name=ofd_packets/00002590 [08:03:23]NVStorageDeleteData [08:03:23]Write to MH i2c: 01 00 00 04 46 4A [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: 01 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: 01 07 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: 01 07 00 04 46 00 00 00 00 00 04 0D 62 [08:03:23]RasterBufferAndPrint [08:03:23]line [08:03:23]line [08:03:23]line [08:03:23]line [08:03:23]line [08:03:23]written 0, free lines is 3338 [08:03:23]MH_Cut [08:03:23]Write to MH i2c: D1 01 00 0B 46 01 23 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: D1 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: D1 01 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: D1 01 00 0B 46 00 22 [08:03:23]Write to MH i2c: 01 00 00 0C 46 52 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]OFD Sender: No OFD packet to send [08:03:23]*** Cut start [08:03:23]*** Partial cut [08:03:23]*** CUTSNS_PIN = 1 [08:03:24]*** CUTSNS_PIN = 0 [08:03:24]*** Brake cut motor [08:03:24]Read from MH i2c: 01 [08:03:24]MH_I2C_Read... [08:03:24]*** Stop cut motor [08:03:24]*** Cut end [08:03:24]Read from MH i2c: 01 07 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: 01 07 00 0C 46 00 00 00 00 00 FF 0F 67 [08:03:24]process_action close_receipt done [08:03:24]requested_data is exist [08:03:24]produce_requested_data [08:03:24]requested_item fm.sn is exist - process it [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 11 00 00 [08:03:24]Write to MH i2c: E2 08 00 0D 46 80 11 00 00 00 00 00 00 CD [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 17 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 17 00 0D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1D [08:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:03:24]wFMCommunicate OK [08:03:24]requested_item fd.num is exist - process it [08:03:24]SAM_PROTO_GetFieldsCounters [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 00 00 [08:03:24]Write to MH i2c: E2 08 00 0E 46 80 13 00 00 00 00 00 00 D0 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 62 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 62 00 0E 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 0A 00 00 0E 04 04 00 11 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 B4 [08:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 0A 00 00 0E 04 04 00 11 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 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetFieldsCounters done [08:03:24]requested_item shift.num is exist - process it [08:03:24]requested_item shift.opened is exist - process it [08:03:24]req_shift_opened [08:03:24]FM_GetShiftState [08:03:24]SAM_PROTO_GetShiftState [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 01 00 [08:03:24]Write to MH i2c: E2 08 00 0F 46 80 13 01 00 00 00 00 00 D2 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:24]Read from MH i2c: E2 0E 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 0F 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 9F [08:03:24]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetShiftState done [08:03:24]FM_GetShiftState done [08:03:24]req_shift_opened done [08:03:24]requested_item shift.open_date is exist - process it [08:03:24]req_shift_open_date [08:03:24]req_shift_open_date done [08:03:24]produce_requested_data done [08:03:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2590,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:03:24]process_action_free close_receipt [08:03:24]json_value_free [08:03:24]json_value_free done [08:03:24]process_json_proto returns [08:03:24]Send response to host [08:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2590,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:03:24]free response buf [08:03:24]execute_script done [08:03:24]execute_script returns [08:03:24]free content buf [08:03:24]Sock 7.Close socket [08:03:24]Sock 7.Thread stoped [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:55]accept exits with 9 [08:06:55]New connection [08:06:55]New thread 3067481444 created [08:06:55]Thread 3067624804 joined [08:06:55]Waiting for new connection... [08:06:55] Sock 9.Parse request [08:06:55]Sock 9.Check first char [08:06:55]Sock 9.First char is OK [08:06:55]request: POST /json_proto HTTP/1.0 [08:06:55]Method: POST [08:06:55]URL: /json_proto [08:06:55]Method is POST - this is cgi request [08:06:55]url: /json_proto [08:06:55]query_string will be loaded in cgi processing [08:06:55]execute_cgi json_proto POST (null) [08:06:55]execute_cgi path=json_proto method=POST [08:06:55]POST find Content-Length [08:06:55]Host: 172.17.45.132:8080 [08:06:55]Content-Length: 632 [08:06:55]Content-Type: application/json [08:06:55] [08:06:55]POST finish read [08:06:55]Found Content-Length = 632 [08:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126776", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:55]execute_script... [08:06: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 : (3)126776", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:55]POST & json_proto [08:06:55]process_json_proto [08:06:55]json parsed OK: [08:06:55]protocol is kg_v1.0 [08:06:55]action value=close_receipt [08:06:55]process_action close_receipt [08:06:55]cmd_close_receipt [08:06:55]MH_GetDate [08:06:55]Write to MH i2c: F0 00 00 10 46 45 [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: F0 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: F0 09 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: F0 09 00 10 46 00 A7 F0 A9 66 E3 0B 90 66 D8 [08:06:55]GetLastDocTimeStamp 1722413008 [08:06:55]current date 1722413223 [08:06:55]FM_GetShiftState [08:06:55]SAM_PROTO_GetShiftState [08:06:55]wFMCommunicate request_size=4 [08:06:55]MH_SAM_APDU [08:06:55]CAPDU: 80 13 01 00 [08:06:55]Write to MH i2c: E2 08 00 11 46 80 13 01 00 00 00 00 00 D4 [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:55]Read from MH i2c: E2 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 11 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A1 [08:06:55]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:06:55]wFMCommunicate OK [08:06:55]SAM_PROTO_GetShiftState done [08:06:55]FM_GetShiftState done [08:06:55]opened in 1722384689 [08:06:55]opened+sec_in_day 1722471089 [08:06:55]quantity*price = 6000 [08:06:55]sum+1 = 6001 [08:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 44 31.07.2024 08:07 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2591 ФПД: 47415657863380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080703&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2591&fm=47415657863380&tin=02508201610067®Number=0000000000189667&sum=6000 0 [08:06:56]StoreToDocumentArchive [08:06:56]shift 17 fd 2591 [08:06:56]save to /storage/0017/doc_00002591 [08:06:56]save last doc name /storage/0017/doc_00002591 to /storage/kkm_last_doc_name [08:06:56]save OK [08:06:56]Clear old archive folders... [08:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:06:56]tlvbuf is 0085A860 [08:06:56]SAM_PROTO_ClearQueue [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 09 00 00 [08:06:56]Write to MH i2c: E2 08 00 1E 46 80 09 00 00 00 00 00 00 D6 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 1E 46 00 90 00 D8 [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]SAM_PROTO_ClearQueue done [08:06:56]KKMCreateOFDPacket [08:06:56]OFDProtocolAddRootSTLVToBuf [08:06:56]FM_MakeSignedData [08:06:56]FM_MakeSignedData [08:06:56]SAM_PROTO_SignData [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 01 02 [08:06:56]Write to MH i2c: E2 08 00 1F 46 80 0D 01 02 00 00 00 00 DE [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 1F 46 00 90 00 D9 [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]wFMCommunicate request_size=255 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 2C 00 00 00 F4 03 04 00 A7 F0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:06:56]Write to MH i2c: E2 02 01 20 46 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 2C 00 00 00 F4 03 04 00 A7 F0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FC [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 20 46 00 90 00 DA [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]wFMCommunicate request_size=30 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 1F 0A 00 00 35 04 06 00 2B 1F D1 71 98 D4 [08:06:56]Write to MH i2c: E2 21 00 21 46 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 1F 0A 00 00 35 04 06 00 2B 1F D1 71 98 D4 00 00 F8 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:57]Read from MH i2c: E2 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 03 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 03 00 21 46 00 90 00 DB [08:06:57]RAPDU: 90 00 [08:06:57]wFMCommunicate OK [08:06:57]wFMCommunicate request_size=4 [08:06:57]MH_SAM_APDU [08:06:57]CAPDU: 80 0D 03 02 [08:06:57]Write to MH i2c: E2 08 00 22 46 80 0D 03 02 00 00 00 00 E3 [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:57]Read from MH i2c: E2 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 0B 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 0B 00 22 46 00 31 C3 10 E8 6C 8B F8 D2 90 00 91 [08:06:57]RAPDU: 31 C3 10 E8 6C 8B F8 D2 90 00 [08:06:57]wFMCommunicate OK [08:06:57]SAM_PROTO_SignData done [08:06:57]FM_MakeSignedData done [08:06:57]CreateOFDProtocolMessage [08:06:57]wFMCommunicate request_size=4 [08:06:57]MH_SAM_APDU [08:06:57]CAPDU: 80 11 00 00 [08:06:57]Write to MH i2c: E2 08 00 23 46 80 11 00 00 00 00 00 00 E3 [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:57]Read from MH i2c: E2 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 17 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: E2 17 00 23 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 33 [08:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:06:57]wFMCommunicate OK [08:06:57]CreateOFDProtocolMessage done [08:06:57]OFDSenderStorePacket 2591 [08:06:57]StoreOFDPacket docnum=2591 [08:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 DC 43 1B 01 CF CD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 2C 00 00 00 F4 03 04 00 A7 F0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 0A 00 00 35 04 06 00 2B 1F D1 71 98 D4 31 C3 10 E8 6C 8B F8 D2 [08:06:57]CheckFolder [08:06:57]dirname=/storage/ofd_packets [08:06:57]CheckFolder done [08:06:57]ProducePacketName [08:06:57]name=ofd_packets/00002591 [08:06:57]NVStorageSaveData ofd_packets/00002591 [08:06:57]File name is /storage/ofd_packets/00002591 [08:06:57]Write 321 bytes [08:06:57]NVStorageSaveData done [08:06:57]OFDSenderStorePacket done [08:06:57]KKMCreateOFDPacket done [08:06:57]NVStorageSaveData kkm_last_timestamp [08:06:57]File name is /storage/kkm_last_timestamp [08:06:57]OFD Sender: Processing packet 2591 [packets to send 1, broken 0] [08:06:57]ProducePacketName [08:06:57]name=ofd_packets/00002591 [08:06:57]OFD Sender: To server: pG, [08:06:57]CommunicateWithHost lk.salyk.kg:30040 [08:06:57]ConnectInit lk.salyk.kg [08:06:57]Write 4 bytes [08:06:57]NVStorageSaveData done [08:06:57]ExternCall_PrintAddStr [08:06:57]wPrintStart [08:06:57]Write to MH i2c: 01 00 00 24 46 6A [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 24 46 00 00 00 00 00 FF 0F 7F [08:06:57]RasterBufferAndPrint [08:06:57]line Счет N : (3)126776 [08:06:57]line ИНН: 02508201610067 [08:06:57]line Контрольно-Кассовый Чек [08:06:57]line ПРОДАЖА [08:06:57]line Товар: 4700000160204 [08:06:57]line Вода Легенда 1,5л [08:06:57]line 1.000 * 60.00 [08:06:57]line = 60.00 [08:06:57]line НДС 12% НСП 1% [08:06:57]line > о реализуемом товаре [08:06:57]line ИТОГО: 60.00 [08:06:57]line НСП 1% : 0.53 [08:06:57]line НДС 12% : 6.37 [08:06:57]line Наличными: 60.00 [08:06:57]line Безнал.: 0.00 [08:06:57]line Место: АЗС № 127 "Партнер Нефть" [08:06:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:06:57]line СНО: Общий режим [08:06:57]line Чек 44 31.07.2024 08:07 [08:06:57]line Смена: 17 ФФД: 1.0 [08:06:57]line ЗНМ: 0300000161 [08:06:57]line РНМ: 0000000000189667 [08:06:57]line Версия ККМ: v1.0 [08:06:57]line ФМ: 0000000002094248 [08:06:57]line ФД: 2591 [08:06:57]line ФПД: 47415657863380 [08:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080703&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2591&fm=47415657863380&tin=02508201610067®Number=0000000000189667&sum=6000 [08:06:57]line 0 [08:06:57]Connected sock=11 [08:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 DC 43 1B 01 CF CD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 2C 00 00 00 F4 03 04 00 A7 F0 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 0A 00 00 35 04 06 00 2B 1F D1 71 98 D4 31 C3 10 E8 6C 8B F8 D2 [08:06:57]written 0, free lines is 4095 [08:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F4 39 47 00 DD 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 32 30 39 34 32 34 38 10 04 04 00 1F 0A 00 00 F4 03 04 00 0E 9C A9 66 B6 04 01 00 00 35 A7 B3 FC 1A E9 DD AD [08:06:57]CommunicateWithHost err = 0 [08:06:57]CheckOFDResponse [08:06:57]1017 (14) - 77093643461234 [08:06:57]1041 (16) - 0000000002094248 [08:06:57]1040 (4) - 2591 [08:06:57]1012 (4) - 31.07.2024 02:06 [08:06:57]1206 (1) - 0 [08:06:57]OFD Sender: Remove packet 2591 [08:06:57]ProducePacketName [08:06:57]name=ofd_packets/00002591 [08:06:57]NVStorageDeleteData [08:06:57]Write to MH i2c: 01 00 00 4C 46 92 [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 4C 46 00 00 00 00 00 14 0D BA [08:06:57]RasterBufferAndPrint [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]written 0, free lines is 3354 [08:06:57]MH_Cut [08:06:57]Write to MH i2c: D1 01 00 53 46 01 6B [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 01 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 01 00 53 46 00 6A [08:06:57]Write to MH i2c: 01 00 00 54 46 9A [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:58]OFD Sender: No OFD packet to send [08:06:58]*** Cut start [08:06:58]*** Partial cut [08:06:58]*** CUTSNS_PIN = 1 [08:06:58]*** CUTSNS_PIN = 0 [08:06:58]*** Brake cut motor [08:06:59]Read from MH i2c: 01 [08:06:59]MH_I2C_Read... [08:06:59]*** Stop cut motor [08:06:59]*** Cut end [08:06:59]Read from MH i2c: 01 07 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: 01 07 00 54 46 00 00 00 00 00 FF 0F AF [08:06:59]process_action close_receipt done [08:06:59]requested_data is exist [08:06:59]produce_requested_data [08:06:59]requested_item fm.sn is exist - process it [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 11 00 00 [08:06:59]Write to MH i2c: E2 08 00 55 46 80 11 00 00 00 00 00 00 15 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 17 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 17 00 55 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [08:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:06:59]wFMCommunicate OK [08:06:59]requested_item fd.num is exist - process it [08:06:59]SAM_PROTO_GetFieldsCounters [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 13 00 00 [08:06:59]Write to MH i2c: E2 08 00 56 46 80 13 00 00 00 00 00 00 18 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 62 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 62 00 56 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1F 0A 00 00 0E 04 04 00 11 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 00 [08:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1F 0A 00 00 0E 04 04 00 11 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 [08:06:59]wFMCommunicate OK [08:06:59]SAM_PROTO_GetFieldsCounters done [08:06:59]requested_item shift.num is exist - process it [08:06:59]requested_item shift.opened is exist - process it [08:06:59]req_shift_opened [08:06:59]FM_GetShiftState [08:06:59]SAM_PROTO_GetShiftState [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 13 01 00 [08:06:59]Write to MH i2c: E2 08 00 57 46 80 13 01 00 00 00 00 00 1A [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:59]Read from MH i2c: E2 0E 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 0E 00 57 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E7 [08:06:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:06:59]wFMCommunicate OK [08:06:59]SAM_PROTO_GetShiftState done [08:06:59]FM_GetShiftState done [08:06:59]req_shift_opened done [08:06:59]requested_item shift.open_date is exist - process it [08:06:59]req_shift_open_date [08:06:59]req_shift_open_date done [08:06:59]produce_requested_data done [08:06:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2591,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:06:59]process_action_free close_receipt [08:06:59]json_value_free [08:06:59]json_value_free done [08:06:59]process_json_proto returns [08:06:59]Send response to host [08:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2591,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:06:59]free response buf [08:06:59]execute_script done [08:06:59]execute_script returns [08:06:59]free content buf [08:06:59]Sock 9.Close socket [08:06:59]Sock 9.Thread stoped [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]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:22]accept exits with 7 [08:19:22]New connection [08:19:22]New thread 3067624804 created [08:19:22]Thread 3067481444 joined [08:19:22]Waiting for new connection... [08:19:22] Sock 7.Parse request [08:19:22]Sock 7.Check first char [08:19:22]Sock 7.First char is OK [08:19:22]request: POST /json_proto HTTP/1.0 [08:19:22]Method: POST [08:19:22]URL: /json_proto [08:19:22]Method is POST - this is cgi request [08:19:22]url: /json_proto [08:19:22]query_string will be loaded in cgi processing [08:19:22]execute_cgi json_proto POST (null) [08:19:22]execute_cgi path=json_proto method=POST [08:19:22]POST find Content-Length [08:19:22]Host: 172.17.45.132:8080 [08:19:22]Content-Length: 682 [08:19:22]Content-Type: application/json [08:19:22] [08:19:22]POST finish read [08:19:22]Found Content-Length = 682 [08:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:22]execute_script... [08:19: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)610942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:22]POST & json_proto [08:19:22]process_json_proto [08:19:22]json parsed OK: [08:19:22]protocol is kg_v1.0 [08:19:22]action value=close_receipt [08:19:22]process_action close_receipt [08:19:22]cmd_close_receipt [08:19:22]MH_GetDate [08:19:22]Write to MH i2c: F0 00 00 58 46 8D [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: F0 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: F0 09 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: F0 09 00 58 46 00 92 F3 A9 66 E3 0B 90 66 0E [08:19:22]GetLastDocTimeStamp 1722413223 [08:19:22]current date 1722413970 [08:19:22]FM_GetShiftState [08:19:22]SAM_PROTO_GetShiftState [08:19:22]wFMCommunicate request_size=4 [08:19:22]MH_SAM_APDU [08:19:22]CAPDU: 80 13 01 00 [08:19:22]Write to MH i2c: E2 08 00 59 46 80 13 01 00 00 00 00 00 1C [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:22]Read from MH i2c: E2 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 59 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E9 [08:19:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:19:22]wFMCommunicate OK [08:19:22]SAM_PROTO_GetShiftState done [08:19:22]FM_GetShiftState done [08:19:22]opened in 1722384689 [08:19:22]opened+sec_in_day 1722471089 [08:19:22]quantity*price = 100005 [08:19:22]sum+1 = 100006 [08:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 45 31.07.2024 08:19 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2592 ФПД: 136877085240378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081930&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2592&fm=136877085240378&tin=02508201610067®Number=0000000000189667&sum=100000 [08:19:23]StoreToDocumentArchive [08:19:23]shift 17 fd 2592 [08:19:23]save to /storage/0017/doc_00002592 [08:19:23]save last doc name /storage/0017/doc_00002592 to /storage/kkm_last_doc_name [08:19:23]save OK [08:19:23]Clear old archive folders... [08:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:23]tlvbuf is 008ECEF0 [08:19:23]SAM_PROTO_ClearQueue [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 09 00 00 [08:19:23]Write to MH i2c: E2 08 00 66 46 80 09 00 00 00 00 00 00 1E [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 66 46 00 90 00 20 [08:19:23]RAPDU: 90 00 [08:19:23]wFMCommunicate OK [08:19:23]SAM_PROTO_ClearQueue done [08:19:23]KKMCreateOFDPacket [08:19:23]OFDProtocolAddRootSTLVToBuf [08:19:23]FM_MakeSignedData [08:19:23]FM_MakeSignedData [08:19:23]SAM_PROTO_SignData [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 0D 01 02 [08:19:23]Write to MH i2c: E2 08 00 67 46 80 0D 01 02 00 00 00 00 26 [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 03 00 67 46 00 90 00 21 [08:19:23]RAPDU: 90 00 [08:19:23]wFMCommunicate OK [08:19:23]wFMCommunicate request_size=255 [08:19:23]MH_SAM_APDU [08:19: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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 92 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 0A 00 00 35 04 06 00 7C [08:19:23]Write to MH i2c: E2 02 01 68 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 92 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 0A 00 00 35 04 06 00 7C 00 00 B2 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 68 46 00 90 00 22 [08:19:24]RAPDU: 90 00 [08:19:24]wFMCommunicate OK [08:19:24]wFMCommunicate request_size=10 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 0D 02 02 05 7D 2E 0B 2C 3A [08:19:24]Write to MH i2c: E2 0D 00 69 46 80 0D 02 02 05 00 7D 2E 0B 2C 3A 00 00 4F [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 03 00 69 46 00 90 00 23 [08:19:24]RAPDU: 90 00 [08:19:24]wFMCommunicate OK [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 0D 03 02 [08:19:24]Write to MH i2c: E2 08 00 6A 46 80 0D 03 02 00 00 00 00 2B [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0B 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0B 00 6A 46 00 9D 10 4C 78 8E 05 FB 4A 90 00 75 [08:19:24]RAPDU: 9D 10 4C 78 8E 05 FB 4A 90 00 [08:19:24]wFMCommunicate OK [08:19:24]SAM_PROTO_SignData done [08:19:24]FM_MakeSignedData done [08:19:24]CreateOFDProtocolMessage [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 11 00 00 [08:19:24]Write to MH i2c: E2 08 00 6B 46 80 11 00 00 00 00 00 00 2B [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 17 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 17 00 6B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [08:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:19:24]wFMCommunicate OK [08:19:24]CreateOFDProtocolMessage done [08:19:24]OFDSenderStorePacket 2592 [08:19:24]StoreOFDPacket docnum=2592 [08:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 52 CA 07 01 1D 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 92 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 0A 00 00 35 04 06 00 7C 7D 2E 0B 2C 3A 9D 10 4C 78 8E 05 FB 4A [08:19:24]CheckFolder [08:19:24]dirname=/storage/ofd_packets [08:19:24]CheckFolder done [08:19:24]ProducePacketName [08:19:24]name=ofd_packets/00002592 [08:19:24]NVStorageSaveData ofd_packets/00002592 [08:19:24]File name is /storage/ofd_packets/00002592 [08:19:24]Write 301 bytes [08:19:24]NVStorageSaveData done [08:19:24]OFDSenderStorePacket done [08:19:24]KKMCreateOFDPacket done [08:19:24]NVStorageSaveData kkm_last_timestamp [08:19:24]File name is /storage/kkm_last_timestamp [08:19:24]Write 4 bytes [08:19:24]NVStorageSaveData done [08:19:24]ExternCall_PrintAddStr [08:19:24]wPrintStart [08:19:24]Write to MH i2c: 01 00 00 6C 46 B2 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 07 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: 01 07 00 6C 46 00 00 00 00 00 FF 0F C7 [08:19:24]RasterBufferAndPrint [08:19:24]line Счет N : (1)610942 [08:19:24]line ИНН: 02508201610067 [08:19:24]line Контрольно-Кассовый Чек [08:19:24]line ПРОДАЖА [08:19:24]line ТРК (МРК, ГНК) : 62 [08:19:24]line Товар: 2710124130 [08:19:24]line Аи-92-К-2 [08:19:24]line 14.750 * 67.80 [08:19:24]line = 1000.05 [08:19:24]line НДС 12% НСП 1% [08:19:24]line > о реализуемом товаре [08:19:24]line ОКРУГЛЕНИЕ: -0.05 [08:19:24]line ИТОГО: 1000.00 [08:19:24]line Внесено: 1000.00 [08:19:24]line СДАЧА: 0.00 [08:19:24]line НСП 1% : 8.85 [08:19:24]line НДС 12% : 106.20 [08:19:24]line Наличными: 1000.00 [08:19:24]line Безнал.: 0.00 [08:19:24]line Место: АЗС № 127 "Партнер Нефть" [08:19:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:19:24]line СНО: Общий режим [08:19:24]line Чек 45 31.07.2024 08:19 [08:19:24]line Смена: 17 ФФД: 1.0 [08:19:24]line ЗНМ: 0300000161 [08:19:24]line РНМ: 0000000000189667 [08:19:24]line Версия ККМ: v1.0 [08:19:24]line ФМ: 0000000002094248 [08:19:24]line ФД: 2592 [08:19:24]line ФПД: 136877085240378 [08:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081930&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2592&fm=136877085240378&tin=02508201610067®Number=0000000000189667&sum=100000 [08:19:24]OFD Sender: Processing packet 2592 [packets to send 1, broken 0] [08:19:24]ProducePacketName [08:19:24]name=ofd_packets/00002592 [08:19:24]OFD Sender: To server: pG, [08:19:24]CommunicateWithHost lk.salyk.kg:30040 [08:19:24]ConnectInit lk.salyk.kg [08:19:24]written 0, free lines is 4095 [08:19:24]Connected sock=10 [08:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 52 CA 07 01 1D 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 92 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 0A 00 00 35 04 06 00 7C 7D 2E 0B 2C 3A 9D 10 4C 78 8E 05 FB 4A [08:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8A 1D 47 00 E5 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 0A 00 00 F4 03 04 00 F9 9E A9 66 B6 04 01 00 00 2D 2D 0D 94 69 55 E5 19 [08:19:25]CommunicateWithHost err = 0 [08:19:25]CheckOFDResponse [08:19:25]1017 (14) - 77093643461234 [08:19:25]1041 (16) - 0000000002094248 [08:19:25]1040 (4) - 2592 [08:19:25]1012 (4) - 31.07.2024 02:18 [08:19:25]1206 (1) - 0 [08:19:25]OFD Sender: Remove packet 2592 [08:19:25]ProducePacketName [08:19:25]name=ofd_packets/00002592 [08:19:25]NVStorageDeleteData [08:19:25]Write to MH i2c: 01 00 00 97 46 DD [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 97 46 00 00 00 00 00 F9 0C E9 [08:19:25]RasterBufferAndPrint [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]line [08:19:25]written 0, free lines is 3328 [08:19:25]MH_Cut [08:19:25]Write to MH i2c: D1 01 00 9E 46 01 B6 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 01 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: D1 01 00 9E 46 00 B5 [08:19:25]Write to MH i2c: 01 00 00 9F 46 E5 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]OFD Sender: No OFD packet to send [08:19:25]*** Cut start [08:19:25]*** Partial cut [08:19:25]*** CUTSNS_PIN = 1 [08:19:25]*** CUTSNS_PIN = 0 [08:19:26]*** Brake cut motor [08:19:26]Read from MH i2c: 01 [08:19:26]MH_I2C_Read... [08:19:26]*** Stop cut motor [08:19:26]*** Cut end [08:19:26]Read from MH i2c: 01 07 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 9F 46 00 00 00 00 00 FF 0F FA [08:19:26]process_action close_receipt done [08:19:26]requested_data is exist [08:19:26]produce_requested_data [08:19:26]requested_item fm.sn is exist - process it [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 11 00 00 [08:19:26]Write to MH i2c: E2 08 00 A0 46 80 11 00 00 00 00 00 00 60 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 A0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B0 [08:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:19:26]wFMCommunicate OK [08:19:26]requested_item fd.num is exist - process it [08:19:26]SAM_PROTO_GetFieldsCounters [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 13 00 00 [08:19:26]Write to MH i2c: E2 08 00 A1 46 80 13 00 00 00 00 00 00 63 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 62 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 62 00 A1 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 0A 00 00 0E 04 04 00 11 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 4F [08:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 0A 00 00 0E 04 04 00 11 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 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_GetFieldsCounters done [08:19:26]requested_item shift.num is exist - process it [08:19:26]requested_item shift.opened is exist - process it [08:19:26]req_shift_opened [08:19:26]FM_GetShiftState [08:19:26]SAM_PROTO_GetShiftState [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 13 01 00 [08:19:26]Write to MH i2c: E2 08 00 A2 46 80 13 01 00 00 00 00 00 65 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0E 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0E 00 A2 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 32 [08:19:26]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_GetShiftState done [08:19:26]FM_GetShiftState done [08:19:26]req_shift_opened done [08:19:26]requested_item shift.open_date is exist - process it [08:19:26]req_shift_open_date [08:19:26]req_shift_open_date done [08:19:26]produce_requested_data done [08:19:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2592,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:19:26]process_action_free close_receipt [08:19:26]json_value_free [08:19:26]json_value_free done [08:19:26]process_json_proto returns [08:19:26]Send response to host [08:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2592,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:19:26]free response buf [08:19:26]execute_script done [08:19:26]execute_script returns [08:19:26]free content buf [08:19:26]Sock 7.Close socket [08:19:26]Sock 7.Thread stoped [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:36]accept exits with 9 [08:19:36]New connection [08:19:36]New thread 3067481444 created [08:19:36]Thread 3067624804 joined [08:19:36]Waiting for new connection... [08:19:36] Sock 9.Parse request [08:19:36]Sock 9.Check first char [08:19:36]Sock 9.First char is OK [08:19:36]request: POST /json_proto HTTP/1.0 [08:19:36]Method: POST [08:19:36]URL: /json_proto [08:19:36]Method is POST - this is cgi request [08:19:36]url: /json_proto [08:19:36]query_string will be loaded in cgi processing [08:19:36]execute_cgi json_proto POST (null) [08:19:36]execute_cgi path=json_proto method=POST [08:19:36]POST find Content-Length [08:19:36]Host: 172.17.45.132:8080 [08:19:36]Content-Length: 627 [08:19:36]Content-Type: application/json [08:19:36] [08:19:36]POST finish read [08:19:36]Found Content-Length = 627 [08:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126777", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:36]execute_script... [08:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126777", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:36]POST & json_proto [08:19:36]process_json_proto [08:19:36]json parsed OK: [08:19:36]protocol is kg_v1.0 [08:19:36]action value=close_receipt [08:19:36]process_action close_receipt [08:19:36]cmd_close_receipt [08:19:36]MH_GetDate [08:19:36]Write to MH i2c: F0 00 00 A3 46 D8 [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: F0 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: F0 09 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: F0 09 00 A3 46 00 A0 F3 A9 66 E3 0B 90 66 67 [08:19:36]GetLastDocTimeStamp 1722413970 [08:19:36]current date 1722413984 [08:19:36]FM_GetShiftState [08:19:36]SAM_PROTO_GetShiftState [08:19:36]wFMCommunicate request_size=4 [08:19:36]MH_SAM_APDU [08:19:36]CAPDU: 80 13 01 00 [08:19:36]Write to MH i2c: E2 08 00 A4 46 80 13 01 00 00 00 00 00 67 [08:19:36]Write i2c OK [08:19:36]MH_I2C_Read... [08:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:36]Read from MH i2c: E2 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 0E 00 [08:19:36]MH_I2C_Read... [08:19:36]Read from MH i2c: E2 0E 00 A4 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 34 [08:19:36]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:19:36]wFMCommunicate OK [08:19:36]SAM_PROTO_GetShiftState done [08:19:36]FM_GetShiftState done [08:19:36]opened in 1722384689 [08:19:36]opened+sec_in_day 1722471089 [08:19:36]quantity*price = 6000 [08:19:36]sum+1 = 6001 [08:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 46 31.07.2024 08:19 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2593 ФПД: 271076917917826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081944&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2593&fm=271076917917826&tin=02508201610067®Number=0000000000189667&sum=6000 0 [08:19:37]StoreToDocumentArchive [08:19:37]shift 17 fd 2593 [08:19:37]save to /storage/0017/doc_00002593 [08:19:37]save last doc name /storage/0017/doc_00002593 to /storage/kkm_last_doc_name [08:19:37]save OK [08:19:37]Clear old archive folders... [08:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:19:37]tlvbuf is 00882370 [08:19:37]SAM_PROTO_ClearQueue [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 09 00 00 [08:19:37]Write to MH i2c: E2 08 00 B1 46 80 09 00 00 00 00 00 00 69 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 B1 46 00 90 00 6B [08:19:37]RAPDU: 90 00 [08:19:37]wFMCommunicate OK [08:19:37]SAM_PROTO_ClearQueue done [08:19:37]KKMCreateOFDPacket [08:19:37]OFDProtocolAddRootSTLVToBuf [08:19:37]FM_MakeSignedData [08:19:37]FM_MakeSignedData [08:19:37]SAM_PROTO_SignData [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 0D 01 02 [08:19:37]Write to MH i2c: E2 08 00 B2 46 80 0D 01 02 00 00 00 00 71 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 B2 46 00 90 00 6C [08:19:37]RAPDU: 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=255 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 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 7D 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 2E 00 00 00 F4 03 04 00 A0 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [08:19:37]Write to MH i2c: E2 02 01 B3 46 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 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 7D 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 2E 00 00 00 F4 03 04 00 A0 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 8B [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 B3 46 00 90 00 6D [08:19:37]RAPDU: 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=33 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 0A 00 00 35 04 06 00 F6 8B 03 66 38 82 [08:19:37]Write to MH i2c: E2 24 00 B4 46 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 0A 00 00 35 04 06 00 F6 8B 03 66 38 82 00 00 CF [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:37]Read from MH i2c: E2 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 [08:19:37]MH_I2C_Read... [08:19:37]Read from MH i2c: E2 03 00 B4 46 00 90 00 6E [08:19:37]RAPDU: 90 00 [08:19:37]wFMCommunicate OK [08:19:37]wFMCommunicate request_size=4 [08:19:37]MH_SAM_APDU [08:19:37]CAPDU: 80 0D 03 02 [08:19:37]Write to MH i2c: E2 08 00 B5 46 80 0D 03 02 00 00 00 00 76 [08:19:37]Write i2c OK [08:19:37]MH_I2C_Read... [08:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:38]Read from MH i2c: E2 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 0B 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 0B 00 B5 46 00 A9 AE 54 59 09 F3 6F 56 90 00 3C [08:19:38]RAPDU: A9 AE 54 59 09 F3 6F 56 90 00 [08:19:38]wFMCommunicate OK [08:19:38]SAM_PROTO_SignData done [08:19:38]FM_MakeSignedData done [08:19:38]CreateOFDProtocolMessage [08:19:38]wFMCommunicate request_size=4 [08:19:38]MH_SAM_APDU [08:19:38]CAPDU: 80 11 00 00 [08:19:38]Write to MH i2c: E2 08 00 B6 46 80 11 00 00 00 00 00 00 76 [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:38]Read from MH i2c: E2 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 17 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: E2 17 00 B6 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [08:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:19:38]wFMCommunicate OK [08:19:38]CreateOFDProtocolMessage done [08:19:38]OFDSenderStorePacket 2593 [08:19:38]StoreOFDPacket docnum=2593 [08:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 81 05 1E 01 38 10 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 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 7D 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 2E 00 00 00 F4 03 04 00 A0 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 0A 00 00 35 04 06 00 F6 8B 03 66 38 82 A9 AE 54 59 09 F3 6F 56 [08:19:38]CheckFolder [08:19:38]dirname=/storage/ofd_packets [08:19:38]CheckFolder done [08:19:38]ProducePacketName [08:19:38]name=ofd_packets/00002593 [08:19:38]NVStorageSaveData ofd_packets/00002593 [08:19:38]File name is /storage/ofd_packets/00002593 [08:19:38]Write 324 bytes [08:19:38]NVStorageSaveData done [08:19:38]OFDSenderStorePacket done [08:19:38]KKMCreateOFDPacket done [08:19:38]NVStorageSaveData kkm_last_timestamp [08:19:38]File name is /storage/kkm_last_timestamp [08:19:38]Write 4 bytes [08:19:38]NVStorageSaveData done [08:19:38]ExternCall_PrintAddStr [08:19:38]wPrintStart [08:19:38]Write to MH i2c: 01 00 00 B7 46 FD [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 07 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 07 00 B7 46 00 00 00 00 00 FF 0F 12 [08:19:38]RasterBufferAndPrint [08:19:38]line Счет N : (3)126777 [08:19:38]line ИНН: 02508201610067 [08:19:38]line Контрольно-Кассовый Чек [08:19:38]line ПРОДАЖА [08:19:38]line Товар: 4700007690018 [08:19:38]line Негаз вода Pamir 0,5 л [08:19:38]line 2.000 * 30.00 [08:19:38]line = 60.00 [08:19:38]line НДС 12% НСП 1% [08:19:38]line > о реализуемом товаре [08:19:38]line ИТОГО: 60.00 [08:19:38]line НСП 1% : 0.53 [08:19:38]line НДС 12% : 6.37 [08:19:38]line Наличными: 60.00 [08:19:38]line Безнал.: 0.00 [08:19:38]line Место: АЗС № 127 "Партнер Нефть" [08:19:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:19:38]line СНО: Общий режим [08:19:38]line Чек 46 31.07.2024 08:19 [08:19:38]line Смена: 17 ФФД: 1.0 [08:19:38]line ЗНМ: 0300000161 [08:19:38]line РНМ: 0000000000189667 [08:19:38]line Версия ККМ: v1.0 [08:19:38]line ФМ: 0000000002094248 [08:19:38]line ФД: 2593 [08:19:38]line ФПД: 271076917917826 [08:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081944&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2593&fm=271076917917826&tin=02508201610067®Number=0000000000189667&sum=6000 [08:19:38]line 0 [08:19:38]OFD Sender: Processing packet 2593 [packets to send 1, broken 0] [08:19:38]ProducePacketName [08:19:38]name=ofd_packets/00002593 [08:19:38]OFD Sender: To server: pG, [08:19:38]CommunicateWithHost lk.salyk.kg:30040 [08:19:38]ConnectInit lk.salyk.kg [08:19:38]written 0, free lines is 4095 [08:19:38]Connected sock=10 [08:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 81 05 1E 01 38 10 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 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 7D 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 2E 00 00 00 F4 03 04 00 A0 F3 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 0A 00 00 35 04 06 00 F6 8B 03 66 38 82 A9 AE 54 59 09 F3 6F 56 [08:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A0 5E 47 00 B7 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 0A 00 00 F4 03 04 00 07 9F A9 66 B6 04 01 00 00 F1 E3 1E 1A BF AD C9 B3 [08:19:38]CommunicateWithHost err = 0 [08:19:38]CheckOFDResponse [08:19:38]1017 (14) - 77093643461234 [08:19:38]1041 (16) - 0000000002094248 [08:19:38]1040 (4) - 2593 [08:19:38]1012 (4) - 31.07.2024 02:18 [08:19:38]1206 (1) - 0 [08:19:38]OFD Sender: Remove packet 2593 [08:19:38]ProducePacketName [08:19:38]name=ofd_packets/00002593 [08:19:38]NVStorageDeleteData [08:19:38]Write to MH i2c: 01 00 00 DF 46 25 [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 07 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: 01 07 00 DF 46 00 00 00 00 00 24 0D 5D [08:19:38]RasterBufferAndPrint [08:19:38]line [08:19:38]line [08:19:38]line [08:19:38]line [08:19:38]line [08:19:38]written 0, free lines is 3373 [08:19:38]MH_Cut [08:19:38]Write to MH i2c: D1 01 00 E6 46 01 FE [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: D1 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: D1 01 00 [08:19:38]MH_I2C_Read... [08:19:38]Read from MH i2c: D1 01 00 E6 46 00 FD [08:19:38]Write to MH i2c: 01 00 00 E7 46 2D [08:19:38]Write i2c OK [08:19:38]MH_I2C_Read... [08:19:39]OFD Sender: No OFD packet to send [08:19:39]*** Cut start [08:19:39]*** Partial cut [08:19:39]*** CUTSNS_PIN = 1 [08:19:39]*** CUTSNS_PIN = 0 [08:19:39]*** Brake cut motor [08:19:40]Read from MH i2c: 01 [08:19:40]MH_I2C_Read... [08:19:40]*** Stop cut motor [08:19:40]*** Cut end [08:19:40]Read from MH i2c: 01 07 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: 01 07 00 E7 46 00 00 00 00 00 FF 0F 42 [08:19:40]process_action close_receipt done [08:19:40]requested_data is exist [08:19:40]produce_requested_data [08:19:40]requested_item fm.sn is exist - process it [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 11 00 00 [08:19:40]Write to MH i2c: E2 08 00 E8 46 80 11 00 00 00 00 00 00 A8 [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 17 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 17 00 E8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [08:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:19:40]wFMCommunicate OK [08:19:40]requested_item fd.num is exist - process it [08:19:40]SAM_PROTO_GetFieldsCounters [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 13 00 00 [08:19:40]Write to MH i2c: E2 08 00 E9 46 80 13 00 00 00 00 00 00 AB [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 62 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 62 00 E9 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 0A 00 00 0E 04 04 00 11 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 9B [08:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 0A 00 00 0E 04 04 00 11 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 [08:19:40]wFMCommunicate OK [08:19:40]SAM_PROTO_GetFieldsCounters done [08:19:40]requested_item shift.num is exist - process it [08:19:40]requested_item shift.opened is exist - process it [08:19:40]req_shift_opened [08:19:40]FM_GetShiftState [08:19:40]SAM_PROTO_GetShiftState [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 13 01 00 [08:19:40]Write to MH i2c: E2 08 00 EA 46 80 13 01 00 00 00 00 00 AD [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 EA 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7A [08:19:40]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:19:40]wFMCommunicate OK [08:19:40]SAM_PROTO_GetShiftState done [08:19:40]FM_GetShiftState done [08:19:40]req_shift_opened done [08:19:40]requested_item shift.open_date is exist - process it [08:19:40]req_shift_open_date [08:19:40]req_shift_open_date done [08:19:40]produce_requested_data done [08:19:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2593,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:19:40]process_action_free close_receipt [08:19:40]json_value_free [08:19:40]json_value_free done [08:19:40]process_json_proto returns [08:19:40]Send response to host [08:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2593,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:19:40]free response buf [08:19:40]execute_script done [08:19:40]execute_script returns [08:19:40]free content buf [08:19:40]Sock 9.Close socket [08:19:40]Sock 9.Thread stoped [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:22]accept exits with 7 [08:44:22]New connection [08:44:22]New thread 3067624804 created [08:44:22]Thread 3067481444 joined [08:44:22]Waiting for new connection... [08:44:22] Sock 7.Parse request [08:44:22]Sock 7.Check first char [08:44:22]Sock 7.First char is OK [08:44:22]request: POST /json_proto HTTP/1.0 [08:44:22]Method: POST [08:44:22]URL: /json_proto [08:44:22]Method is POST - this is cgi request [08:44:22]url: /json_proto [08:44:22]query_string will be loaded in cgi processing [08:44:22]execute_cgi json_proto POST (null) [08:44:22]execute_cgi path=json_proto method=POST [08:44:22]POST find Content-Length [08:44:22]Host: 172.17.45.132:8080 [08:44:22]Content-Length: 682 [08:44:22]Content-Type: application/json [08:44:22] [08:44:22]POST finish read [08:44:22]Found Content-Length = 682 [08:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:22]execute_script... [08:44: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)610954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:22]POST & json_proto [08:44:22]process_json_proto [08:44:22]json parsed OK: [08:44:22]protocol is kg_v1.0 [08:44:22]action value=close_receipt [08:44:22]process_action close_receipt [08:44:22]cmd_close_receipt [08:44:22]MH_GetDate [08:44:22]Write to MH i2c: F0 00 00 EB 46 20 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: F0 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: F0 09 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: F0 09 00 EB 46 00 6E F9 A9 66 E3 0B 90 66 83 [08:44:22]GetLastDocTimeStamp 1722413984 [08:44:22]current date 1722415470 [08:44:22]FM_GetShiftState [08:44:22]SAM_PROTO_GetShiftState [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 13 01 00 [08:44:22]Write to MH i2c: E2 08 00 EC 46 80 13 01 00 00 00 00 00 AF [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 EC 46 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7C [08:44:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:44:22]wFMCommunicate OK [08:44:22]SAM_PROTO_GetShiftState done [08:44:22]FM_GetShiftState done [08:44:22]opened in 1722384689 [08:44:22]opened+sec_in_day 1722471089 [08:44:22]quantity*price = 100005 [08:44:22]sum+1 = 100006 [08:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 47 31.07.2024 08:44 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2594 ФПД: 778158635748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T084430&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2594&fm=778158635748&tin=02508201610067®Number=0000000000189667&sum=100000 [08:44:23]StoreToDocumentArchive [08:44:23]shift 17 fd 2594 [08:44:23]save to /storage/0017/doc_00002594 [08:44:23]save last doc name /storage/0017/doc_00002594 to /storage/kkm_last_doc_name [08:44:23]save OK [08:44:23]Clear old archive folders... [08:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:23]tlvbuf is 00899160 [08:44:23]SAM_PROTO_ClearQueue [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 09 00 00 [08:44:23]Write to MH i2c: E2 08 00 F9 46 80 09 00 00 00 00 00 00 B1 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 F9 46 00 90 00 B3 [08:44:23]RAPDU: 90 00 [08:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_ClearQueue done [08:44:23]KKMCreateOFDPacket [08:44:23]OFDProtocolAddRootSTLVToBuf [08:44:23]FM_MakeSignedData [08:44:23]FM_MakeSignedData [08:44:23]SAM_PROTO_SignData [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 0D 01 02 [08:44:23]Write to MH i2c: E2 08 00 FA 46 80 0D 01 02 00 00 00 00 B9 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 FA 46 00 90 00 B4 [08:44:23]RAPDU: 90 00 [08:44:23]wFMCommunicate OK [08:44:23]wFMCommunicate request_size=255 [08:44:23]MH_SAM_APDU [08:44: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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F9 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 0A 00 00 35 04 06 00 00 [08:44:23]Write to MH i2c: E2 02 01 FB 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F9 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 0A 00 00 35 04 06 00 00 00 00 AF [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 FB 46 00 90 00 B5 [08:44:23]RAPDU: 90 00 [08:44:23]wFMCommunicate OK [08:44:23]wFMCommunicate request_size=10 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 0D 02 02 05 B5 2D DE 7A E4 [08:44:23]Write to MH i2c: E2 0D 00 FC 46 80 0D 02 02 05 00 B5 2D DE 7A E4 00 00 E4 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 03 00 FC 46 00 90 00 B6 [08:44:23]RAPDU: 90 00 [08:44:23]wFMCommunicate OK [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 0D 03 02 [08:44:23]Write to MH i2c: E2 08 00 FD 46 80 0D 03 02 00 00 00 00 BE [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0B 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0B 00 FD 46 00 77 21 A8 60 13 53 0A 84 90 00 53 [08:44:23]RAPDU: 77 21 A8 60 13 53 0A 84 90 00 [08:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_SignData done [08:44:23]FM_MakeSignedData done [08:44:23]CreateOFDProtocolMessage [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 11 00 00 [08:44:23]Write to MH i2c: E2 08 00 FE 46 80 11 00 00 00 00 00 00 BE [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 FE 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0E [08:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:44:23]wFMCommunicate OK [08:44:23]CreateOFDProtocolMessage done [08:44:23]OFDSenderStorePacket 2594 [08:44:23]StoreOFDPacket docnum=2594 [08:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C3 73 07 01 48 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F9 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 0A 00 00 35 04 06 00 00 B5 2D DE 7A E4 77 21 A8 60 13 53 0A 84 [08:44:23]CheckFolder [08:44:23]dirname=/storage/ofd_packets [08:44:23]CheckFolder done [08:44:23]ProducePacketName [08:44:23]name=ofd_packets/00002594 [08:44:23]NVStorageSaveData ofd_packets/00002594 [08:44:23]File name is /storage/ofd_packets/00002594 [08:44:23]Write 301 bytes [08:44:23]NVStorageSaveData done [08:44:23]OFDSenderStorePacket done [08:44:23]KKMCreateOFDPacket done [08:44:23]NVStorageSaveData kkm_last_timestamp [08:44:23]File name is /storage/kkm_last_timestamp [08:44:23]Write 4 bytes [08:44:23]NVStorageSaveData done [08:44:23]ExternCall_PrintAddStr [08:44:23]wPrintStart [08:44:23]Write to MH i2c: 01 00 00 FF 46 45 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 FF 46 00 00 00 00 00 FF 0F 5A [08:44:23]RasterBufferAndPrint [08:44:23]line Счет N : (1)610954 [08:44:23]line ИНН: 02508201610067 [08:44:23]line Контрольно-Кассовый Чек [08:44:23]line ПРОДАЖА [08:44:23]line ТРК (МРК, ГНК) : 62 [08:44:23]line Товар: 2710124130 [08:44:23]line Аи-92-К-2 [08:44:23]line 14.750 * 67.80 [08:44:23]line = 1000.05 [08:44:23]line НДС 12% НСП 1% [08:44:23]line > о реализуемом товаре [08:44:23]line ОКРУГЛЕНИЕ: -0.05 [08:44:23]line ИТОГО: 1000.00 [08:44:23]line Внесено: 1000.00 [08:44:23]line СДАЧА: 0.00 [08:44:23]line НСП 1% : 8.85 [08:44:23]line НДС 12% : 106.20 [08:44:23]line Наличными: 1000.00 [08:44:23]line Безнал.: 0.00 [08:44:23]line Место: АЗС № 127 "Партнер Нефть" [08:44:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:44:23]line СНО: Общий режим [08:44:23]line Чек 47 31.07.2024 08:44 [08:44:23]line Смена: 17 ФФД: 1.0 [08:44:23]line ЗНМ: 0300000161 [08:44:23]line РНМ: 0000000000189667 [08:44:23]line Версия ККМ: v1.0 [08:44:23]line ФМ: 0000000002094248 [08:44:23]line ФД: 2594 [08:44:23]line ФПД: 778158635748 [08:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T084430&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2594&fm=778158635748&tin=02508201610067®Number=0000000000189667&sum=100000 [08:44:24]OFD Sender: Processing packet 2594 [packets to send 1, broken 0] [08:44:24]ProducePacketName [08:44:24]name=ofd_packets/00002594 [08:44:24]OFD Sender: To server: pG, [08:44:24]CommunicateWithHost lk.salyk.kg:30040 [08:44:24]ConnectInit lk.salyk.kg [08:44:24]written 0, free lines is 4095 [08:44:24]Connected sock=11 [08:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C3 73 07 01 48 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F9 A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 0A 00 00 35 04 06 00 00 B5 2D DE 7A E4 77 21 A8 60 13 53 0A 84 [08:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F7 05 47 00 0E BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 0A 00 00 F4 03 04 00 D5 A4 A9 66 B6 04 01 00 00 5B A6 B8 E0 D9 09 B8 13 [08:44:24]CommunicateWithHost err = 0 [08:44:24]CheckOFDResponse [08:44:24]1017 (14) - 77093643461234 [08:44:24]1041 (16) - 0000000002094248 [08:44:24]1040 (4) - 2594 [08:44:24]1012 (4) - 31.07.2024 02:43 [08:44:24]1206 (1) - 0 [08:44:24]OFD Sender: Remove packet 2594 [08:44:24]ProducePacketName [08:44:24]name=ofd_packets/00002594 [08:44:24]NVStorageDeleteData [08:44:24]Write to MH i2c: 01 00 00 2A 47 71 [08:44:24]Write i2c OK [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: 01 [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: 01 07 00 [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: 01 07 00 2A 47 00 00 00 00 00 EF 0C 73 [08:44:24]RasterBufferAndPrint [08:44:24]line [08:44:24]line [08:44:24]line [08:44:24]line [08:44:24]line [08:44:24]written 0, free lines is 3317 [08:44:24]MH_Cut [08:44:24]Write to MH i2c: D1 01 00 31 47 01 4A [08:44:24]Write i2c OK [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: D1 [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: D1 01 00 [08:44:24]MH_I2C_Read... [08:44:24]Read from MH i2c: D1 01 00 31 47 00 49 [08:44:24]Write to MH i2c: 01 00 00 32 47 79 [08:44:24]Write i2c OK [08:44:24]MH_I2C_Read... [08:44:24]OFD Sender: No OFD packet to send [08:44:25]*** Cut start [08:44:25]*** Partial cut [08:44:25]*** CUTSNS_PIN = 1 [08:44:25]*** CUTSNS_PIN = 0 [08:44:25]*** Brake cut motor [08:44:25]Read from MH i2c: 01 [08:44:25]MH_I2C_Read... [08:44:25]*** Stop cut motor [08:44:25]*** Cut end [08:44:25]Read from MH i2c: 01 07 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: 01 07 00 32 47 00 00 00 00 00 FF 0F 8E [08:44:25]process_action close_receipt done [08:44:25]requested_data is exist [08:44:25]produce_requested_data [08:44:25]requested_item fm.sn is exist - process it [08:44:25]wFMCommunicate request_size=4 [08:44:25]MH_SAM_APDU [08:44:25]CAPDU: 80 11 00 00 [08:44:25]Write to MH i2c: E2 08 00 33 47 80 11 00 00 00 00 00 00 F4 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:25]Read from MH i2c: E2 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 17 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 17 00 33 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 44 [08:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:44:25]wFMCommunicate OK [08:44:25]requested_item fd.num is exist - process it [08:44:25]SAM_PROTO_GetFieldsCounters [08:44:25]wFMCommunicate request_size=4 [08:44:25]MH_SAM_APDU [08:44:25]CAPDU: 80 13 00 00 [08:44:25]Write to MH i2c: E2 08 00 34 47 80 13 00 00 00 00 00 00 F7 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 62 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 62 00 34 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 22 0A 00 00 0E 04 04 00 11 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 EB [08:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 22 0A 00 00 0E 04 04 00 11 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 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_GetFieldsCounters done [08:44:26]requested_item shift.num is exist - process it [08:44:26]requested_item shift.opened is exist - process it [08:44:26]req_shift_opened [08:44:26]FM_GetShiftState [08:44:26]SAM_PROTO_GetShiftState [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 13 01 00 [08:44:26]Write to MH i2c: E2 08 00 35 47 80 13 01 00 00 00 00 00 F9 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0E 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0E 00 35 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C6 [08:44:26]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_GetShiftState done [08:44:26]FM_GetShiftState done [08:44:26]req_shift_opened done [08:44:26]requested_item shift.open_date is exist - process it [08:44:26]req_shift_open_date [08:44:26]req_shift_open_date done [08:44:26]produce_requested_data done [08:44:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2594,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:44:26]process_action_free close_receipt [08:44:26]json_value_free [08:44:26]json_value_free done [08:44:26]process_json_proto returns [08:44:26]Send response to host [08:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2594,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:44:26]free response buf [08:44:26]execute_script done [08:44:26]execute_script returns [08:44:26]free content buf [08:44:26]Sock 7.Close socket [08:44:26]Sock 7.Thread stoped [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:48]accept exits with 9 [08:55:48]New connection [08:55:48]New thread 3067481444 created [08:55:48]Thread 3067624804 joined [08:55:48]Waiting for new connection... [08:55:48] Sock 9.Parse request [08:55:48]Sock 9.Check first char [08:55:48]Sock 9.First char is OK [08:55:48]request: POST /json_proto HTTP/1.0 [08:55:48]Method: POST [08:55:48]URL: /json_proto [08:55:48]Method is POST - this is cgi request [08:55:48]url: /json_proto [08:55:48]query_string will be loaded in cgi processing [08:55:48]execute_cgi json_proto POST (null) [08:55:48]execute_cgi path=json_proto method=POST [08:55:48]POST find Content-Length [08:55:48]Host: 172.17.45.132:8080 [08:55:48]Content-Length: 667 [08:55:48]Content-Type: application/json [08:55:48] [08:55:48]POST finish read [08:55:48]Found Content-Length = 667 [08:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126778", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:48]execute_script... [08:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126778", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:48]POST & json_proto [08:55:48]process_json_proto [08:55:48]json parsed OK: [08:55:48]protocol is kg_v1.0 [08:55:48]action value=close_receipt [08:55:48]process_action close_receipt [08:55:48]cmd_close_receipt [08:55:48]MH_GetDate [08:55:48]Write to MH i2c: F0 00 00 36 47 6C [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: F0 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: F0 09 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: F0 09 00 36 47 00 1C FC A9 66 E3 0B 90 66 80 [08:55:48]GetLastDocTimeStamp 1722415470 [08:55:48]current date 1722416156 [08:55:48]FM_GetShiftState [08:55:48]SAM_PROTO_GetShiftState [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 13 01 00 [08:55:48]Write to MH i2c: E2 08 00 37 47 80 13 01 00 00 00 00 00 FB [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 37 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C8 [08:55:48]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_GetShiftState done [08:55:48]FM_GetShiftState done [08:55:48]opened in 1722384689 [08:55:48]opened+sec_in_day 1722471089 [08:55:48]quantity*price = 20000 [08:55:48]sum+1 = 20001 [08:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 48 31.07.2024 08:55 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2595 ФПД: 207253716673512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2595&fm=207253716673512&tin=02508201610067®Number=0000000000189667&sum=20000 0 [08:55:49]StoreToDocumentArchive [08:55:49]shift 17 fd 2595 [08:55:49]save to /storage/0017/doc_00002595 [08:55:49]save last doc name /storage/0017/doc_00002595 to /storage/kkm_last_doc_name [08:55:49]save OK [08:55:49]Clear old archive folders... [08:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=283 [08:55:49]tlvbuf is 009AD410 [08:55:49]SAM_PROTO_ClearQueue [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 09 00 00 [08:55:49]Write to MH i2c: E2 08 00 44 47 80 09 00 00 00 00 00 00 FD [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 44 47 00 90 00 FF [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_ClearQueue done [08:55:49]KKMCreateOFDPacket [08:55:49]OFDProtocolAddRootSTLVToBuf [08:55:49]FM_MakeSignedData [08:55:49]FM_MakeSignedData [08:55:49]SAM_PROTO_SignData [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 01 02 [08:55:49]Write to MH i2c: E2 08 00 45 47 80 0D 01 02 00 00 00 00 05 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 45 47 00 90 00 00 [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]wFMCommunicate request_size=255 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C FC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [08:55:49]Write to MH i2c: E2 02 01 46 47 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C FC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 E7 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 46 47 00 90 00 01 [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]wFMCommunicate request_size=42 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 0A 00 00 35 04 06 00 BC 7F 04 29 23 E8 [08:55:49]Write to MH i2c: E2 2D 00 47 47 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 0A 00 00 35 04 06 00 BC 7F 04 29 23 E8 00 00 7A [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 03 00 47 47 00 90 00 02 [08:55:49]RAPDU: 90 00 [08:55:49]wFMCommunicate OK [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 0D 03 02 [08:55:49]Write to MH i2c: E2 08 00 48 47 80 0D 03 02 00 00 00 00 0A [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0B 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0B 00 48 47 00 1B 7E 33 C8 52 55 33 30 90 00 A9 [08:55:49]RAPDU: 1B 7E 33 C8 52 55 33 30 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_SignData done [08:55:49]FM_MakeSignedData done [08:55:49]CreateOFDProtocolMessage [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 11 00 00 [08:55:49]Write to MH i2c: E2 08 00 49 47 80 11 00 00 00 00 00 00 0A [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 49 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5A [08:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:55:49]wFMCommunicate OK [08:55:49]CreateOFDProtocolMessage done [08:55:49]OFDSenderStorePacket 2595 [08:55:49]StoreOFDPacket docnum=2595 [08:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 F5 EB 27 01 9A AD 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C FC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 0A 00 00 35 04 06 00 BC 7F 04 29 23 E8 1B 7E 33 C8 52 55 33 30 [08:55:49]CheckFolder [08:55:49]dirname=/storage/ofd_packets [08:55:49]CheckFolder done [08:55:49]ProducePacketName [08:55:49]name=ofd_packets/00002595 [08:55:49]NVStorageSaveData ofd_packets/00002595 [08:55:49]File name is /storage/ofd_packets/00002595 [08:55:49]Write 333 bytes [08:55:49]NVStorageSaveData done [08:55:49]OFDSenderStorePacket done [08:55:49]KKMCreateOFDPacket done [08:55:49]NVStorageSaveData kkm_last_timestamp [08:55:49]File name is /storage/kkm_last_timestamp [08:55:49]Write 4 bytes [08:55:49]NVStorageSaveData done [08:55:49]ExternCall_PrintAddStr [08:55:49]wPrintStart [08:55:49]Write to MH i2c: 01 00 00 4A 47 91 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 4A 47 00 00 00 00 00 FF 0F A6 [08:55:49]RasterBufferAndPrint [08:55:49]line Счет N : (3)126778 [08:55:49]line ИНН: 02508201610067 [08:55:49]line Контрольно-Кассовый Чек [08:55:49]line ПРОДАЖА [08:55:49]line Товар: 4700002085444 [08:55:49]line Водка Белое золото 0,24л [08:55:49]line 1.000 * 200.00 [08:55:49]line = 200.00 [08:55:49]line НДС 12% НСП 1% [08:55:49]line > о реализуемом товаре [08:55:49]line ИТОГО: 200.00 [08:55:49]line НСП 1% : 1.77 [08:55:49]line НДС 12% : 21.24 [08:55:49]line Наличными: 200.00 [08:55:49]line Безнал.: 0.00 [08:55:49]line Место: АЗС № 127 "Партнер Нефть" [08:55:49]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:55:49]line СНО: Общий режим [08:55:49]line Чек 48 31.07.2024 08:55 [08:55:49]line Смена: 17 ФФД: 1.0 [08:55:49]line ЗНМ: 0300000161 [08:55:49]line РНМ: 0000000000189667 [08:55:49]line Версия ККМ: v1.0 [08:55:49]line ФМ: 0000000002094248 [08:55:49]line ФД: 2595 [08:55:49]line ФПД: 207253716673512 [08:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2595&fm=207253716673512&tin=02508201610067®Number=0000000000189667&sum=20000 [08:55:50]line 0 [08:55:50]OFD Sender: Processing packet 2595 [packets to send 1, broken 0] [08:55:50]ProducePacketName [08:55:50]name=ofd_packets/00002595 [08:55:50]OFD Sender: To server: pG, [08:55:50]CommunicateWithHost lk.salyk.kg:30040 [08:55:50]ConnectInit lk.salyk.kg [08:55:50]written 0, free lines is 4095 [08:55:50]Connected sock=10 [08:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 F5 EB 27 01 9A AD 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C FC A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 0A 00 00 35 04 06 00 BC 7F 04 29 23 E8 1B 7E 33 C8 52 55 33 30 [08:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8F BE 47 00 B6 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 0A 00 00 F4 03 04 00 83 A7 A9 66 B6 04 01 00 00 A5 6F 4C 6E A6 03 FE 0A [08:55:50]CommunicateWithHost err = 0 [08:55:50]CheckOFDResponse [08:55:50]1017 (14) - 77093643461234 [08:55:50]1041 (16) - 0000000002094248 [08:55:50]1040 (4) - 2595 [08:55:50]1012 (4) - 31.07.2024 02:54 [08:55:50]1206 (1) - 0 [08:55:50]OFD Sender: Remove packet 2595 [08:55:50]ProducePacketName [08:55:50]name=ofd_packets/00002595 [08:55:50]NVStorageDeleteData [08:55:50]Write to MH i2c: 01 00 00 72 47 B9 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 72 47 00 00 00 00 00 2A 0D F7 [08:55:50]RasterBufferAndPrint [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]line [08:55:50]written 0, free lines is 3380 [08:55:50]MH_Cut [08:55:50]Write to MH i2c: D1 01 00 79 47 01 92 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 01 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: D1 01 00 79 47 00 91 [08:55:50]Write to MH i2c: 01 00 00 7A 47 C1 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:51]OFD Sender: No OFD packet to send [08:55:51]*** Cut start [08:55:51]*** Partial cut [08:55:51]*** CUTSNS_PIN = 1 [08:55:51]*** CUTSNS_PIN = 0 [08:55:51]*** Brake cut motor [08:55:52]Read from MH i2c: 01 [08:55:52]MH_I2C_Read... [08:55:52]*** Stop cut motor [08:55:52]*** Cut end [08:55:52]Read from MH i2c: 01 07 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 7A 47 00 00 00 00 00 FF 0F D6 [08:55:52]process_action close_receipt done [08:55:52]requested_data is exist [08:55:52]produce_requested_data [08:55:52]requested_item fm.sn is exist - process it [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 11 00 00 [08:55:52]Write to MH i2c: E2 08 00 7B 47 80 11 00 00 00 00 00 00 3C [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 17 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 17 00 7B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8C [08:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:55:52]wFMCommunicate OK [08:55:52]requested_item fd.num is exist - process it [08:55:52]SAM_PROTO_GetFieldsCounters [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 13 00 00 [08:55:52]Write to MH i2c: E2 08 00 7C 47 80 13 00 00 00 00 00 00 3F [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 62 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 62 00 7C 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 0A 00 00 0E 04 04 00 11 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 37 [08:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 0A 00 00 0E 04 04 00 11 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 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_GetFieldsCounters done [08:55:52]requested_item shift.num is exist - process it [08:55:52]requested_item shift.opened is exist - process it [08:55:52]req_shift_opened [08:55:52]FM_GetShiftState [08:55:52]SAM_PROTO_GetShiftState [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 13 01 00 [08:55:52]Write to MH i2c: E2 08 00 7D 47 80 13 01 00 00 00 00 00 41 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 7D 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0E [08:55:52]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_GetShiftState done [08:55:52]FM_GetShiftState done [08:55:52]req_shift_opened done [08:55:52]requested_item shift.open_date is exist - process it [08:55:52]req_shift_open_date [08:55:52]req_shift_open_date done [08:55:52]produce_requested_data done [08:55:52]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2595,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [08:55:52]process_action_free close_receipt [08:55:52]json_value_free [08:55:52]json_value_free done [08:55:52]process_json_proto returns [08:55:52]Send response to host [08:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2595,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [08:55:52]free response buf [08:55:52]execute_script done [08:55:52]execute_script returns [08:55:52]free content buf [08:55:52]Sock 9.Close socket [08:55:52]Sock 9.Thread stoped [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:14]accept exits with 7 [09:08:14]New connection [09:08:14]New thread 3067624804 created [09:08:14]Thread 3067481444 joined [09:08:14]Waiting for new connection... [09:08:14] Sock 7.Parse request [09:08:14]Sock 7.Check first char [09:08:14]Sock 7.First char is OK [09:08:14]request: POST /json_proto HTTP/1.0 [09:08:14]Method: POST [09:08:14]URL: /json_proto [09:08:14]Method is POST - this is cgi request [09:08:14]url: /json_proto [09:08:14]query_string will be loaded in cgi processing [09:08:14]execute_cgi json_proto POST (null) [09:08:14]execute_cgi path=json_proto method=POST [09:08:14]POST find Content-Length [09:08:14]Host: 172.17.45.132:8080 [09:08:14]Content-Length: 690 [09:08:14]Content-Type: application/json [09:08:14] [09:08:14]POST finish read [09:08:14]Found Content-Length = 690 [09:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126779", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:14]execute_script... [09:08:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126779", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:14]POST & json_proto [09:08:14]process_json_proto [09:08:14]json parsed OK: [09:08:14]protocol is kg_v1.0 [09:08:14]action value=close_receipt [09:08:14]process_action close_receipt [09:08:14]cmd_close_receipt [09:08:14]MH_GetDate [09:08:14]Write to MH i2c: F0 00 00 7E 47 B4 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 09 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 09 00 7E 47 00 06 FF A9 66 E3 0B 90 66 B5 [09:08:14]GetLastDocTimeStamp 1722416156 [09:08:14]current date 1722416902 [09:08:14]FM_GetShiftState [09:08:14]SAM_PROTO_GetShiftState [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 01 00 [09:08:14]Write to MH i2c: E2 08 00 7F 47 80 13 01 00 00 00 00 00 43 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 7F 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 10 [09:08:14]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetShiftState done [09:08:14]FM_GetShiftState done [09:08:14]opened in 1722384689 [09:08:14]opened+sec_in_day 1722471089 [09:08:14]quantity*price = 12500 [09:08:14]sum+1 = 12501 [09:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 49 31.07.2024 09:08 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2596 ФПД: 235816246361576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090822&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2596&fm=235816246361576&tin=02508201610067®Number=0000000000189667&sum=12500 0 [09:08:15]StoreToDocumentArchive [09:08:15]shift 17 fd 2596 [09:08:15]save to /storage/0017/doc_00002596 [09:08:15]save last doc name /storage/0017/doc_00002596 to /storage/kkm_last_doc_name [09:08:15]save OK [09:08:15]Clear old archive folders... [09:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:08:15]tlvbuf is B6F7E8A0 [09:08:15]SAM_PROTO_ClearQueue [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 09 00 00 [09:08:15]Write to MH i2c: E2 08 00 8C 47 80 09 00 00 00 00 00 00 45 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 8C 47 00 90 00 47 [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_ClearQueue done [09:08:15]KKMCreateOFDPacket [09:08:15]OFDProtocolAddRootSTLVToBuf [09:08:15]FM_MakeSignedData [09:08:15]FM_MakeSignedData [09:08:15]SAM_PROTO_SignData [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 01 02 [09:08:15]Write to MH i2c: E2 08 00 8D 47 80 0D 01 02 00 00 00 00 4D [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 8D 47 00 90 00 48 [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=255 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 06 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:08:15]Write to MH i2c: E2 02 01 8E 47 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 06 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 26 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 8E 47 00 90 00 49 [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=53 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 0A 00 00 35 04 06 00 D6 79 3F 98 BD E8 [09:08:15]Write to MH i2c: E2 38 00 8F 47 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 0A 00 00 35 04 06 00 D6 79 3F 98 BD E8 00 00 47 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 8F 47 00 90 00 4A [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 03 02 [09:08:15]Write to MH i2c: E2 08 00 90 47 80 0D 03 02 00 00 00 00 52 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0B 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0B 00 90 47 00 4A F1 A6 19 9D 09 B3 C2 90 00 68 [09:08:15]RAPDU: 4A F1 A6 19 9D 09 B3 C2 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_SignData done [09:08:15]FM_MakeSignedData done [09:08:15]CreateOFDProtocolMessage [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 11 00 00 [09:08:15]Write to MH i2c: E2 08 00 91 47 80 11 00 00 00 00 00 00 52 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 91 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A2 [09:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:08:16]wFMCommunicate OK [09:08:16]CreateOFDProtocolMessage done [09:08:16]OFDSenderStorePacket 2596 [09:08:16]StoreOFDPacket docnum=2596 [09:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 83 24 32 01 2D BD 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 06 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 0A 00 00 35 04 06 00 D6 79 3F 98 BD E8 4A F1 A6 19 9D 09 B3 C2 [09:08:16]CheckFolder [09:08:16]dirname=/storage/ofd_packets [09:08:16]CheckFolder done [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00002596 [09:08:16]NVStorageSaveData ofd_packets/00002596 [09:08:16]File name is /storage/ofd_packets/00002596 [09:08:16]Write 344 bytes [09:08:16]NVStorageSaveData done [09:08:16]OFDSenderStorePacket done [09:08:16]KKMCreateOFDPacket done [09:08:16]NVStorageSaveData kkm_last_timestamp [09:08:16]File name is /storage/kkm_last_timestamp [09:08:16]Write 4 bytes [09:08:16]NVStorageSaveData done [09:08:16]ExternCall_PrintAddStr [09:08:16]wPrintStart [09:08:16]Write to MH i2c: 01 00 00 92 47 D9 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 92 47 00 00 00 00 00 FF 0F EE [09:08:16]RasterBufferAndPrint [09:08:16]line Счет N : (3)126779 [09:08:16]line ИНН: 02508201610067 [09:08:16]line Контрольно-Кассовый Чек [09:08:16]line ПРОДАЖА [09:08:16]line Товар: 4870202521247 [09:08:16]line Напиток MAXI чай 1,2 черн.персик [09:08:16]line 1.000 * 125.00 [09:08:16]line = 125.00 [09:08:16]line НДС 12% НСП 1% [09:08:16]line > о реализуемом товаре [09:08:16]line ИТОГО: 125.00 [09:08:16]line НСП 1% : 1.11 [09:08:16]line НДС 12% : 13.27 [09:08:16]line Наличными: 125.00 [09:08:16]line Безнал.: 0.00 [09:08:16]line Место: АЗС № 127 "Партнер Нефть" [09:08:16]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:08:16]line СНО: Общий режим [09:08:16]line Чек 49 31.07.2024 09:08 [09:08:16]line Смена: 17 ФФД: 1.0 [09:08:16]line ЗНМ: 0300000161 [09:08:16]line РНМ: 0000000000189667 [09:08:16]line Версия ККМ: v1.0 [09:08:16]line ФМ: 0000000002094248 [09:08:16]line ФД: 2596 [09:08:16]line ФПД: 235816246361576 [09:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090822&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2596&fm=235816246361576&tin=02508201610067®Number=0000000000189667&sum=12500 [09:08:16]line 0 [09:08:16]OFD Sender: Processing packet 2596 [packets to send 1, broken 0] [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00002596 [09:08:16]OFD Sender: To server: pG, [09:08:16]CommunicateWithHost lk.salyk.kg:30040 [09:08:16]ConnectInit lk.salyk.kg [09:08:16]written 0, free lines is 4095 [09:08:16]Connected sock=10 [09:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 83 24 32 01 2D BD 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 06 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 0A 00 00 35 04 06 00 D6 79 3F 98 BD E8 4A F1 A6 19 9D 09 B3 C2 [09:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C3 40 47 00 53 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 0A 00 00 F4 03 04 00 6D AA A9 66 B6 04 01 00 00 1A 21 7F 02 C0 E6 F3 BE [09:08:16]CommunicateWithHost err = 0 [09:08:16]CheckOFDResponse [09:08:16]1017 (14) - 77093643461234 [09:08:16]1041 (16) - 0000000002094248 [09:08:16]1040 (4) - 2596 [09:08:16]1012 (4) - 31.07.2024 03:07 [09:08:16]1206 (1) - 0 [09:08:16]OFD Sender: Remove packet 2596 [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00002596 [09:08:16]NVStorageDeleteData [09:08:16]Write to MH i2c: 01 00 00 BB 47 02 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 BB 47 00 00 00 00 00 04 0D 1A [09:08:16]RasterBufferAndPrint [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]written 0, free lines is 3341 [09:08:16]MH_Cut [09:08:16]Write to MH i2c: D1 01 00 C2 47 01 DB [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 C2 47 00 DA [09:08:16]Write to MH i2c: 01 00 00 C3 47 0A [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:17]OFD Sender: No OFD packet to send [09:08:17]*** Cut start [09:08:17]*** Partial cut [09:08:17]*** CUTSNS_PIN = 1 [09:08:17]*** CUTSNS_PIN = 0 [09:08:17]*** Brake cut motor [09:08:18]Read from MH i2c: 01 [09:08:18]MH_I2C_Read... [09:08:18]*** Stop cut motor [09:08:18]*** Cut end [09:08:18]Read from MH i2c: 01 07 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: 01 07 00 C3 47 00 00 00 00 00 FF 0F 1F [09:08:18]process_action close_receipt done [09:08:18]requested_data is exist [09:08:18]produce_requested_data [09:08:18]requested_item fm.sn is exist - process it [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 11 00 00 [09:08:18]Write to MH i2c: E2 08 00 C4 47 80 11 00 00 00 00 00 00 85 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 C4 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D5 [09:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:08:18]wFMCommunicate OK [09:08:18]requested_item fd.num is exist - process it [09:08:18]SAM_PROTO_GetFieldsCounters [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 13 00 00 [09:08:18]Write to MH i2c: E2 08 00 C5 47 80 13 00 00 00 00 00 00 88 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 62 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 62 00 C5 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 0A 00 00 0E 04 04 00 11 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 84 [09:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 0A 00 00 0E 04 04 00 11 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 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_GetFieldsCounters done [09:08:18]requested_item shift.num is exist - process it [09:08:18]requested_item shift.opened is exist - process it [09:08:18]req_shift_opened [09:08:18]FM_GetShiftState [09:08:18]SAM_PROTO_GetShiftState [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 13 01 00 [09:08:18]Write to MH i2c: E2 08 00 C6 47 80 13 01 00 00 00 00 00 8A [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 C6 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 57 [09:08:18]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_GetShiftState done [09:08:18]FM_GetShiftState done [09:08:18]req_shift_opened done [09:08:18]requested_item shift.open_date is exist - process it [09:08:18]req_shift_open_date [09:08:18]req_shift_open_date done [09:08:18]produce_requested_data done [09:08:18]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2596,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:08:18]process_action_free close_receipt [09:08:18]json_value_free [09:08:18]json_value_free done [09:08:18]process_json_proto returns [09:08:18]Send response to host [09:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2596,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:08:18]free response buf [09:08:18]execute_script done [09:08:18]execute_script returns [09:08:18]free content buf [09:08:18]Sock 7.Close socket [09:08:18]Sock 7.Thread stoped [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:02]accept exits with 9 [09:09:02]New connection [09:09:02]New thread 3067481444 created [09:09:02]Thread 3067624804 joined [09:09:02]Waiting for new connection... [09:09:02] Sock 9.Parse request [09:09:02]Sock 9.Check first char [09:09:02]Sock 9.First char is OK [09:09:02]request: POST /json_proto HTTP/1.0 [09:09:02]Method: POST [09:09:02]URL: /json_proto [09:09:02]Method is POST - this is cgi request [09:09:02]url: /json_proto [09:09:02]query_string will be loaded in cgi processing [09:09:02]execute_cgi json_proto POST (null) [09:09:02]execute_cgi path=json_proto method=POST [09:09:02]POST find Content-Length [09:09:02]Host: 172.17.45.132:8080 [09:09:02]Content-Length: 696 [09:09:02]Content-Type: application/json [09:09:02] [09:09:02]POST finish read [09:09:02]Found Content-Length = 696 [09:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126780", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:02]execute_script... [09:09:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126780", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:02]POST & json_proto [09:09:02]process_json_proto [09:09:02]json parsed OK: [09:09:02]protocol is kg_v1.0 [09:09:02]action value=close_receipt [09:09:02]process_action close_receipt [09:09:02]cmd_close_receipt [09:09:02]MH_GetDate [09:09:02]Write to MH i2c: F0 00 00 C7 47 FD [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: F0 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: F0 09 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: F0 09 00 C7 47 00 36 FF A9 66 E3 0B 90 66 2E [09:09:02]GetLastDocTimeStamp 1722416902 [09:09:02]current date 1722416950 [09:09:02]FM_GetShiftState [09:09:02]SAM_PROTO_GetShiftState [09:09:02]wFMCommunicate request_size=4 [09:09:02]MH_SAM_APDU [09:09:02]CAPDU: 80 13 01 00 [09:09:02]Write to MH i2c: E2 08 00 C8 47 80 13 01 00 00 00 00 00 8C [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:02]Read from MH i2c: E2 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 0E 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 0E 00 C8 47 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 59 [09:09:02]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:09:02]wFMCommunicate OK [09:09:02]SAM_PROTO_GetShiftState done [09:09:02]FM_GetShiftState done [09:09:02]opened in 1722384689 [09:09:02]opened+sec_in_day 1722471089 [09:09:02]quantity*price = 11000 [09:09:02]sum+1 = 11001 [09:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 50 31.07.2024 09:09 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2597 ФПД: 137464437120799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090910&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2597&fm=137464437120799&tin=02508201610067®Number=0000000000189667&sum=11000 0 [09:09:03]StoreToDocumentArchive [09:09:03]shift 17 fd 2597 [09:09:03]save to /storage/0017/doc_00002597 [09:09:03]save last doc name /storage/0017/doc_00002597 to /storage/kkm_last_doc_name [09:09:03]save OK [09:09:03]Clear old archive folders... [09:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=296 [09:09:03]tlvbuf is 009B5EB0 [09:09:03]SAM_PROTO_ClearQueue [09:09:03]wFMCommunicate request_size=4 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 09 00 00 [09:09:03]Write to MH i2c: E2 08 00 D5 47 80 09 00 00 00 00 00 00 8E [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 D5 47 00 90 00 90 [09:09:03]RAPDU: 90 00 [09:09:03]wFMCommunicate OK [09:09:03]SAM_PROTO_ClearQueue done [09:09:03]KKMCreateOFDPacket [09:09:03]OFDProtocolAddRootSTLVToBuf [09:09:03]FM_MakeSignedData [09:09:03]FM_MakeSignedData [09:09:03]SAM_PROTO_SignData [09:09:03]wFMCommunicate request_size=4 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 0D 01 02 [09:09:03]Write to MH i2c: E2 08 00 D6 47 80 0D 01 02 00 00 00 00 96 [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 D6 47 00 90 00 91 [09:09:03]RAPDU: 90 00 [09:09:03]wFMCommunicate OK [09:09:03]wFMCommunicate request_size=255 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 36 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [09:09:03]Write to MH i2c: E2 02 01 D7 47 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 36 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 9B [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 D7 47 00 90 00 92 [09:09:03]RAPDU: 90 00 [09:09:03]wFMCommunicate OK [09:09:03]wFMCommunicate request_size=55 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 0A 00 00 35 04 06 00 7D 05 EE F1 9F 1F [09:09:03]Write to MH i2c: E2 3A 00 D8 47 80 0D 02 02 32 00 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 0A 00 00 35 04 06 00 7D 05 EE F1 9F 1F 00 00 49 [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 03 00 D8 47 00 90 00 93 [09:09:03]RAPDU: 90 00 [09:09:03]wFMCommunicate OK [09:09:03]wFMCommunicate request_size=4 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 0D 03 02 [09:09:03]Write to MH i2c: E2 08 00 D9 47 80 0D 03 02 00 00 00 00 9B [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 0B 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 0B 00 D9 47 00 06 32 D9 5D B9 A1 62 11 90 00 D7 [09:09:03]RAPDU: 06 32 D9 5D B9 A1 62 11 90 00 [09:09:03]wFMCommunicate OK [09:09:03]SAM_PROTO_SignData done [09:09:03]FM_MakeSignedData done [09:09:03]CreateOFDProtocolMessage [09:09:03]wFMCommunicate request_size=4 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 11 00 00 [09:09:03]Write to MH i2c: E2 08 00 DA 47 80 11 00 00 00 00 00 00 9B [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 17 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 17 00 DA 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EB [09:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:09:03]wFMCommunicate OK [09:09:03]CreateOFDProtocolMessage done [09:09:03]OFDSenderStorePacket 2597 [09:09:03]StoreOFDPacket docnum=2597 [09:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 43 E7 34 01 15 42 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 36 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 0A 00 00 35 04 06 00 7D 05 EE F1 9F 1F 06 32 D9 5D B9 A1 62 11 [09:09:03]CheckFolder [09:09:03]dirname=/storage/ofd_packets [09:09:03]CheckFolder done [09:09:03]ProducePacketName [09:09:03]name=ofd_packets/00002597 [09:09:03]NVStorageSaveData ofd_packets/00002597 [09:09:03]File name is /storage/ofd_packets/00002597 [09:09:03]Write 346 bytes [09:09:03]NVStorageSaveData done [09:09:03]OFDSenderStorePacket done [09:09:03]KKMCreateOFDPacket done [09:09:03]NVStorageSaveData kkm_last_timestamp [09:09:03]File name is /storage/kkm_last_timestamp [09:09:03]Write 4 bytes [09:09:03]NVStorageSaveData done [09:09:03]ExternCall_PrintAddStr [09:09:03]wPrintStart [09:09:03]Write to MH i2c: 01 00 00 DB 47 22 [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: 01 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: 01 07 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: 01 07 00 DB 47 00 00 00 00 00 FF 0F 37 [09:09:03]RasterBufferAndPrint [09:09:03]line Счет N : (3)126780 [09:09:03]line ИНН: 02508201610067 [09:09:03]line Контрольно-Кассовый Чек [09:09:03]line ПРОДАЖА [09:09:03]line Товар: 4870202521261 [09:09:03]line Напиток MAXI чай 1,2 лесные ягоды [09:09:03]line 1.000 * 110.00 [09:09:03]line = 110.00 [09:09:03]line НДС 12% НСП 1% [09:09:03]line > о реализуемом товаре [09:09:03]line ИТОГО: 110.00 [09:09:03]line НСП 1% : 0.97 [09:09:03]line НДС 12% : 11.68 [09:09:03]line Наличными: 110.00 [09:09:03]line Безнал.: 0.00 [09:09:03]line Место: АЗС № 127 "Партнер Нефть" [09:09:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:09:03]line СНО: Общий режим [09:09:03]line Чек 50 31.07.2024 09:09 [09:09:03]line Смена: 17 ФФД: 1.0 [09:09:03]line ЗНМ: 0300000161 [09:09:03]line РНМ: 0000000000189667 [09:09:03]line Версия ККМ: v1.0 [09:09:03]line ФМ: 0000000002094248 [09:09:03]line ФД: 2597 [09:09:03]line ФПД: 137464437120799 [09:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090910&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2597&fm=137464437120799&tin=02508201610067®Number=0000000000189667&sum=11000 [09:09:04]line 0 [09:09:04]OFD Sender: Processing packet 2597 [packets to send 1, broken 0] [09:09:04]ProducePacketName [09:09:04]name=ofd_packets/00002597 [09:09:04]OFD Sender: To server: pG, [09:09:04]CommunicateWithHost lk.salyk.kg:30040 [09:09:04]ConnectInit lk.salyk.kg [09:09:04]written 0, free lines is 4095 [09:09:04]Connected sock=10 [09:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 43 E7 34 01 15 42 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 36 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 0A 00 00 35 04 06 00 7D 05 EE F1 9F 1F 06 32 D9 5D B9 A1 62 11 [09:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1E DF 47 00 C6 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 0A 00 00 F4 03 04 00 9D AA A9 66 B6 04 01 00 00 C1 B0 55 AB 86 63 29 A9 [09:09:04]CommunicateWithHost err = 0 [09:09:04]CheckOFDResponse [09:09:04]1017 (14) - 77093643461234 [09:09:04]1041 (16) - 0000000002094248 [09:09:04]1040 (4) - 2597 [09:09:04]1012 (4) - 31.07.2024 03:08 [09:09:04]1206 (1) - 0 [09:09:04]OFD Sender: Remove packet 2597 [09:09:04]ProducePacketName [09:09:04]name=ofd_packets/00002597 [09:09:04]NVStorageDeleteData [09:09:04]Write to MH i2c: 01 00 00 04 48 4C [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 04 48 00 00 00 00 00 04 0D 64 [09:09:04]RasterBufferAndPrint [09:09:04]line [09:09:04]line [09:09:04]line [09:09:04]line [09:09:04]line [09:09:04]written 0, free lines is 3341 [09:09:04]MH_Cut [09:09:04]Write to MH i2c: D1 01 00 0B 48 01 25 [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D1 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D1 01 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D1 01 00 0B 48 00 24 [09:09:04]Write to MH i2c: 01 00 00 0C 48 54 [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:05]OFD Sender: No OFD packet to send [09:09:05]*** Cut start [09:09:05]*** Partial cut [09:09:05]*** CUTSNS_PIN = 1 [09:09:05]*** CUTSNS_PIN = 0 [09:09:05]*** Brake cut motor [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]*** Stop cut motor [09:09:05]*** Cut end [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 0C 48 00 00 00 00 00 FF 0F 69 [09:09:05]process_action close_receipt done [09:09:05]requested_data is exist [09:09:05]produce_requested_data [09:09:05]requested_item fm.sn is exist - process it [09:09:05]wFMCommunicate request_size=4 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 11 00 00 [09:09:05]Write to MH i2c: E2 08 00 0D 48 80 11 00 00 00 00 00 00 CF [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:06]Read from MH i2c: E2 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 17 00 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 17 00 0D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1F [09:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:09:06]wFMCommunicate OK [09:09:06]requested_item fd.num is exist - process it [09:09:06]SAM_PROTO_GetFieldsCounters [09:09:06]wFMCommunicate request_size=4 [09:09:06]MH_SAM_APDU [09:09:06]CAPDU: 80 13 00 00 [09:09:06]Write to MH i2c: E2 08 00 0E 48 80 13 00 00 00 00 00 00 D2 [09:09:06]Write i2c OK [09:09:06]MH_I2C_Read... [09:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:06]Read from MH i2c: E2 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 62 00 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 62 00 0E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 0A 00 00 0E 04 04 00 11 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 D2 [09:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 0A 00 00 0E 04 04 00 11 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 [09:09:06]wFMCommunicate OK [09:09:06]SAM_PROTO_GetFieldsCounters done [09:09:06]requested_item shift.num is exist - process it [09:09:06]requested_item shift.opened is exist - process it [09:09:06]req_shift_opened [09:09:06]FM_GetShiftState [09:09:06]SAM_PROTO_GetShiftState [09:09:06]wFMCommunicate request_size=4 [09:09:06]MH_SAM_APDU [09:09:06]CAPDU: 80 13 01 00 [09:09:06]Write to MH i2c: E2 08 00 0F 48 80 13 01 00 00 00 00 00 D4 [09:09:06]Write i2c OK [09:09:06]MH_I2C_Read... [09:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:06]Read from MH i2c: E2 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 0E 00 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: E2 0E 00 0F 48 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A1 [09:09:06]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:09:06]wFMCommunicate OK [09:09:06]SAM_PROTO_GetShiftState done [09:09:06]FM_GetShiftState done [09:09:06]req_shift_opened done [09:09:06]requested_item shift.open_date is exist - process it [09:09:06]req_shift_open_date [09:09:06]req_shift_open_date done [09:09:06]produce_requested_data done [09:09:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2597,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:09:06]process_action_free close_receipt [09:09:06]json_value_free [09:09:06]json_value_free done [09:09:06]process_json_proto returns [09:09:06]Send response to host [09:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2597,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:09:06]free response buf [09:09:06]execute_script done [09:09:06]execute_script returns [09:09:06]free content buf [09:09:06]Sock 9.Close socket [09:09:06]Sock 9.Thread stoped [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:10]accept exits with 7 [09:12:10]New connection [09:12:10]New thread 3067624804 created [09:12:10]Thread 3067481444 joined [09:12:10]Waiting for new connection... [09:12:10] Sock 7.Parse request [09:12:10]Sock 7.Check first char [09:12:10]Sock 7.First char is OK [09:12:10]request: POST /json_proto HTTP/1.0 [09:12:10]Method: POST [09:12:10]URL: /json_proto [09:12:10]Method is POST - this is cgi request [09:12:10]url: /json_proto [09:12:10]query_string will be loaded in cgi processing [09:12:10]execute_cgi json_proto POST (null) [09:12:10]execute_cgi path=json_proto method=POST [09:12:10]POST find Content-Length [09:12:10]Host: 172.17.45.132:8080 [09:12:10]Content-Length: 713 [09:12:10]Content-Type: application/json [09:12:10] [09:12:10]POST finish read [09:12:10]Found Content-Length = 713 [09:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126781", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:10]execute_script... [09:12: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 : (3)126781", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:10]POST & json_proto [09:12:10]process_json_proto [09:12:10]json parsed OK: [09:12:10]protocol is kg_v1.0 [09:12:10]action value=close_receipt [09:12:10]process_action close_receipt [09:12:10]cmd_close_receipt [09:12:10]MH_GetDate [09:12:10]Write to MH i2c: F0 00 00 10 48 47 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: F0 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: F0 09 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: F0 09 00 10 48 00 F2 FF A9 66 E3 0B 90 66 34 [09:12:10]GetLastDocTimeStamp 1722416950 [09:12:10]current date 1722417138 [09:12:10]FM_GetShiftState [09:12:10]SAM_PROTO_GetShiftState [09:12:10]wFMCommunicate request_size=4 [09:12:10]MH_SAM_APDU [09:12:10]CAPDU: 80 13 01 00 [09:12:10]Write to MH i2c: E2 08 00 11 48 80 13 01 00 00 00 00 00 D6 [09:12:10]Write i2c OK [09:12:10]MH_I2C_Read... [09:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:10]Read from MH i2c: E2 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 0E 00 [09:12:10]MH_I2C_Read... [09:12:10]Read from MH i2c: E2 0E 00 11 48 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A3 [09:12:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:12:10]wFMCommunicate OK [09:12:10]SAM_PROTO_GetShiftState done [09:12:10]FM_GetShiftState done [09:12:10]opened in 1722384689 [09:12:10]opened+sec_in_day 1722471089 [09:12:10]quantity*price = 6500 [09:12:10]sum+1 = 6501 [09:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 51 31.07.2024 09:12 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2598 ФПД: 4371473596354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2598&fm=4371473596354&tin=02508201610067®Number=0000000000189667&sum=6500 0 [09:12:11]StoreToDocumentArchive [09:12:11]shift 17 fd 2598 [09:12:11]save to /storage/0017/doc_00002598 [09:12:11]save last doc name /storage/0017/doc_00002598 to /storage/kkm_last_doc_name [09:12:11]save OK [09:12:11]Clear old archive folders... [09:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=304 [09:12:11]tlvbuf is 009309C0 [09:12:11]SAM_PROTO_ClearQueue [09:12:11]wFMCommunicate request_size=4 [09:12:11]MH_SAM_APDU [09:12:11]CAPDU: 80 09 00 00 [09:12:11]Write to MH i2c: E2 08 00 1E 48 80 09 00 00 00 00 00 00 D8 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:11]Read from MH i2c: E2 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 1E 48 00 90 00 DA [09:12:11]RAPDU: 90 00 [09:12:11]wFMCommunicate OK [09:12:11]SAM_PROTO_ClearQueue done [09:12:11]KKMCreateOFDPacket [09:12:11]OFDProtocolAddRootSTLVToBuf [09:12:11]FM_MakeSignedData [09:12:11]FM_MakeSignedData [09:12:11]SAM_PROTO_SignData [09:12:11]wFMCommunicate request_size=4 [09:12:11]MH_SAM_APDU [09:12:11]CAPDU: 80 0D 01 02 [09:12:11]Write to MH i2c: E2 08 00 1F 48 80 0D 01 02 00 00 00 00 E0 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:11]Read from MH i2c: E2 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 1F 48 00 90 00 DB [09:12:11]RAPDU: 90 00 [09:12:11]wFMCommunicate OK [09:12:11]wFMCommunicate request_size=255 [09:12:11]MH_SAM_APDU [09:12:11]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 F2 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 [09:12:11]Write to MH i2c: E2 02 01 20 48 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 F2 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 00 00 71 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:11]Read from MH i2c: E2 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 20 48 00 90 00 DC [09:12:11]RAPDU: 90 00 [09:12:11]wFMCommunicate OK [09:12:11]wFMCommunicate request_size=63 [09:12:11]MH_SAM_APDU [09:12:11]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 0A 00 00 35 04 06 00 03 F9 D0 21 7F C2 [09:12:11]Write to MH i2c: E2 42 00 21 48 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 0A 00 00 35 04 06 00 03 F9 D0 21 7F C2 00 00 94 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:11]Read from MH i2c: E2 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 [09:12:11]MH_I2C_Read... [09:12:11]Read from MH i2c: E2 03 00 21 48 00 90 00 DD [09:12:11]RAPDU: 90 00 [09:12:11]wFMCommunicate OK [09:12:11]wFMCommunicate request_size=4 [09:12:11]MH_SAM_APDU [09:12:11]CAPDU: 80 0D 03 02 [09:12:11]Write to MH i2c: E2 08 00 22 48 80 0D 03 02 00 00 00 00 E5 [09:12:11]Write i2c OK [09:12:11]MH_I2C_Read... [09:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:12]Read from MH i2c: E2 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 0B 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 0B 00 22 48 00 1A 32 FD 78 DB 08 FF C6 90 00 4F [09:12:12]RAPDU: 1A 32 FD 78 DB 08 FF C6 90 00 [09:12:12]wFMCommunicate OK [09:12:12]SAM_PROTO_SignData done [09:12:12]FM_MakeSignedData done [09:12:12]CreateOFDProtocolMessage [09:12:12]wFMCommunicate request_size=4 [09:12:12]MH_SAM_APDU [09:12:12]CAPDU: 80 11 00 00 [09:12:12]Write to MH i2c: E2 08 00 23 48 80 11 00 00 00 00 00 00 E5 [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:12]Read from MH i2c: E2 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 17 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 17 00 23 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 35 [09:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:12:12]wFMCommunicate OK [09:12:12]CreateOFDProtocolMessage done [09:12:12]OFDSenderStorePacket 2598 [09:12:12]StoreOFDPacket docnum=2598 [09:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 3C 26 3C 01 2A 0F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 F2 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 0A 00 00 35 04 06 00 03 F9 D0 21 7F C2 1A 32 FD 78 DB 08 FF C6 [09:12:12]CheckFolder [09:12:12]dirname=/storage/ofd_packets [09:12:12]CheckFolder done [09:12:12]ProducePacketName [09:12:12]name=ofd_packets/00002598 [09:12:12]NVStorageSaveData ofd_packets/00002598 [09:12:12]File name is /storage/ofd_packets/00002598 [09:12:12]Write 354 bytes [09:12:12]NVStorageSaveData done [09:12:12]OFDSenderStorePacket done [09:12:12]KKMCreateOFDPacket done [09:12:12]NVStorageSaveData kkm_last_timestamp [09:12:12]File name is /storage/kkm_last_timestamp [09:12:12]Write 4 bytes [09:12:12]NVStorageSaveData done [09:12:12]ExternCall_PrintAddStr [09:12:12]wPrintStart [09:12:12]Write to MH i2c: 01 00 00 24 48 6C [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 07 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 07 00 24 48 00 00 00 00 00 FF 0F 81 [09:12:12]RasterBufferAndPrint [09:12:12]line Счет N : (3)126781 [09:12:12]line ИНН: 02508201610067 [09:12:12]line Контрольно-Кассовый Чек [09:12:12]line ПРОДАЖА [09:12:12]line Товар: 4870001571023 [09:12:12]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [09:12:12]line 1.000 * 65.00 [09:12:12]line = 65.00 [09:12:12]line НДС 12% НСП 1% [09:12:12]line > о реализуемом товаре [09:12:12]line ИТОГО: 65.00 [09:12:12]line НСП 1% : 0.57 [09:12:12]line НДС 12% : 6.90 [09:12:12]line Наличными: 65.00 [09:12:12]line Безнал.: 0.00 [09:12:12]line Место: АЗС № 127 "Партнер Нефть" [09:12:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:12:12]line СНО: Общий режим [09:12:12]line Чек 51 31.07.2024 09:12 [09:12:12]line Смена: 17 ФФД: 1.0 [09:12:12]line ЗНМ: 0300000161 [09:12:12]line РНМ: 0000000000189667 [09:12:12]line Версия ККМ: v1.0 [09:12:12]line ФМ: 0000000002094248 [09:12:12]line ФД: 2598 [09:12:12]line ФПД: 4371473596354 [09:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2598&fm=4371473596354&tin=02508201610067®Number=0000000000189667&sum=6500 [09:12:12]line 0 [09:12:12]OFD Sender: Processing packet 2598 [packets to send 1, broken 0] [09:12:12]ProducePacketName [09:12:12]name=ofd_packets/00002598 [09:12:12]OFD Sender: To server: pG, [09:12:12]CommunicateWithHost lk.salyk.kg:30040 [09:12:12]ConnectInit lk.salyk.kg [09:12:12]written 0, free lines is 4095 [09:12:12]Connected sock=10 [09:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 3C 26 3C 01 2A 0F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 F2 FF A9 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 0A 00 00 35 04 06 00 03 F9 D0 21 7F C2 1A 32 FD 78 DB 08 FF C6 [09:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6F FE 47 00 D7 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 32 30 39 34 32 34 38 10 04 04 00 26 0A 00 00 F4 03 04 00 59 AB A9 66 B6 04 01 00 00 C3 CA 2E 7E F1 DA 5F C9 [09:12:12]CommunicateWithHost err = 0 [09:12:12]CheckOFDResponse [09:12:12]1017 (14) - 77093643461234 [09:12:12]1041 (16) - 0000000002094248 [09:12:12]1040 (4) - 2598 [09:12:12]1012 (4) - 31.07.2024 03:11 [09:12:12]1206 (1) - 0 [09:12:12]OFD Sender: Remove packet 2598 [09:12:12]ProducePacketName [09:12:12]name=ofd_packets/00002598 [09:12:12]NVStorageDeleteData [09:12:12]Write to MH i2c: 01 00 00 4D 48 95 [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 07 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: 01 07 00 4D 48 00 00 00 00 00 20 0D C9 [09:12:12]RasterBufferAndPrint [09:12:12]line [09:12:12]line [09:12:12]line [09:12:12]line [09:12:12]line [09:12:12]written 0, free lines is 3369 [09:12:12]MH_Cut [09:12:12]Write to MH i2c: D1 01 00 54 48 01 6E [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: D1 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: D1 01 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: D1 01 00 54 48 00 6D [09:12:12]Write to MH i2c: 01 00 00 55 48 9D [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:13]OFD Sender: No OFD packet to send [09:12:13]*** Cut start [09:12:13]*** Partial cut [09:12:13]*** CUTSNS_PIN = 1 [09:12:13]*** CUTSNS_PIN = 0 [09:12:13]*** Brake cut motor [09:12:14]Read from MH i2c: 01 [09:12:14]MH_I2C_Read... [09:12:14]*** Stop cut motor [09:12:14]*** Cut end [09:12:14]Read from MH i2c: 01 07 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: 01 07 00 55 48 00 00 00 00 00 FF 0F B2 [09:12:14]process_action close_receipt done [09:12:14]requested_data is exist [09:12:14]produce_requested_data [09:12:14]requested_item fm.sn is exist - process it [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 11 00 00 [09:12:14]Write to MH i2c: E2 08 00 56 48 80 11 00 00 00 00 00 00 18 [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 17 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 17 00 56 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 68 [09:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:12:14]wFMCommunicate OK [09:12:14]requested_item fd.num is exist - process it [09:12:14]SAM_PROTO_GetFieldsCounters [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 13 00 00 [09:12:14]Write to MH i2c: E2 08 00 57 48 80 13 00 00 00 00 00 00 1B [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 62 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 62 00 57 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 0A 00 00 0E 04 04 00 11 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 1F [09:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 0A 00 00 0E 04 04 00 11 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 [09:12:14]wFMCommunicate OK [09:12:14]SAM_PROTO_GetFieldsCounters done [09:12:14]requested_item shift.num is exist - process it [09:12:14]requested_item shift.opened is exist - process it [09:12:14]req_shift_opened [09:12:14]FM_GetShiftState [09:12:14]SAM_PROTO_GetShiftState [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 13 01 00 [09:12:14]Write to MH i2c: E2 08 00 58 48 80 13 01 00 00 00 00 00 1D [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 0E 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 0E 00 58 48 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 EA [09:12:14]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:12:14]wFMCommunicate OK [09:12:14]SAM_PROTO_GetShiftState done [09:12:14]FM_GetShiftState done [09:12:14]req_shift_opened done [09:12:14]requested_item shift.open_date is exist - process it [09:12:14]req_shift_open_date [09:12:14]req_shift_open_date done [09:12:14]produce_requested_data done [09:12:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2598,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:12:14]process_action_free close_receipt [09:12:14]json_value_free [09:12:14]json_value_free done [09:12:14]process_json_proto returns [09:12:14]Send response to host [09:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2598,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:12:14]free response buf [09:12:14]execute_script done [09:12:14]execute_script returns [09:12:14]free content buf [09:12:14]Sock 7.Close socket [09:12:14]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:08]accept exits with 9 [09:37:08]New connection [09:37:08]New thread 3067481444 created [09:37:08]Thread 3067624804 joined [09:37:08]Waiting for new connection... [09:37:08] Sock 9.Parse request [09:37:08]Sock 9.Check first char [09:37:08]Sock 9.First char is OK [09:37:08]request: POST /json_proto HTTP/1.0 [09:37:08]Method: POST [09:37:08]URL: /json_proto [09:37:08]Method is POST - this is cgi request [09:37:08]url: /json_proto [09:37:08]query_string will be loaded in cgi processing [09:37:08]execute_cgi json_proto POST (null) [09:37:08]execute_cgi path=json_proto method=POST [09:37:08]POST find Content-Length [09:37:08]Host: 172.17.45.132:8080 [09:37:08]Content-Length: 1173 [09:37:08]Content-Type: application/json [09:37:08] [09:37:08]POST finish read [09:37:08]Found Content-Length = 1173 [09:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)610982\u000A31.07.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 71.550 x 75.70\u000A\u0418\u0422\u041E\u0413: 5416.34\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:08]execute_script... [09:37:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)610982\u000A31.07.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 71.550 x 75.70\u000A\u0418\u0422\u041E\u0413: 5416.34\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:08]POST & json_proto [09:37:08]process_json_proto [09:37:08]json parsed OK: [09:37:08]protocol is kg_v1.0 [09:37:08]action value=print_text [09:37:08]process_action print_text [09:37:08]cmd_print_text [09:37:08]ExternCall_PrintAddStr [09:37:08]wPrintStart [09:37:08]Write to MH i2c: 01 00 00 59 48 A1 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 59 48 00 00 00 00 00 FF 0F B6 [09:37:08]RasterBufferAndPrint [09:37:08]line *****ТОВАРНЫЙ ЧЕК***** [09:37:08]line АЗС 127 [09:37:08]line Партнер нефть [09:37:08]line 02508201610067 [09:37:08]line Кассир : Аятов Д. [09:37:08]line Счет N : (1)610982 [09:37:08]line 31.07.2024 09:26 [09:37:08]line ПРОДАЖА [09:37:08]line ТРК (МРК, ГНК): 2 [09:37:08]line Вид ГСМ : 2710194210 [09:37:08]line ДТ-К-2 [09:37:08]line 71.550 x 75.70 [09:37:08]line ИТОГ: 5416.34 [09:37:08]line Тип оплаты: Талоны: Топливная Карта [09:37:08]line 99924 [09:37:08]line ______________________ [09:37:08]line (подпись) [09:37:08]written 0, free lines is 4095 [09:37:08]Write to MH i2c: 01 00 00 6D 48 B5 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 6D 48 00 00 00 00 00 0F 0E D9 [09:37:08]RasterBufferAndPrint [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]written 0, free lines is 3600 [09:37:08]MH_Cut [09:37:08]Write to MH i2c: D1 01 00 74 48 01 8E [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 74 48 00 8D [09:37:08]Write to MH i2c: 01 00 00 75 48 BD [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:09]*** Cut start [09:37:09]*** Partial cut [09:37:09]*** CUTSNS_PIN = 1 [09:37:09]*** CUTSNS_PIN = 0 [09:37:09]OFD Sender: No OFD packet to send [09:37:09]*** Brake cut motor [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]*** Stop cut motor [09:37:09]*** Cut end [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 75 48 00 00 00 00 00 FF 0F D2 [09:37:09]process_action print_text done [09:37:09]requested_data is exist [09:37:09]produce_requested_data [09:37:09]requested_item fm.sn is exist - process it [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 76 48 80 11 00 00 00 00 00 00 38 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 76 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 88 [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:37:09]wFMCommunicate OK [09:37:09]requested_item fd.num is exist - process it [09:37:09]SAM_PROTO_GetFieldsCounters [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 00 00 [09:37:09]Write to MH i2c: E2 08 00 77 48 80 13 00 00 00 00 00 00 3B [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 77 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 0A 00 00 0E 04 04 00 11 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 [09:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 0A 00 00 0E 04 04 00 11 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 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetFieldsCounters done [09:37:10]requested_item shift.num is exist - process it [09:37:10]requested_item shift.opened is exist - process it [09:37:10]req_shift_opened [09:37:10]FM_GetShiftState [09:37:10]SAM_PROTO_GetShiftState [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 01 00 [09:37:10]Write to MH i2c: E2 08 00 78 48 80 13 01 00 00 00 00 00 3D [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 78 48 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0A [09:37:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetShiftState done [09:37:10]FM_GetShiftState done [09:37:10]req_shift_opened done [09:37:10]requested_item shift.open_date is exist - process it [09:37:10]req_shift_open_date [09:37:10]req_shift_open_date done [09:37:10]produce_requested_data done [09:37:10]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2598,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:37:10]process_action_free print_text [09:37:10]json_value_free [09:37:10]json_value_free done [09:37:10]process_json_proto returns [09:37:10]Send response to host [09:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2598,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:37:10]free response buf [09:37:10]execute_script done [09:37:10]execute_script returns [09:37:10]free content buf [09:37:10]Sock 9.Close socket [09:37:10]Sock 9.Thread stoped [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:46:55]ConnectInit Can't connect to host [09:46:56]ConnectInit Can't take IP for lk.salyk.kg [09:46:56]CommunicateWithHost connect error [09:46:56]CommunicateWithHost err = -1 [09:46:56]OFD Sender: Server communicate error [09:47:01]OFD Sender: Processing packet 2599 [packets to send 2, broken 0] [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00002599 [09:47:01]OFD Sender: To server: pG, [09:47:01]CommunicateWithHost lk.salyk.kg:30040 [09:47:01]ConnectInit lk.salyk.kg [09:47:01]Connected sock=9 [09:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 DE BA 04 01 7D 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 3A 88 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EF 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 37 01 00 00 00 07 04 06 00 B0 71 0B 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 DA 07 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 0A 00 00 35 04 06 00 1A 5B A5 88 0D B3 40 0C 82 A3 8E DB 1F BE [09:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E4 A1 47 00 1F 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 0A 00 00 F4 03 04 00 82 B3 A9 66 B6 04 01 00 00 B2 24 49 1A 6B 6A 3F 1A [09:47:01]CommunicateWithHost err = 0 [09:47:01]CheckOFDResponse [09:47:01]1017 (14) - 77093643461234 [09:47:01]1041 (16) - 0000000002094248 [09:47:01]1040 (4) - 2599 [09:47:01]1012 (4) - 31.07.2024 03:46 [09:47:01]1206 (1) - 0 [09:47:01]OFD Sender: Remove packet 2599 [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00002599 [09:47:01]NVStorageDeleteData [09:47:02]OFD Sender: Processing packet 2600 [packets to send 1, broken 0] [09:47:02]ProducePacketName [09:47:02]name=ofd_packets/00002600 [09:47:02]OFD Sender: To server: pG, [09:47:02]CommunicateWithHost lk.salyk.kg:30040 [09:47:02]ConnectInit lk.salyk.kg [09:47:02]Connected sock=9 [09:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 29 1D 07 01 EA 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DE 07 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 0A 00 00 35 04 06 00 BC C3 48 15 59 0E 93 64 EC E9 0A 9B 13 B7 [09:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 48 7C 47 00 D2 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 0A 00 00 F4 03 04 00 83 B3 A9 66 B6 04 01 00 00 71 36 F9 A4 FC 63 EA 6A [09:47:02]CommunicateWithHost err = 0 [09:47:02]CheckOFDResponse [09:47:02]1017 (14) - 77093643461234 [09:47:02]1041 (16) - 0000000002094248 [09:47:02]1040 (4) - 2600 [09:47:02]1012 (4) - 31.07.2024 03:46 [09:47:02]1206 (1) - 0 [09:47:02]OFD Sender: Remove packet 2600 [09:47:02]ProducePacketName [09:47:02]name=ofd_packets/00002600 [09:47:02]NVStorageDeleteData [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:32]accept exits with 7 [09:47:32]New connection [09:47:32]New thread 3067624804 created [09:47:32]Thread 3067481444 joined [09:47:32]Waiting for new connection... [09:47:32] Sock 7.Parse request [09:47:32]Sock 7.Check first char [09:47:32]Sock 7.First char is OK [09:47:32]request: POST /json_proto HTTP/1.0 [09:47:32]Method: POST [09:47:32]URL: /json_proto [09:47:32]Method is POST - this is cgi request [09:47:32]url: /json_proto [09:47:32]query_string will be loaded in cgi processing [09:47:32]execute_cgi json_proto POST (null) [09:47:32]execute_cgi path=json_proto method=POST [09:47:32]POST find Content-Length [09:47:32]Host: 172.17.45.132:8080 [09:47:32]Content-Length: 678 [09:47:32]Content-Type: application/json [09:47:32] [09:47:32]POST finish read [09:47:32]Found Content-Length = 678 [09:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 15.860, "sum" : 1200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:32]execute_script... [09:47: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)610991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 15.860, "sum" : 1200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:32]POST & json_proto [09:47:32]process_json_proto [09:47:32]json parsed OK: [09:47:32]protocol is kg_v1.0 [09:47:32]action value=close_receipt [09:47:32]process_action close_receipt [09:47:32]cmd_close_receipt [09:47:32]MH_GetDate [09:47:32]Write to MH i2c: F0 00 00 18 49 50 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 09 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 09 00 18 49 00 3D 08 AA 66 E3 0B 90 66 92 [09:47:32]GetLastDocTimeStamp 1722419166 [09:47:32]current date 1722419261 [09:47:32]FM_GetShiftState [09:47:32]SAM_PROTO_GetShiftState [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 13 01 00 [09:47:32]Write to MH i2c: E2 08 00 19 49 80 13 01 00 00 00 00 00 DF [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 19 49 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 AC [09:47:32]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_GetShiftState done [09:47:32]FM_GetShiftState done [09:47:32]opened in 1722384689 [09:47:32]opened+sec_in_day 1722471089 [09:47:32]quantity*price = 120060 [09:47:32]sum+1 = 120061 [09:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 54 31.07.2024 09:47 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2601 ФПД: 198919631433317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T094741&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2601&fm=198919631433317&tin=02508201610067®Number=0000000000189667&sum=120000 [09:47:33]StoreToDocumentArchive [09:47:33]shift 17 fd 2601 [09:47:33]save to /storage/0017/doc_00002601 [09:47:33]save last doc name /storage/0017/doc_00002601 to /storage/kkm_last_doc_name [09:47:33]save OK [09:47:33]Clear old archive folders... [09:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:33]tlvbuf is 009BA170 [09:47:33]SAM_PROTO_ClearQueue [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 09 00 00 [09:47:33]Write to MH i2c: E2 08 00 26 49 80 09 00 00 00 00 00 00 E1 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 26 49 00 90 00 E3 [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_ClearQueue done [09:47:33]KKMCreateOFDPacket [09:47:33]OFDProtocolAddRootSTLVToBuf [09:47:33]FM_MakeSignedData [09:47:33]FM_MakeSignedData [09:47:33]SAM_PROTO_SignData [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 01 02 [09:47:33]Write to MH i2c: E2 08 00 27 49 80 0D 01 02 00 00 00 00 E9 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 27 49 00 90 00 E4 [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=255 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F4 3D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 FC D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3D 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 0A 00 00 35 04 06 00 B4 EA 95 F8 [09:47:33]Write to MH i2c: E2 02 01 28 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F4 3D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 FC D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3D 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 0A 00 00 35 04 06 00 B4 EA 95 F8 00 00 4A [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 28 49 00 90 00 E5 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]wFMCommunicate request_size=7 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 02 02 02 6E 65 [09:47:34]Write to MH i2c: E2 0A 00 29 49 80 0D 02 02 02 00 6E 65 00 00 C3 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 29 49 00 90 00 E6 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 03 02 [09:47:34]Write to MH i2c: E2 08 00 2A 49 80 0D 03 02 00 00 00 00 EE [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0B 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0B 00 2A 49 00 53 11 CA BD 16 49 C7 16 90 00 16 [09:47:34]RAPDU: 53 11 CA BD 16 49 C7 16 90 00 [09:47:34]wFMCommunicate OK [09:47:34]SAM_PROTO_SignData done [09:47:34]FM_MakeSignedData done [09:47:34]CreateOFDProtocolMessage [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 11 00 00 [09:47:34]Write to MH i2c: E2 08 00 2B 49 80 11 00 00 00 00 00 00 EE [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 2B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [09:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:47:34]wFMCommunicate OK [09:47:34]CreateOFDProtocolMessage done [09:47:34]OFDSenderStorePacket 2601 [09:47:34]StoreOFDPacket docnum=2601 [09:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 45 55 04 01 A8 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F4 3D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 FC D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3D 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 0A 00 00 35 04 06 00 B4 EA 95 F8 6E 65 53 11 CA BD 16 49 C7 16 [09:47:34]CheckFolder [09:47:34]dirname=/storage/ofd_packets [09:47:34]CheckFolder done [09:47:34]ProducePacketName [09:47:34]name=ofd_packets/00002601 [09:47:34]NVStorageSaveData ofd_packets/00002601 [09:47:34]File name is /storage/ofd_packets/00002601 [09:47:34]Write 298 bytes [09:47:34]NVStorageSaveData done [09:47:34]OFDSenderStorePacket done [09:47:34]KKMCreateOFDPacket done [09:47:34]NVStorageSaveData kkm_last_timestamp [09:47:34]File name is /storage/kkm_last_timestamp [09:47:34]Write 4 bytes [09:47:34]NVStorageSaveData done [09:47:34]ExternCall_PrintAddStr [09:47:34]wPrintStart [09:47:34]Write to MH i2c: 01 00 00 2C 49 75 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 2C 49 00 00 00 00 00 FF 0F 8A [09:47:34]RasterBufferAndPrint [09:47:34]line Счет N : (1)610991 [09:47:34]line ИНН: 02508201610067 [09:47:34]line Контрольно-Кассовый Чек [09:47:34]line ПРОДАЖА [09:47:34]line ТРК (МРК, ГНК) : 2 [09:47:34]line Товар: 2710194210 [09:47:34]line ДТ-К-2 [09:47:34]line 15.860 * 75.70 [09:47:34]line = 1200.60 [09:47:34]line НДС 12% НСП 1% [09:47:34]line > о реализуемом товаре [09:47:34]line ОКРУГЛЕНИЕ: -0.60 [09:47:34]line ИТОГО: 1200.00 [09:47:34]line Внесено: 1200.00 [09:47:34]line СДАЧА: 0.00 [09:47:34]line НСП 1% : 10.62 [09:47:34]line НДС 12% : 127.50 [09:47:34]line Наличными: 1200.00 [09:47:34]line Безнал.: 0.00 [09:47:34]line Место: АЗС № 127 "Партнер Нефть" [09:47:34]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:47:34]line СНО: Общий режим [09:47:34]line Чек 54 31.07.2024 09:47 [09:47:34]line Смена: 17 ФФД: 1.0 [09:47:34]line ЗНМ: 0300000161 [09:47:34]line РНМ: 0000000000189667 [09:47:34]line Версия ККМ: v1.0 [09:47:34]line ФМ: 0000000002094248 [09:47:34]line ФД: 2601 [09:47:34]line ФПД: 198919631433317 [09:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T094741&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2601&fm=198919631433317&tin=02508201610067®Number=0000000000189667&sum=120000 [09:47:34]OFD Sender: Processing packet 2601 [packets to send 1, broken 0] [09:47:34]ProducePacketName [09:47:34]name=ofd_packets/00002601 [09:47:34]OFD Sender: To server: pG, [09:47:34]CommunicateWithHost lk.salyk.kg:30040 [09:47:34]ConnectInit lk.salyk.kg [09:47:34]written 0, free lines is 4095 [09:47:34]Connected sock=9 [09:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 45 55 04 01 A8 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F4 3D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 FC D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3D 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 0A 00 00 35 04 06 00 B4 EA 95 F8 6E 65 53 11 CA BD 16 49 C7 16 [09:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4E EF 47 00 0F 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 0A 00 00 F4 03 04 00 A3 B3 A9 66 B6 04 01 00 00 A7 67 F3 E8 33 4B A1 AF [09:47:35]CommunicateWithHost err = 0 [09:47:35]CheckOFDResponse [09:47:35]1017 (14) - 77093643461234 [09:47:35]1041 (16) - 0000000002094248 [09:47:35]1040 (4) - 2601 [09:47:35]1012 (4) - 31.07.2024 03:46 [09:47:35]1206 (1) - 0 [09:47:35]OFD Sender: Remove packet 2601 [09:47:35]ProducePacketName [09:47:35]name=ofd_packets/00002601 [09:47:35]NVStorageDeleteData [09:47:35]Write to MH i2c: 01 00 00 57 49 A0 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 57 49 00 00 00 00 00 02 0D B6 [09:47:35]RasterBufferAndPrint [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]written 0, free lines is 3339 [09:47:35]MH_Cut [09:47:35]Write to MH i2c: D1 01 00 5E 49 01 79 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 01 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 01 00 5E 49 00 78 [09:47:35]Write to MH i2c: 01 00 00 5F 49 A8 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]OFD Sender: No OFD packet to send [09:47:35]*** Cut start [09:47:35]*** Partial cut [09:47:35]*** CUTSNS_PIN = 1 [09:47:35]*** CUTSNS_PIN = 0 [09:47:36]*** Brake cut motor [09:47:36]Read from MH i2c: 01 [09:47:36]MH_I2C_Read... [09:47:36]*** Stop cut motor [09:47:36]*** Cut end [09:47:36]Read from MH i2c: 01 07 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 5F 49 00 00 00 00 00 FF 0F BD [09:47:36]process_action close_receipt done [09:47:36]requested_data is exist [09:47:36]produce_requested_data [09:47:36]requested_item fm.sn is exist - process it [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 11 00 00 [09:47:36]Write to MH i2c: E2 08 00 60 49 80 11 00 00 00 00 00 00 23 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 17 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 17 00 60 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [09:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:47:36]wFMCommunicate OK [09:47:36]requested_item fd.num is exist - process it [09:47:36]SAM_PROTO_GetFieldsCounters [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 13 00 00 [09:47:36]Write to MH i2c: E2 08 00 61 49 80 13 00 00 00 00 00 00 26 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 62 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 62 00 61 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 0A 00 00 0E 04 04 00 11 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 36 [09:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 0A 00 00 0E 04 04 00 11 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 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetFieldsCounters done [09:47:36]requested_item shift.num is exist - process it [09:47:36]requested_item shift.opened is exist - process it [09:47:36]req_shift_opened [09:47:36]FM_GetShiftState [09:47:36]SAM_PROTO_GetShiftState [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 13 01 00 [09:47:36]Write to MH i2c: E2 08 00 62 49 80 13 01 00 00 00 00 00 28 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 62 49 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 F5 [09:47:36]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetShiftState done [09:47:36]FM_GetShiftState done [09:47:36]req_shift_opened done [09:47:36]requested_item shift.open_date is exist - process it [09:47:36]req_shift_open_date [09:47:36]req_shift_open_date done [09:47:36]produce_requested_data done [09:47:36]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2601,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:47:36]process_action_free close_receipt [09:47:36]json_value_free [09:47:36]json_value_free done [09:47:36]process_json_proto returns [09:47:36]Send response to host [09:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2601,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:47:36]free response buf [09:47:36]execute_script done [09:47:36]execute_script returns [09:47:36]free content buf [09:47:36]Sock 7.Close socket [09:47:36]Sock 7.Thread stoped [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:53]accept exits with 10 [09:47:53]New connection [09:47:53]New thread 3067481444 created [09:47:53]Thread 3067624804 joined [09:47:53]Waiting for new connection... [09:47:53] Sock 10.Parse request [09:47:53]Sock 10.Check first char [09:47:53]Sock 10.First char is OK [09:47:53]request: POST /json_proto HTTP/1.0 [09:47:53]Method: POST [09:47:53]URL: /json_proto [09:47:53]Method is POST - this is cgi request [09:47:53]url: /json_proto [09:47:53]query_string will be loaded in cgi processing [09:47:53]execute_cgi json_proto POST (null) [09:47:53]execute_cgi path=json_proto method=POST [09:47:53]POST find Content-Length [09:47:53]Host: 172.17.45.132:8080 [09:47:53]Content-Length: 677 [09:47:53]Content-Type: application/json [09:47:53] [09:47:53]POST finish read [09:47:53]Found Content-Length = 677 [09:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [09:47:53]execute_script... [09:47: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)610989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [09:47:53]POST & json_proto [09:47:53]process_json_proto [09:47:53]json parsed OK: [09:47:53]protocol is kg_v1.0 [09:47:53]action value=close_receipt [09:47:53]process_action close_receipt [09:47:53]cmd_close_receipt [09:47:53]MH_GetDate [09:47:53]Write to MH i2c: F0 00 00 63 49 9B [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: F0 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: F0 09 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: F0 09 00 63 49 00 51 08 AA 66 E3 0B 90 66 F1 [09:47:53]GetLastDocTimeStamp 1722419261 [09:47:53]current date 1722419281 [09:47:53]FM_GetShiftState [09:47:53]SAM_PROTO_GetShiftState [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 13 01 00 [09:47:53]Write to MH i2c: E2 08 00 64 49 80 13 01 00 00 00 00 00 2A [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0E 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0E 00 64 49 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 F7 [09:47:53]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_GetShiftState done [09:47:53]FM_GetShiftState done [09:47:53]opened in 1722384689 [09:47:53]opened+sec_in_day 1722471089 [09:47:53]quantity*price = 25018 [09:47:53]sum+1 = 25019 [09:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 55 31.07.2024 09:48 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2602 ФПД: 78338617022902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T094801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2602&fm=78338617022902&tin=02508201610067®Number=0000000000189667&sum=25000 [09:47:54]StoreToDocumentArchive [09:47:54]shift 17 fd 2602 [09:47:54]save to /storage/0017/doc_00002602 [09:47:54]save last doc name /storage/0017/doc_00002602 to /storage/kkm_last_doc_name [09:47:54]save OK [09:47:54]Clear old archive folders... [09:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:54]tlvbuf is 008498E0 [09:47:54]SAM_PROTO_ClearQueue [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 09 00 00 [09:47:54]Write to MH i2c: E2 08 00 71 49 80 09 00 00 00 00 00 00 2C [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 71 49 00 90 00 2E [09:47:54]RAPDU: 90 00 [09:47:54]wFMCommunicate OK [09:47:54]SAM_PROTO_ClearQueue done [09:47:54]KKMCreateOFDPacket [09:47:54]OFDProtocolAddRootSTLVToBuf [09:47:54]FM_MakeSignedData [09:47:54]FM_MakeSignedData [09:47:54]SAM_PROTO_SignData [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 0D 01 02 [09:47:54]Write to MH i2c: E2 08 00 72 49 80 0D 01 02 00 00 00 00 34 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 72 49 00 90 00 2F [09:47:54]RAPDU: 90 00 [09:47:54]wFMCommunicate OK [09:47:54]wFMCommunicate request_size=255 [09:47:54]MH_SAM_APDU [09:47: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 32 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 37 00 00 00 F4 03 04 00 51 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 0A 00 00 35 04 06 00 47 [09:47:54]Write to MH i2c: E2 02 01 73 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 37 00 00 00 F4 03 04 00 51 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 0A 00 00 35 04 06 00 47 00 00 F3 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 73 49 00 90 00 30 [09:47:54]RAPDU: 90 00 [09:47:54]wFMCommunicate OK [09:47:54]wFMCommunicate request_size=10 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 0D 02 02 05 3F A1 70 99 B6 [09:47:54]Write to MH i2c: E2 0D 00 74 49 80 0D 02 02 05 00 3F A1 70 99 B6 00 00 E0 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 03 00 74 49 00 90 00 31 [09:47:54]RAPDU: 90 00 [09:47:54]wFMCommunicate OK [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 0D 03 02 [09:47:54]Write to MH i2c: E2 08 00 75 49 80 0D 03 02 00 00 00 00 39 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 0B 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 0B 00 75 49 00 27 4C 54 5F 6C 0D E5 3A 90 00 F8 [09:47:55]RAPDU: 27 4C 54 5F 6C 0D E5 3A 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_SignData done [09:47:55]FM_MakeSignedData done [09:47:55]CreateOFDProtocolMessage [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 11 00 00 [09:47:55]Write to MH i2c: E2 08 00 76 49 80 11 00 00 00 00 00 00 39 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 76 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [09:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:47:55]wFMCommunicate OK [09:47:55]CreateOFDProtocolMessage done [09:47:55]OFDSenderStorePacket 2602 [09:47:55]StoreOFDPacket docnum=2602 [09:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 42 E6 07 01 D0 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 32 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 37 00 00 00 F4 03 04 00 51 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 0A 00 00 35 04 06 00 47 3F A1 70 99 B6 27 4C 54 5F 6C 0D E5 3A [09:47:55]CheckFolder [09:47:55]dirname=/storage/ofd_packets [09:47:55]CheckFolder done [09:47:55]ProducePacketName [09:47:55]name=ofd_packets/00002602 [09:47:55]NVStorageSaveData ofd_packets/00002602 [09:47:55]File name is /storage/ofd_packets/00002602 [09:47:55]Write 301 bytes [09:47:55]NVStorageSaveData done [09:47:55]OFDSenderStorePacket done [09:47:55]KKMCreateOFDPacket done [09:47:55]NVStorageSaveData kkm_last_timestamp [09:47:55]File name is /storage/kkm_last_timestamp [09:47:55]Write 4 bytes [09:47:55]NVStorageSaveData done [09:47:55]ExternCall_PrintAddStr [09:47:55]wPrintStart [09:47:55]Write to MH i2c: 01 00 00 77 49 C0 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 77 49 00 00 00 00 00 FF 0F D5 [09:47:55]RasterBufferAndPrint [09:47:55]line Счет N : (1)610989 [09:47:55]line ИНН: 02508201610067 [09:47:55]line Контрольно-Кассовый Чек [09:47:55]line ПРОДАЖА [09:47:55]line ТРК (МРК, ГНК) : 32 [09:47:55]line Товар: 2710124130 [09:47:55]line Аи-92-К-2 [09:47:55]line 3.690 * 67.80 [09:47:55]line = 250.18 [09:47:55]line НДС 12% НСП 1% [09:47:55]line > о реализуемом товаре [09:47:55]line ОКРУГЛЕНИЕ: -0.18 [09:47:55]line ИТОГО: 250.00 [09:47:55]line Внесено: 250.00 [09:47:55]line СДАЧА: 0.00 [09:47:55]line НСП 1% : 2.21 [09:47:55]line НДС 12% : 26.57 [09:47:55]line Наличными: 250.00 [09:47:55]line Безнал.: 0.00 [09:47:55]line Место: АЗС № 127 "Партнер Нефть" [09:47:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:47:55]line СНО: Общий режим [09:47:55]line Чек 55 31.07.2024 09:48 [09:47:55]line Смена: 17 ФФД: 1.0 [09:47:55]line ЗНМ: 0300000161 [09:47:55]line РНМ: 0000000000189667 [09:47:55]line Версия ККМ: v1.0 [09:47:55]line ФМ: 0000000002094248 [09:47:55]line ФД: 2602 [09:47:55]line ФПД: 78338617022902 [09:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T094801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2602&fm=78338617022902&tin=02508201610067®Number=0000000000189667&sum=25000 [09:47:55]OFD Sender: Processing packet 2602 [packets to send 1, broken 0] [09:47:55]ProducePacketName [09:47:55]name=ofd_packets/00002602 [09:47:55]OFD Sender: To server: pG, [09:47:55]CommunicateWithHost lk.salyk.kg:30040 [09:47:55]ConnectInit lk.salyk.kg [09:47:55]written 0, free lines is 4095 [09:47:55]Connected sock=9 [09:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 42 E6 07 01 D0 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 32 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 37 00 00 00 F4 03 04 00 51 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 0A 00 00 35 04 06 00 47 3F A1 70 99 B6 27 4C 54 5F 6C 0D E5 3A [09:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 68 F9 47 00 64 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 0A 00 00 F4 03 04 00 B8 B3 A9 66 B6 04 01 00 00 23 B2 E6 EC 64 7A 2B 9A [09:47:55]CommunicateWithHost err = 0 [09:47:55]CheckOFDResponse [09:47:55]1017 (14) - 77093643461234 [09:47:55]1041 (16) - 0000000002094248 [09:47:55]1040 (4) - 2602 [09:47:55]1012 (4) - 31.07.2024 03:47 [09:47:55]1206 (1) - 0 [09:47:55]OFD Sender: Remove packet 2602 [09:47:55]ProducePacketName [09:47:55]name=ofd_packets/00002602 [09:47:55]NVStorageDeleteData [09:47:55]Write to MH i2c: 01 00 00 A2 49 EB [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 A2 49 00 00 00 00 00 FF 0C FD [09:47:55]RasterBufferAndPrint [09:47:55]line [09:47:55]line [09:47:55]line [09:47:55]line [09:47:55]line [09:47:55]written 0, free lines is 3333 [09:47:55]MH_Cut [09:47:55]Write to MH i2c: D1 01 00 A9 49 01 C4 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: D1 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: D1 01 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: D1 01 00 A9 49 00 C3 [09:47:55]Write to MH i2c: 01 00 00 AA 49 F3 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:56]OFD Sender: No OFD packet to send [09:47:56]*** Cut start [09:47:56]*** Partial cut [09:47:56]*** CUTSNS_PIN = 1 [09:47:56]*** CUTSNS_PIN = 0 [09:47:56]*** Brake cut motor [09:47:57]Read from MH i2c: 01 [09:47:57]MH_I2C_Read... [09:47:57]*** Stop cut motor [09:47:57]*** Cut end [09:47:57]Read from MH i2c: 01 07 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: 01 07 00 AA 49 00 00 00 00 00 FF 0F 08 [09:47:57]process_action close_receipt done [09:47:57]requested_data is exist [09:47:57]produce_requested_data [09:47:57]requested_item fm.sn is exist - process it [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 11 00 00 [09:47:57]Write to MH i2c: E2 08 00 AB 49 80 11 00 00 00 00 00 00 6E [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 17 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 17 00 AB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BE [09:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:47:57]wFMCommunicate OK [09:47:57]requested_item fd.num is exist - process it [09:47:57]SAM_PROTO_GetFieldsCounters [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 00 00 [09:47:57]Write to MH i2c: E2 08 00 AC 49 80 13 00 00 00 00 00 00 71 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 62 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 62 00 AC 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 0A 00 00 0E 04 04 00 11 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 85 [09:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 0A 00 00 0E 04 04 00 11 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 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetFieldsCounters done [09:47:57]requested_item shift.num is exist - process it [09:47:57]requested_item shift.opened is exist - process it [09:47:57]req_shift_opened [09:47:57]FM_GetShiftState [09:47:57]SAM_PROTO_GetShiftState [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 01 00 [09:47:57]Write to MH i2c: E2 08 00 AD 49 80 13 01 00 00 00 00 00 73 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 AD 49 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 40 [09:47:57]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetShiftState done [09:47:57]FM_GetShiftState done [09:47:57]req_shift_opened done [09:47:57]requested_item shift.open_date is exist - process it [09:47:57]req_shift_open_date [09:47:57]req_shift_open_date done [09:47:57]produce_requested_data done [09:47:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2602,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:47:57]process_action_free close_receipt [09:47:57]json_value_free [09:47:57]json_value_free done [09:47:57]process_json_proto returns [09:47:57]Send response to host [09:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2602,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:47:57]free response buf [09:47:57]execute_script done [09:47:57]execute_script returns [09:47:57]free content buf [09:47:57]Sock 10.Close socket [09:47:57]Sock 10.Thread stoped [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:54:35]ConnectInit Can't connect to host [09:54:37]OFD Sender: Processing packet 2603 [packets to send 6, broken 0] [09:54:37]ProducePacketName [09:54:37]name=ofd_packets/00002603 [09:54:37]OFD Sender: To server: pG, [09:54:37]CommunicateWithHost lk.salyk.kg:30040 [09:54:37]ConnectInit lk.salyk.kg [09:54:42]ConnectInit Can't take IP for lk.salyk.kg [09:54:42]CommunicateWithHost connect error [09:54:42]CommunicateWithHost err = -1 [09:54:42]OFD Sender: Server communicate error [09:54:47]OFD Sender: Processing packet 2603 [packets to send 6, broken 0] [09:54:47]ProducePacketName [09:54:47]name=ofd_packets/00002603 [09:54:47]OFD Sender: To server: pG, [09:54:47]CommunicateWithHost lk.salyk.kg:30040 [09:54:47]ConnectInit lk.salyk.kg [09:54:47]Connected sock=7 [09:54:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 66 27 3B 01 68 8F 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 BD 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 0A 00 00 35 04 06 00 5F F3 4A 70 ED D8 B3 E2 98 3C A0 86 51 A1 [09:54:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3E 88 47 00 05 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 32 30 39 34 32 34 38 10 04 04 00 2B 0A 00 00 F4 03 04 00 54 B5 A9 66 B6 04 01 00 00 4C 51 55 5B F9 38 96 56 [09:54:47]CommunicateWithHost err = 0 [09:54:47]CheckOFDResponse [09:54:47]1017 (14) - 77093643461234 [09:54:47]1041 (16) - 0000000002094248 [09:54:47]1040 (4) - 2603 [09:54:47]1012 (4) - 31.07.2024 03:53 [09:54:47]1206 (1) - 0 [09:54:47]OFD Sender: Remove packet 2603 [09:54:47]ProducePacketName [09:54:47]name=ofd_packets/00002603 [09:54:47]NVStorageDeleteData [09:54:48]OFD Sender: Processing packet 2604 [packets to send 5, broken 0] [09:54:48]ProducePacketName [09:54:48]name=ofd_packets/00002604 [09:54:48]OFD Sender: To server: pG, [09:54:48]CommunicateWithHost lk.salyk.kg:30040 [09:54:48]ConnectInit lk.salyk.kg [09:54:48]Connected sock=7 [09:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 5F 01 00 00 C6 7F 57 01 20 2D 5A 03 01 00 03 00 4B 01 1E 04 01 00 02 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D4 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 2B 0A 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 0A 00 00 35 04 06 00 99 9F FB 89 D8 37 10 8A 11 7A FA 97 BE 76 [09:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 21 4A 47 00 B5 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 32 30 39 34 32 34 38 10 04 04 00 2C 0A 00 00 F4 03 04 00 55 B5 A9 66 B6 04 01 00 00 30 3F 93 B0 14 E1 0E E2 [09:54:48]CommunicateWithHost err = 0 [09:54:48]CheckOFDResponse [09:54:48]1017 (14) - 77093643461234 [09:54:48]1041 (16) - 0000000002094248 [09:54:48]1040 (4) - 2604 [09:54:48]1012 (4) - 31.07.2024 03:53 [09:54:48]1206 (1) - 0 [09:54:48]OFD Sender: Remove packet 2604 [09:54:48]ProducePacketName [09:54:48]name=ofd_packets/00002604 [09:54:48]NVStorageDeleteData [09:54:49]OFD Sender: Processing packet 2605 [packets to send 4, broken 0] [09:54:49]ProducePacketName [09:54:49]name=ofd_packets/00002605 [09:54:49]OFD Sender: To server: pG, [09:54:49]CommunicateWithHost lk.salyk.kg:30040 [09:54:49]ConnectInit lk.salyk.kg [09:54:49]Connected sock=7 [09:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 5B A1 3B 01 CE 42 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D9 08 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 0A 00 00 35 04 06 00 1F 7B F5 F2 3D 50 F3 06 9B B1 1C 7F 90 9A [09:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7D 6B 47 00 FF 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 0A 00 00 F4 03 04 00 56 B5 A9 66 B6 04 01 00 00 63 90 09 B9 3A 3C C3 44 [09:54:49]CommunicateWithHost err = 0 [09:54:49]CheckOFDResponse [09:54:49]1017 (14) - 77093643461234 [09:54:49]1041 (16) - 0000000002094248 [09:54:49]1040 (4) - 2605 [09:54:49]1012 (4) - 31.07.2024 03:53 [09:54:49]1206 (1) - 0 [09:54:49]OFD Sender: Remove packet 2605 [09:54:49]ProducePacketName [09:54:49]name=ofd_packets/00002605 [09:54:49]NVStorageDeleteData [09:54:50]OFD Sender: Processing packet 2606 [packets to send 3, broken 0] [09:54:50]ProducePacketName [09:54:50]name=ofd_packets/00002606 [09:54:50]OFD Sender: To server: pG, [09:54:50]CommunicateWithHost lk.salyk.kg:30040 [09:54:50]ConnectInit lk.salyk.kg [09:54:50]Connected sock=7 [09:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B3 65 07 01 B6 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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 20 09 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 0A 00 00 35 04 06 00 58 B1 34 9D EE BF 9B A1 FD DB FB EE A2 36 [09:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2F F3 47 00 CD 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 32 30 39 34 32 34 38 10 04 04 00 2E 0A 00 00 F4 03 04 00 57 B5 A9 66 B6 04 01 00 00 80 10 0E 4E 2A F4 A3 CD [09:54:50]CommunicateWithHost err = 0 [09:54:50]CheckOFDResponse [09:54:50]1017 (14) - 77093643461234 [09:54:50]1041 (16) - 0000000002094248 [09:54:50]1040 (4) - 2606 [09:54:50]1012 (4) - 31.07.2024 03:53 [09:54:50]1206 (1) - 0 [09:54:50]OFD Sender: Remove packet 2606 [09:54:50]ProducePacketName [09:54:50]name=ofd_packets/00002606 [09:54:50]NVStorageDeleteData [09:54:51]OFD Sender: Processing packet 2607 [packets to send 2, broken 0] [09:54:51]ProducePacketName [09:54:51]name=ofd_packets/00002607 [09:54:51]OFD Sender: To server: pG, [09:54:51]CommunicateWithHost lk.salyk.kg:30040 [09:54:51]ConnectInit lk.salyk.kg [09:54:51]Connected sock=7 [09:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 4A 35 04 01 AD DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 3E 09 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 0A 00 00 35 04 06 00 1C 11 83 BD 95 2D 0B CF C8 D2 E6 AA A5 4E [09:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3C 13 47 00 20 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 0A 00 00 F4 03 04 00 58 B5 A9 66 B6 04 01 00 00 A2 14 DB BC 7E 06 09 47 [09:54:51]CommunicateWithHost err = 0 [09:54:51]CheckOFDResponse [09:54:51]1017 (14) - 77093643461234 [09:54:51]1041 (16) - 0000000002094248 [09:54:51]1040 (4) - 2607 [09:54:51]1012 (4) - 31.07.2024 03:54 [09:54:51]1206 (1) - 0 [09:54:51]OFD Sender: Remove packet 2607 [09:54:51]ProducePacketName [09:54:51]name=ofd_packets/00002607 [09:54:51]NVStorageDeleteData [09:54:52]OFD Sender: Processing packet 2608 [packets to send 1, broken 0] [09:54:52]ProducePacketName [09:54:52]name=ofd_packets/00002608 [09:54:52]OFD Sender: To server: pG, [09:54:52]CommunicateWithHost lk.salyk.kg:30040 [09:54:52]ConnectInit lk.salyk.kg [09:54:52]Connected sock=9 [09:54:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 5C CB 1F 01 B6 4E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B1 09 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 0A 00 00 35 04 06 00 D4 52 8E 7C F2 71 33 85 E3 CC 67 7E FF 3E [09:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CE EE 47 00 33 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 0A 00 00 F4 03 04 00 59 B5 A9 66 B6 04 01 00 00 1C EB 4B 70 72 4D 9A AF [09:54:52]CommunicateWithHost err = 0 [09:54:52]CheckOFDResponse [09:54:52]1017 (14) - 77093643461234 [09:54:52]1041 (16) - 0000000002094248 [09:54:52]1040 (4) - 2608 [09:54:52]1012 (4) - 31.07.2024 03:54 [09:54:52]1206 (1) - 0 [09:54:52]OFD Sender: Remove packet 2608 [09:54:52]ProducePacketName [09:54:52]name=ofd_packets/00002608 [09:54:52]NVStorageDeleteData [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:08]accept exits with 11 [09:59:08]New connection [09:59:08]New thread 3067624804 created [09:59:08]Thread 3067481444 joined [09:59:08]Waiting for new connection... [09:59:08] Sock 11.Parse request [09:59:08]Sock 11.Check first char [09:59:08]Sock 11.First char is OK [09:59:08]request: POST /json_proto HTTP/1.0 [09:59:08]Method: POST [09:59:08]URL: /json_proto [09:59:08]Method is POST - this is cgi request [09:59:08]url: /json_proto [09:59:08]query_string will be loaded in cgi processing [09:59:08]execute_cgi json_proto POST (null) [09:59:08]execute_cgi path=json_proto method=POST [09:59:08]POST find Content-Length [09:59:08]Host: 172.17.45.132:8080 [09:59:08]Content-Length: 1174 [09:59:08]Content-Type: application/json [09:59:08] [09:59:08]POST finish read [09:59:08]Found Content-Length = 1174 [09:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)610997\u000A31.07.2024 09:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]execute_script... [09:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)610997\u000A31.07.2024 09:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]POST & json_proto [09:59:08]process_json_proto [09:59:08]json parsed OK: [09:59:08]protocol is kg_v1.0 [09:59:08]action value=print_text [09:59:08]process_action print_text [09:59:08]cmd_print_text [09:59:08]ExternCall_PrintAddStr [09:59:08]wPrintStart [09:59:08]Write to MH i2c: 01 00 00 6C 4B B7 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 6C 4B 00 00 00 00 00 FF 0F CC [09:59:08]RasterBufferAndPrint [09:59:08]line *****ТОВАРНЫЙ ЧЕК***** [09:59:08]line АЗС 127 [09:59:08]line Партнер нефть [09:59:08]line 02508201610067 [09:59:08]line Кассир : Аятов Д. [09:59:08]line Счет N : (1)610997 [09:59:08]line 31.07.2024 09:48 [09:59:08]line ПРОДАЖА [09:59:08]line ТРК (МРК, ГНК): 2 [09:59:08]line Вид ГСМ : 2710194210 [09:59:08]line ДТ-К-2 [09:59:08]line 100.000 x 75.70 [09:59:08]line ИТОГ: 7570.00 [09:59:08]line Тип оплаты: Талоны: Топливная Карта [09:59:08]line 03008 [09:59:08]line ______________________ [09:59:08]line (подпись) [09:59:08]written 0, free lines is 4095 [09:59:08]Write to MH i2c: 01 00 00 80 4B CB [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 80 4B 00 00 00 00 00 0E 0E EE [09:59:08]RasterBufferAndPrint [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]written 0, free lines is 3600 [09:59:08]MH_Cut [09:59:08]Write to MH i2c: D1 01 00 87 4B 01 A4 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 87 4B 00 A3 [09:59:08]Write to MH i2c: 01 00 00 88 4B D3 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:09]*** Cut start [09:59:09]*** Partial cut [09:59:09]*** CUTSNS_PIN = 1 [09:59:09]*** CUTSNS_PIN = 0 [09:59:09]*** Brake cut motor [09:59:09]Read from MH i2c: 01 [09:59:09]MH_I2C_Read... [09:59:09]*** Stop cut motor [09:59:09]*** Cut end [09:59:09]Read from MH i2c: 01 07 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: 01 07 00 88 4B 00 00 00 00 00 FF 0F E8 [09:59:09]process_action print_text done [09:59:09]requested_data is exist [09:59:09]produce_requested_data [09:59:09]requested_item fm.sn is exist - process it [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 11 00 00 [09:59:09]Write to MH i2c: E2 08 00 89 4B 80 11 00 00 00 00 00 00 4E [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 89 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9E [09:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:59:09]wFMCommunicate OK [09:59:09]requested_item fd.num is exist - process it [09:59:09]SAM_PROTO_GetFieldsCounters [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 13 00 00 [09:59:09]Write to MH i2c: E2 08 00 8A 4B 80 13 00 00 00 00 00 00 51 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 62 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 62 00 8A 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 0A 00 00 0E 04 04 00 11 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 7D [09:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 0A 00 00 0E 04 04 00 11 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 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_GetFieldsCounters done [09:59:09]requested_item shift.num is exist - process it [09:59:09]requested_item shift.opened is exist - process it [09:59:09]req_shift_opened [09:59:09]FM_GetShiftState [09:59:09]SAM_PROTO_GetShiftState [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 13 01 00 [09:59:09]Write to MH i2c: E2 08 00 8B 4B 80 13 01 00 00 00 00 00 53 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0E 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0E 00 8B 4B 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 20 [09:59:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_GetShiftState done [09:59:09]FM_GetShiftState done [09:59:09]req_shift_opened done [09:59:09]requested_item shift.open_date is exist - process it [09:59:09]req_shift_open_date [09:59:09]req_shift_open_date done [09:59:09]produce_requested_data done [09:59:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2608,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [09:59:09]process_action_free print_text [09:59:09]json_value_free [09:59:09]json_value_free done [09:59:09]process_json_proto returns [09:59:09]Send response to host [09:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2608,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [09:59:09]free response buf [09:59:09]execute_script done [09:59:09]execute_script returns [09:59:09]free content buf [09:59:09]Sock 11.Close socket [09:59:09]Sock 11.Thread stoped [09:59:13]OFD Sender: No OFD packet to send [10:04:39]ConnectInit Can't connect to host [10:04:41]ConnectInit Can't take IP for lk.salyk.kg [10:04:41]CommunicateWithHost connect error [10:04:41]CommunicateWithHost err = -1 [10:04:41]OFD Sender: Server communicate error [10:04:46]OFD Sender: Processing packet 2609 [packets to send 1, broken 0] [10:04:46]ProducePacketName [10:04:46]name=ofd_packets/00002609 [10:04:46]OFD Sender: To server: pG, [10:04:46]CommunicateWithHost lk.salyk.kg:30040 [10:04:46]ConnectInit lk.salyk.kg [10:04:46]Connected sock=9 [10:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 47 3E 07 01 4E E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9A 0B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 0A 00 00 35 04 06 00 A6 77 02 1A 22 2D BA 8E E6 A5 7F AC 29 91 [10:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3D 39 47 00 BE 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 32 30 39 34 32 34 38 10 04 04 00 31 0A 00 00 F4 03 04 00 AB B7 A9 66 B6 04 01 00 00 BD 6A 5D B5 17 E0 F6 C7 [10:04:46]CommunicateWithHost err = 0 [10:04:46]CheckOFDResponse [10:04:46]1017 (14) - 77093643461234 [10:04:46]1041 (16) - 0000000002094248 [10:04:46]1040 (4) - 2609 [10:04:46]1012 (4) - 31.07.2024 04:03 [10:04:46]1206 (1) - 0 [10:04:46]OFD Sender: Remove packet 2609 [10:04:46]ProducePacketName [10:04:46]name=ofd_packets/00002609 [10:04:46]NVStorageDeleteData [10:04:47]OFD Sender: No OFD packet to send [10:16:38]ConnectInit Can't connect to host [10:16:42]ConnectInit Can't take IP for lk.salyk.kg [10:16:42]CommunicateWithHost connect error [10:16:42]CommunicateWithHost err = -1 [10:16:42]OFD Sender: Server communicate error [10:16:47]OFD Sender: Processing packet 2610 [packets to send 2, broken 0] [10:16:47]ProducePacketName [10:16:47]name=ofd_packets/00002610 [10:16:47]OFD Sender: To server: pG, [10:16:47]CommunicateWithHost lk.salyk.kg:30040 [10:16:47]ConnectInit lk.salyk.kg [10:16:47]Connected sock=7 [10:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 E3 8F 27 01 0F 6C 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 30 0D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 0A 00 00 35 04 06 00 DF CD A4 AE F8 80 72 8C 11 C9 3B D9 AE 36 [10:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9D 99 47 00 56 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 32 30 39 34 32 34 38 10 04 04 00 32 0A 00 00 F4 03 04 00 7C BA A9 66 B6 04 01 00 00 F9 48 12 22 B8 D9 4D DC [10:16:48]CommunicateWithHost err = 0 [10:16:48]CheckOFDResponse [10:16:48]1017 (14) - 77093643461234 [10:16:48]1041 (16) - 0000000002094248 [10:16:48]1040 (4) - 2610 [10:16:48]1012 (4) - 31.07.2024 04:15 [10:16:48]1206 (1) - 0 [10:16:48]OFD Sender: Remove packet 2610 [10:16:48]ProducePacketName [10:16:48]name=ofd_packets/00002610 [10:16:48]NVStorageDeleteData [10:16:48]OFD Sender: Processing packet 2611 [packets to send 1, broken 0] [10:16:48]ProducePacketName [10:16:48]name=ofd_packets/00002611 [10:16:48]OFD Sender: To server: pG, [10:16:48]CommunicateWithHost lk.salyk.kg:30040 [10:16:48]ConnectInit lk.salyk.kg [10:16:48]Connected sock=9 [10:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 51 09 04 01 17 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 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 38 EE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 EE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A BC 00 00 00 00 07 04 06 00 38 EE 06 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 8D 0D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 0A 00 00 35 04 06 00 0E 74 26 0C 73 13 43 F1 79 CC FA 11 0F 08 [10:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 70 28 47 00 0C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 0A 00 00 F4 03 04 00 7D BA A9 66 B6 04 01 00 00 66 CF A2 AE E3 ED 07 60 [10:16:49]CommunicateWithHost err = 0 [10:16:49]CheckOFDResponse [10:16:49]1017 (14) - 77093643461234 [10:16:49]1041 (16) - 0000000002094248 [10:16:49]1040 (4) - 2611 [10:16:49]1012 (4) - 31.07.2024 04:15 [10:16:49]1206 (1) - 0 [10:16:49]OFD Sender: Remove packet 2611 [10:16:49]ProducePacketName [10:16:49]name=ofd_packets/00002611 [10:16:49]NVStorageDeleteData [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:10]accept exits with 11 [10:20:10]New connection [10:20:10]New thread 3067624804 created [10:20:10]Thread 3067481444 joined [10:20:10]Waiting for new connection... [10:20:10] Sock 11.Parse request [10:20:10]Sock 11.Check first char [10:20:10]Sock 11.First char is OK [10:20:10]request: POST /json_proto HTTP/1.0 [10:20:10]Method: POST [10:20:10]URL: /json_proto [10:20:10]Method is POST - this is cgi request [10:20:10]url: /json_proto [10:20:10]query_string will be loaded in cgi processing [10:20:10]execute_cgi json_proto POST (null) [10:20:10]execute_cgi path=json_proto method=POST [10:20:10]POST find Content-Length [10:20:10]Host: 172.17.45.132:8080 [10:20:10]Content-Length: 793 [10:20:10]Content-Type: application/json [10:20:10] [10:20:10]POST finish read [10:20:10]Found Content-Length = 793 [10:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126786", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]execute_script... [10:20: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 : (3)126786", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]POST & json_proto [10:20:10]process_json_proto [10:20:10]json parsed OK: [10:20:10]protocol is kg_v1.0 [10:20:10]action value=close_receipt [10:20:10]process_action close_receipt [10:20:10]cmd_close_receipt [10:20:10]MH_GetDate [10:20:10]Write to MH i2c: F0 00 00 A6 4C E1 [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 A6 4C 00 E2 0F AA 66 E3 0B 90 66 CF [10:20:10]GetLastDocTimeStamp 1722420621 [10:20:10]current date 1722421218 [10:20:10]FM_GetShiftState [10:20:10]SAM_PROTO_GetShiftState [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 13 01 00 [10:20:10]Write to MH i2c: E2 08 00 A7 4C 80 13 01 00 00 00 00 00 70 [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 A7 4C 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3D [10:20:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [10:20:10]wFMCommunicate OK [10:20:10]SAM_PROTO_GetShiftState done [10:20:10]FM_GetShiftState done [10:20:10]opened in 1722384689 [10:20:10]opened+sec_in_day 1722471089 [10:20:10]quantity*price = 6000 [10:20:10]sum+1 = 6001 [10:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 65 31.07.2024 10:20 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2612 ФПД: 103490198168036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102018&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2612&fm=103490198168036&tin=02508201610067®Number=0000000000189667&sum=6000 0 [10:20:11]StoreToDocumentArchive [10:20:11]shift 17 fd 2612 [10:20:11]save to /storage/0017/doc_00002612 [10:20:11]save last doc name /storage/0017/doc_00002612 to /storage/kkm_last_doc_name [10:20:11]save OK [10:20:11]Clear old archive folders... [10:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:20:11]tlvbuf is 0091E320 [10:20:11]SAM_PROTO_ClearQueue [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 09 00 00 [10:20:11]Write to MH i2c: E2 08 00 B4 4C 80 09 00 00 00 00 00 00 72 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 B4 4C 00 90 00 74 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_ClearQueue done [10:20:11]KKMCreateOFDPacket [10:20:11]OFDProtocolAddRootSTLVToBuf [10:20:11]FM_MakeSignedData [10:20:11]FM_MakeSignedData [10:20:11]SAM_PROTO_SignData [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 01 02 [10:20:11]Write to MH i2c: E2 08 00 B5 4C 80 0D 01 02 00 00 00 00 7A [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 B5 4C 00 90 00 75 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=255 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:20:11]Write to MH i2c: E2 02 01 B6 4C 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 08 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 B6 4C 00 90 00 76 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=30 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 34 0A 00 00 35 04 06 00 5E 1F B0 7F E1 E4 [10:20:11]Write to MH i2c: E2 21 00 B7 4C 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 34 0A 00 00 35 04 06 00 5E 1F B0 7F E1 E4 00 00 22 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 B7 4C 00 90 00 77 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 03 02 [10:20:11]Write to MH i2c: E2 08 00 B8 4C 80 0D 03 02 00 00 00 00 7F [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 0B 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 0B 00 B8 4C 00 FF 4F A0 7F 55 D3 30 8D 90 00 D2 [10:20:11]RAPDU: FF 4F A0 7F 55 D3 30 8D 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_SignData done [10:20:11]FM_MakeSignedData done [10:20:11]CreateOFDProtocolMessage [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 11 00 00 [10:20:11]Write to MH i2c: E2 08 00 B9 4C 80 11 00 00 00 00 00 00 7F [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 17 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 17 00 B9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CF [10:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:20:11]wFMCommunicate OK [10:20:11]CreateOFDProtocolMessage done [10:20:11]OFDSenderStorePacket 2612 [10:20:11]StoreOFDPacket docnum=2612 [10:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 0B 3D 1B 01 BA F0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 0A 00 00 35 04 06 00 5E 1F B0 7F E1 E4 FF 4F A0 7F 55 D3 30 8D [10:20:11]CheckFolder [10:20:11]dirname=/storage/ofd_packets [10:20:11]CheckFolder done [10:20:11]ProducePacketName [10:20:11]name=ofd_packets/00002612 [10:20:11]NVStorageSaveData ofd_packets/00002612 [10:20:11]File name is /storage/ofd_packets/00002612 [10:20:11]Write 321 bytes [10:20:11]NVStorageSaveData done [10:20:11]OFDSenderStorePacket done [10:20:11]KKMCreateOFDPacket done [10:20:11]NVStorageSaveData kkm_last_timestamp [10:20:11]File name is /storage/kkm_last_timestamp [10:20:11]Write 4 bytes [10:20:11]NVStorageSaveData done [10:20:11]ExternCall_PrintAddStr [10:20:11]wPrintStart [10:20:11]Write to MH i2c: 01 00 00 BA 4C 06 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: 01 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: 01 07 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: 01 07 00 BA 4C 00 00 00 00 00 FF 0F 1B [10:20:11]RasterBufferAndPrint [10:20:11]line Счет N : (3)126786 [10:20:11]line ИНН: 02508201610067 [10:20:11]line Контрольно-Кассовый Чек [10:20:11]line ПРОДАЖА [10:20:11]line Товар: 4700000160204 [10:20:11]line Вода Легенда 1,5л [10:20:11]line 1.000 * 60.00 [10:20:11]line = 60.00 [10:20:11]line НДС 12% НСП 1% [10:20:11]line > о реализуемом товаре [10:20:11]line ИТОГО: 60.00 [10:20:11]line НСП 1% : 0.53 [10:20:11]line НДС 12% : 6.37 [10:20:11]line Наличными: 0.00 [10:20:11]line Безнал.: 60.00 [10:20:11]line Место: АЗС № 127 "Партнер Нефть" [10:20:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:20:11]line СНО: Общий режим [10:20:11]line Чек 65 31.07.2024 10:20 [10:20:11]line Смена: 17 ФФД: 1.0 [10:20:11]line ЗНМ: 0300000161 [10:20:11]line РНМ: 0000000000189667 [10:20:11]line Версия ККМ: v1.0 [10:20:11]line Платежная система: O! деньги [10:20:11]line ФМ: 0000000002094248 [10:20:11]line ФД: 2612 [10:20:11]line ФПД: 103490198168036 [10:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102018&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2612&fm=103490198168036&tin=02508201610067®Number=0000000000189667&sum=6000 [10:20:12]line 0 [10:20:12]OFD Sender: Processing packet 2612 [packets to send 1, broken 0] [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00002612 [10:20:12]OFD Sender: To server: pG, [10:20:12]CommunicateWithHost lk.salyk.kg:30040 [10:20:12]ConnectInit lk.salyk.kg [10:20:12]written 0, free lines is 4095 [10:20:12]Connected sock=9 [10:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 0B 3D 1B 01 BA F0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 0A 00 00 35 04 06 00 5E 1F B0 7F E1 E4 FF 4F A0 7F 55 D3 30 8D [10:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE C0 47 00 1F 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 0A 00 00 F4 03 04 00 49 BB A9 66 B6 04 01 00 00 5A 90 7F EB 64 62 54 7F [10:20:12]CommunicateWithHost err = 0 [10:20:12]CheckOFDResponse [10:20:12]1017 (14) - 77093643461234 [10:20:12]1041 (16) - 0000000002094248 [10:20:12]1040 (4) - 2612 [10:20:12]1012 (4) - 31.07.2024 04:19 [10:20:12]1206 (1) - 0 [10:20:12]OFD Sender: Remove packet 2612 [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00002612 [10:20:12]NVStorageDeleteData [10:20:12]Write to MH i2c: 01 00 00 E4 4C 30 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 E4 4C 00 00 00 00 00 FC 0C 3F [10:20:12]RasterBufferAndPrint [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]written 0, free lines is 3330 [10:20:12]MH_Cut [10:20:12]Write to MH i2c: D1 01 00 EB 4C 01 09 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 01 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 01 00 EB 4C 00 08 [10:20:12]Write to MH i2c: 01 00 00 EC 4C 38 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:13]OFD Sender: No OFD packet to send [10:20:13]*** Cut start [10:20:13]*** Partial cut [10:20:13]*** CUTSNS_PIN = 1 [10:20:13]*** CUTSNS_PIN = 0 [10:20:13]*** Brake cut motor [10:20:13]Read from MH i2c: 01 [10:20:13]MH_I2C_Read... [10:20:13]*** Stop cut motor [10:20:13]*** Cut end [10:20:13]Read from MH i2c: 01 07 00 [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: 01 07 00 EC 4C 00 00 00 00 00 FF 0F 4D [10:20:13]process_action close_receipt done [10:20:13]requested_data is exist [10:20:13]produce_requested_data [10:20:13]requested_item fm.sn is exist - process it [10:20:13]wFMCommunicate request_size=4 [10:20:13]MH_SAM_APDU [10:20:13]CAPDU: 80 11 00 00 [10:20:13]Write to MH i2c: E2 08 00 ED 4C 80 11 00 00 00 00 00 00 B3 [10:20:13]Write i2c OK [10:20:13]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 17 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 17 00 ED 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 03 [10:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:20:14]wFMCommunicate OK [10:20:14]requested_item fd.num is exist - process it [10:20:14]SAM_PROTO_GetFieldsCounters [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 13 00 00 [10:20:14]Write to MH i2c: E2 08 00 EE 4C 80 13 00 00 00 00 00 00 B6 [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 62 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 62 00 EE 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 0A 00 00 0E 04 04 00 11 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 F2 [10:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 0A 00 00 0E 04 04 00 11 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 [10:20:14]wFMCommunicate OK [10:20:14]SAM_PROTO_GetFieldsCounters done [10:20:14]requested_item shift.num is exist - process it [10:20:14]requested_item shift.opened is exist - process it [10:20:14]req_shift_opened [10:20:14]FM_GetShiftState [10:20:14]SAM_PROTO_GetShiftState [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 13 01 00 [10:20:14]Write to MH i2c: E2 08 00 EF 4C 80 13 01 00 00 00 00 00 B8 [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 EF 4C 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 85 [10:20:14]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [10:20:14]wFMCommunicate OK [10:20:14]SAM_PROTO_GetShiftState done [10:20:14]FM_GetShiftState done [10:20:14]req_shift_opened done [10:20:14]requested_item shift.open_date is exist - process it [10:20:14]req_shift_open_date [10:20:14]req_shift_open_date done [10:20:14]produce_requested_data done [10:20:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2612,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [10:20:14]process_action_free close_receipt [10:20:14]json_value_free [10:20:14]json_value_free done [10:20:14]process_json_proto returns [10:20:14]Send response to host [10:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2612,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [10:20:14]free response buf [10:20:14]execute_script done [10:20:14]execute_script returns [10:20:14]free content buf [10:20:14]Sock 11.Close socket [10:20:14]Sock 11.Thread stoped [10:20:15]accept exits with 7 [10:20:15]New connection [10:20:15]New thread 3067481444 created [10:20:15]Thread 3067624804 joined [10:20:15]Waiting for new connection... [10:20:15] Sock 7.Parse request [10:20:15]Sock 7.Check first char [10:20:15]Sock 7.First char is OK [10:20:15]request: POST /json_proto HTTP/1.0 [10:20:15]Method: POST [10:20:15]URL: /json_proto [10:20:15]Method is POST - this is cgi request [10:20:15]url: /json_proto [10:20:15]query_string will be loaded in cgi processing [10:20:15]execute_cgi json_proto POST (null) [10:20:15]execute_cgi path=json_proto method=POST [10:20:15]POST find Content-Length [10:20:15]Host: 172.17.45.132:8080 [10:20:15]Content-Length: 623 [10:20:15]Content-Type: application/json [10:20:15] [10:20:15]POST finish read [10:20:15]Found Content-Length = 623 [10:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126787", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:15]execute_script... [10:20: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 : (3)126787", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:15]POST & json_proto [10:20:15]process_json_proto [10:20:15]json parsed OK: [10:20:15]protocol is kg_v1.0 [10:20:15]action value=close_receipt [10:20:15]process_action close_receipt [10:20:15]cmd_close_receipt [10:20:15]MH_GetDate [10:20:15]Write to MH i2c: F0 00 00 F0 4C 2B [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 09 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 09 00 F0 4C 00 E7 0F AA 66 E3 0B 90 66 1E [10:20:15]GetLastDocTimeStamp 1722421218 [10:20:15]current date 1722421223 [10:20:15]FM_GetShiftState [10:20:15]SAM_PROTO_GetShiftState [10:20:15]wFMCommunicate request_size=4 [10:20:15]MH_SAM_APDU [10:20:15]CAPDU: 80 13 01 00 [10:20:15]Write to MH i2c: E2 08 00 F1 4C 80 13 01 00 00 00 00 00 BA [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:15]Read from MH i2c: E2 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 0E 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 0E 00 F1 4C 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 87 [10:20:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [10:20:15]wFMCommunicate OK [10:20:15]SAM_PROTO_GetShiftState done [10:20:15]FM_GetShiftState done [10:20:15]opened in 1722384689 [10:20:15]opened+sec_in_day 1722471089 [10:20:15]quantity*price = 14000 [10:20:15]sum+1 = 14001 [10:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 66 31.07.2024 10:20 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2613 ФПД: 263665320747489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102023&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2613&fm=263665320747489&tin=02508201610067®Number=0000000000189667&sum=14000 0 [10:20:16]StoreToDocumentArchive [10:20:16]shift 17 fd 2613 [10:20:16]save to /storage/0017/doc_00002613 [10:20:16]save last doc name /storage/0017/doc_00002613 to /storage/kkm_last_doc_name [10:20:16]save OK [10:20:16]Clear old archive folders... [10:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:20:16]tlvbuf is 008E9D60 [10:20:16]SAM_PROTO_ClearQueue [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 09 00 00 [10:20:16]Write to MH i2c: E2 08 00 FE 4C 80 09 00 00 00 00 00 00 BC [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 FE 4C 00 90 00 BE [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_ClearQueue done [10:20:16]KKMCreateOFDPacket [10:20:16]OFDProtocolAddRootSTLVToBuf [10:20:16]FM_MakeSignedData [10:20:16]FM_MakeSignedData [10:20:16]SAM_PROTO_SignData [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 01 02 [10:20:16]Write to MH i2c: E2 08 00 FF 4C 80 0D 01 02 00 00 00 00 C4 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 FF 4C 00 90 00 BF [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]wFMCommunicate request_size=255 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 E7 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [10:20:16]Write to MH i2c: E2 02 01 00 4D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 E7 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 BA [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 00 4D 00 90 00 C1 [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=34 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 0A 00 00 35 04 06 00 EF CD 5D C8 61 E1 [10:20:17]Write to MH i2c: E2 25 00 01 4D 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 0A 00 00 35 04 06 00 EF CD 5D C8 61 E1 00 00 E8 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 01 4D 00 90 00 C2 [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 03 02 [10:20:17]Write to MH i2c: E2 08 00 02 4D 80 0D 03 02 00 00 00 00 CA [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 02 4D 00 88 4C 6D 7F C9 52 B8 B0 90 00 0E [10:20:17]RAPDU: 88 4C 6D 7F C9 52 B8 B0 90 00 [10:20:17]wFMCommunicate OK [10:20:17]SAM_PROTO_SignData done [10:20:17]FM_MakeSignedData done [10:20:17]CreateOFDProtocolMessage [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 11 00 00 [10:20:17]Write to MH i2c: E2 08 00 03 4D 80 11 00 00 00 00 00 00 CA [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 17 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 17 00 03 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1A [10:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:20:17]wFMCommunicate OK [10:20:17]CreateOFDProtocolMessage done [10:20:17]OFDSenderStorePacket 2613 [10:20:17]StoreOFDPacket docnum=2613 [10:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 E4 6D 1F 01 F4 B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 E7 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 0A 00 00 35 04 06 00 EF CD 5D C8 61 E1 88 4C 6D 7F C9 52 B8 B0 [10:20:17]CheckFolder [10:20:17]dirname=/storage/ofd_packets [10:20:17]CheckFolder done [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00002613 [10:20:17]NVStorageSaveData ofd_packets/00002613 [10:20:17]File name is /storage/ofd_packets/00002613 [10:20:17]Write 325 bytes [10:20:17]NVStorageSaveData done [10:20:17]OFDSenderStorePacket done [10:20:17]KKMCreateOFDPacket done [10:20:17]NVStorageSaveData kkm_last_timestamp [10:20:17]File name is /storage/kkm_last_timestamp [10:20:17]Write 4 bytes [10:20:17]NVStorageSaveData done [10:20:17]ExternCall_PrintAddStr [10:20:17]wPrintStart [10:20:17]Write to MH i2c: 01 00 00 04 4D 51 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 04 4D 00 00 00 00 00 FF 0F 66 [10:20:17]RasterBufferAndPrint [10:20:17]line Счет N : (3)126787 [10:20:17]line ИНН: 02508201610067 [10:20:17]line Контрольно-Кассовый Чек [10:20:17]line ПРОДАЖА [10:20:17]line Товар: 48743587 [10:20:17]line Сигареты Winston XStyle Silver [10:20:17]line 1.000 * 140.00 [10:20:17]line = 140.00 [10:20:17]line НДС 12% НСП 1% [10:20:17]line > о реализуемом товаре [10:20:17]line ИТОГО: 140.00 [10:20:17]line НСП 1% : 1.24 [10:20:17]line НДС 12% : 14.87 [10:20:17]line Наличными: 140.00 [10:20:17]line Безнал.: 0.00 [10:20:17]line Место: АЗС № 127 "Партнер Нефть" [10:20:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:20:17]line СНО: Общий режим [10:20:17]line Чек 66 31.07.2024 10:20 [10:20:17]line Смена: 17 ФФД: 1.0 [10:20:17]line ЗНМ: 0300000161 [10:20:17]line РНМ: 0000000000189667 [10:20:17]line Версия ККМ: v1.0 [10:20:17]line ФМ: 0000000002094248 [10:20:17]line ФД: 2613 [10:20:17]line ФПД: 263665320747489 [10:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102023&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2613&fm=263665320747489&tin=02508201610067®Number=0000000000189667&sum=14000 [10:20:17]line 0 [10:20:17]written 0, free lines is 4095 [10:20:17]OFD Sender: Processing packet 2613 [packets to send 1, broken 0] [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00002613 [10:20:17]OFD Sender: To server: pG, [10:20:17]CommunicateWithHost lk.salyk.kg:30040 [10:20:17]ConnectInit lk.salyk.kg [10:20:17]Connected sock=10 [10:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 E4 6D 1F 01 F4 B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 E7 0F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 0A 00 00 35 04 06 00 EF CD 5D C8 61 E1 88 4C 6D 7F C9 52 B8 B0 [10:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EC C3 47 00 5D 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 32 30 39 34 32 34 38 10 04 04 00 35 0A 00 00 F4 03 04 00 4E BB A9 66 B6 04 01 00 00 65 26 Write to MH i2c: 01 00 00 2D 4D 7A [10:20:17]0E 43 D7 91 9F D6 [10:20:17]CommunicateWithHost err = 0 [10:20:17]CheckOFDResponse [10:20:17]1017 (14) - 77093643461234 [10:20:17]1041 (16) - 0000000002094248 [10:20:17]1040 (4) - 2613 [10:20:17]1012 (4) - 31.07.2024 04:19 [10:20:17]1206 (1) - 0 [10:20:17]OFD Sender: Remove packet 2613 [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00002613 [10:20:17]NVStorageDeleteData [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 2D 4D 00 00 00 00 00 0B 0D 99 [10:20:17]RasterBufferAndPrint [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]written 0, free lines is 3383 [10:20:17]MH_Cut [10:20:17]Write to MH i2c: D1 01 00 34 4D 01 53 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 01 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 01 00 34 4D 00 52 [10:20:17]Write to MH i2c: 01 00 00 35 4D 82 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:18]OFD Sender: No OFD packet to send [10:20:18]*** Cut start [10:20:18]*** Partial cut [10:20:18]*** CUTSNS_PIN = 1 [10:20:18]*** CUTSNS_PIN = 0 [10:20:18]*** Brake cut motor [10:20:19]Read from MH i2c: 01 [10:20:19]MH_I2C_Read... [10:20:19]*** Stop cut motor [10:20:19]*** Cut end [10:20:19]Read from MH i2c: 01 07 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: 01 07 00 35 4D 00 00 00 00 00 FF 0F 97 [10:20:19]process_action close_receipt done [10:20:19]requested_data is exist [10:20:19]produce_requested_data [10:20:19]requested_item fm.sn is exist - process it [10:20:19]wFMCommunicate request_size=4 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 11 00 00 [10:20:19]Write to MH i2c: E2 08 00 36 4D 80 11 00 00 00 00 00 00 FD [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 17 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 17 00 36 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4D [10:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:20:19]wFMCommunicate OK [10:20:19]requested_item fd.num is exist - process it [10:20:19]SAM_PROTO_GetFieldsCounters [10:20:19]wFMCommunicate request_size=4 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 13 00 00 [10:20:19]Write to MH i2c: E2 08 00 37 4D 80 13 00 00 00 00 00 00 00 [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 62 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 62 00 37 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 0A 00 00 0E 04 04 00 11 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 40 [10:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 0A 00 00 0E 04 04 00 11 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 [10:20:19]wFMCommunicate OK [10:20:19]SAM_PROTO_GetFieldsCounters done [10:20:19]requested_item shift.num is exist - process it [10:20:19]requested_item shift.opened is exist - process it [10:20:19]req_shift_opened [10:20:19]FM_GetShiftState [10:20:19]SAM_PROTO_GetShiftState [10:20:19]wFMCommunicate request_size=4 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 13 01 00 [10:20:19]Write to MH i2c: E2 08 00 38 4D 80 13 01 00 00 00 00 00 02 [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 0E 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 0E 00 38 4D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 CF [10:20:19]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [10:20:19]wFMCommunicate OK [10:20:19]SAM_PROTO_GetShiftState done [10:20:19]FM_GetShiftState done [10:20:19]req_shift_opened done [10:20:19]requested_item shift.open_date is exist - process it [10:20:19]req_shift_open_date [10:20:19]req_shift_open_date done [10:20:19]produce_requested_data done [10:20:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2613,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [10:20:19]process_action_free close_receipt [10:20:19]json_value_free [10:20:19]json_value_free done [10:20:19]process_json_proto returns [10:20:19]Send response to host [10:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2613,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [10:20:19]free response buf [10:20:19]execute_script done [10:20:19]execute_script returns [10:20:19]free content buf [10:20:19]Sock 7.Close socket [10:20:19]Sock 7.Thread stoped [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:35]accept exits with 9 [10:23:35]New connection [10:23:35]New thread 3067624804 created [10:23:35]Thread 3067481444 joined [10:23:35]Waiting for new connection... [10:23:35] Sock 9.Parse request [10:23:35]Sock 9.Check first char [10:23:35]Sock 9.First char is OK [10:23:35]request: POST /json_proto HTTP/1.0 [10:23:35]Method: POST [10:23:35]URL: /json_proto [10:23:35]Method is POST - this is cgi request [10:23:35]url: /json_proto [10:23:35]query_string will be loaded in cgi processing [10:23:35]execute_cgi json_proto POST (null) [10:23:35]execute_cgi path=json_proto method=POST [10:23:35]POST find Content-Length [10:23:35]Host: 172.17.45.132:8080 [10:23:35]Content-Length: 1177 [10:23:35]Content-Type: application/json [10:23:35] [10:23:35]POST finish read [10:23:35]Found Content-Length = 1177 [10:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611016\u000A31.07.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 30.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2034.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01203\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]execute_script... [10:23:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611016\u000A31.07.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 30.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2034.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01203\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]POST & json_proto [10:23:35]process_json_proto [10:23:35]json parsed OK: [10:23:35]protocol is kg_v1.0 [10:23:35]action value=print_text [10:23:35]process_action print_text [10:23:35]cmd_print_text [10:23:35]ExternCall_PrintAddStr [10:23:35]wPrintStart [10:23:35]Write to MH i2c: 01 00 00 39 4D 86 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 07 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 07 00 39 4D 00 00 00 00 00 FF 0F 9B [10:23:35]RasterBufferAndPrint [10:23:35]line *****ТОВАРНЫЙ ЧЕК***** [10:23:35]line АЗС 127 [10:23:35]line Партнер нефть [10:23:35]line 02508201610067 [10:23:35]line Кассир : Аятов Д. [10:23:35]line Счет N : (1)611016 [10:23:35]line 31.07.2024 10:12 [10:23:35]line ПРОДАЖА [10:23:35]line ТРК (МРК, ГНК): 62 [10:23:35]line Вид ГСМ : 2710124130 [10:23:35]line Аи-92-К-2 [10:23:35]line 30.000 x 67.80 [10:23:35]line ИТОГ: 2034.00 [10:23:35]line Тип оплаты: Талоны: Топливная Карта [10:23:35]line 01203 [10:23:35]line ______________________ [10:23:35]line (подпись) [10:23:35]written 0, free lines is 4095 [10:23:36]Write to MH i2c: 01 00 00 4D 4D 9A [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 07 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 07 00 4D 4D 00 00 00 00 00 0F 0E BE [10:23:36]RasterBufferAndPrint [10:23:36]line [10:23:36]line [10:23:36]line [10:23:36]line [10:23:36]line [10:23:36]written 0, free lines is 3600 [10:23:36]MH_Cut [10:23:36]Write to MH i2c: D1 01 00 54 4D 01 73 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: D1 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: D1 01 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: D1 01 00 54 4D 00 72 [10:23:36]Write to MH i2c: 01 00 00 55 4D A2 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** Cut start [10:23:36]*** Partial cut [10:23:36]*** CUTSNS_PIN = 1 [10:23:36]*** CUTSNS_PIN = 0 [10:23:36]*** Brake cut motor [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]*** Stop cut motor [10:23:37]*** Cut end [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 55 4D 00 00 00 00 00 FF 0F B7 [10:23:37]process_action print_text done [10:23:37]requested_data is exist [10:23:37]produce_requested_data [10:23:37]requested_item fm.sn is exist - process it [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 11 00 00 [10:23:37]Write to MH i2c: E2 08 00 56 4D 80 11 00 00 00 00 00 00 1D [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 56 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [10:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:23:37]wFMCommunicate OK [10:23:37]requested_item fd.num is exist - process it [10:23:37]SAM_PROTO_GetFieldsCounters [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 13 00 00 [10:23:37]Write to MH i2c: E2 08 00 57 4D 80 13 00 00 00 00 00 00 20 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 62 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 62 00 57 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 0A 00 00 0E 04 04 00 11 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 60 [10:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 0A 00 00 0E 04 04 00 11 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 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_GetFieldsCounters done [10:23:37]requested_item shift.num is exist - process it [10:23:37]requested_item shift.opened is exist - process it [10:23:37]req_shift_opened [10:23:37]FM_GetShiftState [10:23:37]SAM_PROTO_GetShiftState [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 13 01 00 [10:23:37]Write to MH i2c: E2 08 00 58 4D 80 13 01 00 00 00 00 00 22 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 58 4D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 EF [10:23:37]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_GetShiftState done [10:23:37]FM_GetShiftState done [10:23:37]req_shift_opened done [10:23:37]requested_item shift.open_date is exist - process it [10:23:37]req_shift_open_date [10:23:37]req_shift_open_date done [10:23:37]produce_requested_data done [10:23:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2613,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [10:23:37]process_action_free print_text [10:23:37]json_value_free [10:23:37]json_value_free done [10:23:37]process_json_proto returns [10:23:37]Send response to host [10:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2613,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [10:23:37]free response buf [10:23:37]execute_script done [10:23:37]execute_script returns [10:23:37]free content buf [10:23:37]Sock 9.Close socket [10:23:37]Sock 9.Thread stoped [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:26]ConnectInit Can't connect to host [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:47]ConnectInit Can't connect to host [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:36]recv_with_timeout no data received [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:55]recv_with_timeout no data received [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:40:55]ConnectInit Can't connect to host [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:47:00]ConnectInit Can't connect to host [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:56:19]ConnectInit Can't connect to host [11:02:21]SAM_PROTO_ClearQueue done [11:02:21]KKMCreateOFDPacket [11:02:21]OFDProtocolAddRootSTLVToBuf [11:02:21]FM_MakeSignedData [11:02:21]FM_MakeSignedData [11:02:21]SAM_PROTO_SignData [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 01 02 [11:02:21]Write to MH i2c: E2 08 00 9E 4F 80 0D 01 02 00 00 00 00 66 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 9E 4F 00 90 00 61 [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=255 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C4 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 [11:02:21]Write to MH i2c: E2 02 01 9F 4F 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C4 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 00 00 C1 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 9F 4F 00 90 00 62 [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=46 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 02 02 29 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 0A 00 00 35 04 06 00 E1 BA 3D CF DF BB [11:02:21]Write to MH i2c: E2 31 00 A0 4F 80 0D 02 02 29 00 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 0A 00 00 35 04 06 00 E1 BA 3D CF DF BB 00 00 7F [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 A0 4F 00 90 00 63 [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 03 02 [11:02:21]Write to MH i2c: E2 08 00 A1 4F 80 0D 03 02 00 00 00 00 6B [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0B 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0B 00 A1 4F 00 42 90 17 6C 8E 80 6B 7D 90 00 B7 [11:02:21]RAPDU: 42 90 17 6C 8E 80 6B 7D 90 00 [11:02:21]wFMCommunicate OK [11:02:21]SAM_PROTO_SignData done [11:02:21]FM_MakeSignedData done [11:02:21]CreateOFDProtocolMessage [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 11 00 00 [11:02:21]Write to MH i2c: E2 08 00 A2 4F 80 11 00 00 00 00 00 00 6B [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 A2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BB [11:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:02:21]wFMCommunicate OK [11:02:21]CreateOFDProtocolMessage done [11:02:21]OFDSenderStorePacket 2621 [11:02:21]StoreOFDPacket docnum=2621 [11:02:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 A6 BC 2B 01 56 D6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C4 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 0A 00 00 35 04 06 00 E1 BA 3D CF DF BB 42 90 17 6C 8E 80 6B 7D [11:02:21]CheckFolder [11:02:21]dirname=/storage/ofd_packets [11:02:21]CheckFolder done [11:02:21]ProducePacketName [11:02:21]name=ofd_packets/00002621 [11:02:21]NVStorageSaveData ofd_packets/00002621 [11:02:21]File name is /storage/ofd_packets/00002621 [11:02:21]Write 337 bytes [11:02:21]NVStorageSaveData done [11:02:21]OFDSenderStorePacket done [11:02:21]KKMCreateOFDPacket done [11:02:21]NVStorageSaveData kkm_last_timestamp [11:02:21]File name is /storage/kkm_last_timestamp [11:02:21]Write 4 bytes [11:02:21]NVStorageSaveData done [11:02:21]ExternCall_PrintAddStr [11:02:21]wPrintStart [11:02:21]Write to MH i2c: 01 00 00 A3 4F F2 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 07 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 07 00 A3 4F 00 00 00 00 00 FF 0F 07 [11:02:21]RasterBufferAndPrint [11:02:21]line Счет N : (3)126795 [11:02:21]line ИНН: 02508201610067 [11:02:21]line Контрольно-Кассовый Чек [11:02:21]line ПРОДАЖА [11:02:21]line Товар: 5449000189332 [11:02:21]line Холодный чай Fuse персик 1л [11:02:21]line 1.000 * 107.00 [11:02:21]line = 107.00 [11:02:21]line НДС 12% НСП 1% [11:02:21]line > о реализуемом товаре [11:02:21]line ИТОГО: 107.00 [11:02:21]line НСП 1% : 0.95 [11:02:21]line НДС 12% : 11.36 [11:02:21]line Наличными: 0.00 [11:02:21]line Безнал.: 107.00 [11:02:21]line Место: АЗС № 127 "Партнер Нефть" [11:02:21]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:02:21]line СНО: Общий режим [11:02:21]line Чек 74 31.07.2024 11:02 [11:02:21]line Смена: 17 ФФД: 1.0 [11:02:21]line ЗНМ: 0300000161 [11:02:21]line РНМ: 0000000000189667 [11:02:21]line Версия ККМ: v1.0 [11:02:21]line Платежная система: O! деньги [11:02:21]line ФМ: 0000000002094248 [11:02:21]line ФД: 2621 [11:02:21]line ФПД: 248190017200059 [11:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110228&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2621&fm=248190017200059&tin=02508201610067®Number=0000000000189667&sum=10700 [11:02:22]line 0 [11:02:22]OFD Sender: Processing packet 2614 [packets to send 8, broken 0] [11:02:22]ProducePacketName [11:02:22]name=ofd_packets/00002614 [11:02:22]OFD Sender: To server: pG, [11:02:22]CommunicateWithHost lk.salyk.kg:30040 [11:02:22]ConnectInit lk.salyk.kg [11:02:22]written 0, free lines is 4095 [11:02:22]Write to MH i2c: 01 00 00 CD 4F 1C [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 CD 4F 00 00 00 00 00 EA 0C 19 [11:02:22]RasterBufferAndPrint [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]written 0, free lines is 3312 [11:02:22]MH_Cut [11:02:22]Write to MH i2c: D1 01 00 D4 4F 01 F5 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 D4 4F 00 F4 [11:02:22]Write to MH i2c: 01 00 00 D5 4F 24 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:23]*** Cut start [11:02:23]*** Partial cut [11:02:23]*** CUTSNS_PIN = 1 [11:02:23]*** CUTSNS_PIN = 0 [11:02:23]*** Brake cut motor [11:02:23]Read from MH i2c: 01 [11:02:23]MH_I2C_Read... [11:02:23]*** Stop cut motor [11:02:23]*** Cut end [11:02:23]Read from MH i2c: 01 07 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 07 00 D5 4F 00 00 00 00 00 FF 0F 39 [11:02:23]process_action close_receipt done [11:02:23]requested_data is exist [11:02:23]produce_requested_data [11:02:23]requested_item fm.sn is exist - process it [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 11 00 00 [11:02:23]Write to MH i2c: E2 08 00 D6 4F 80 11 00 00 00 00 00 00 9F [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 17 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 17 00 D6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EF [11:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:02:24]wFMCommunicate OK [11:02:24]requested_item fd.num is exist - process it [11:02:24]SAM_PROTO_GetFieldsCounters [11:02:24]wFMCommunicate request_size=4 [11:02:24]MH_SAM_APDU [11:02:24]CAPDU: 80 13 00 00 [11:02:24]Write to MH i2c: E2 08 00 D7 4F 80 13 00 00 00 00 00 00 A2 [11:02:24]Write i2c OK [11:02:24]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 62 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 62 00 D7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 0A 00 00 0E 04 04 00 11 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 02 [11:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 0A 00 00 0E 04 04 00 11 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 [11:02:24]wFMCommunicate OK [11:02:24]SAM_PROTO_GetFieldsCounters done [11:02:24]requested_item shift.num is exist - process it [11:02:24]requested_item shift.opened is exist - process it [11:02:24]req_shift_opened [11:02:24]FM_GetShiftState [11:02:24]SAM_PROTO_GetShiftState [11:02:24]wFMCommunicate request_size=4 [11:02:24]MH_SAM_APDU [11:02:24]CAPDU: 80 13 01 00 [11:02:24]Write to MH i2c: E2 08 00 D8 4F 80 13 01 00 00 00 00 00 A4 [11:02:24]Write i2c OK [11:02:24]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 D8 4F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 71 [11:02:24]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:02:24]wFMCommunicate OK [11:02:24]SAM_PROTO_GetShiftState done [11:02:24]FM_GetShiftState done [11:02:24]req_shift_opened done [11:02:24]requested_item shift.open_date is exist - process it [11:02:24]req_shift_open_date [11:02:24]req_shift_open_date done [11:02:24]produce_requested_data done [11:02:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2621,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:02:24]process_action_free close_receipt [11:02:24]json_value_free [11:02:24]json_value_free done [11:02:24]process_json_proto returns [11:02:24]Send response to host [11:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2621,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:02:24]free response buf [11:02:24]execute_script done [11:02:24]execute_script returns [11:02:24]free content buf [11:02:24]Sock 11.Close socket [11:02:24]Sock 11.Thread stoped [11:02:25]ConnectInit Can't connect to host [11:02:27]ConnectInit Can't take IP for lk.salyk.kg [11:02:27]CommunicateWithHost connect error [11:02:27]CommunicateWithHost err = -1 [11:02:27]OFD Sender: Server communicate error [11:02:32]OFD Sender: Processing packet 2614 [packets to send 8, broken 0] [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00002614 [11:02:32]OFD Sender: To server: pG, [11:02:32]CommunicateWithHost lk.salyk.kg:30040 [11:02:32]ConnectInit lk.salyk.kg [11:02:32]Connected sock=7 [11:02:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 4A 0B 1E 01 75 C0 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BA 17 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 0A 00 00 35 04 06 00 A8 E8 6C C2 B0 FD 4E C9 12 D9 71 5C 8D B8 [11:02:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FB 5C 47 00 0F 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 0A 00 00 F4 03 04 00 35 C5 A9 66 B6 04 01 00 00 56 30 3B 6C 54 77 32 E2 [11:02:32]CommunicateWithHost err = 0 [11:02:32]CheckOFDResponse [11:02:32]1017 (14) - 77093643461234 [11:02:32]1041 (16) - 0000000002094248 [11:02:32]1040 (4) - 2614 [11:02:32]1012 (4) - 31.07.2024 05:01 [11:02:32]1206 (1) - 0 [11:02:32]OFD Sender: Remove packet 2614 [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00002614 [11:02:32]NVStorageDeleteData [11:02:33]OFD Sender: Processing packet 2615 [packets to send 7, broken 0] [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00002615 [11:02:33]OFD Sender: To server: pG, [11:02:33]CommunicateWithHost lk.salyk.kg:30040 [11:02:33]ConnectInit lk.salyk.kg [11:02:33]Connected sock=7 [11:02:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1D 02 00 00 7E E3 15 02 DA 3C 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FE 17 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 0A 00 00 35 04 06 00 CA B7 08 11 D2 88 68 16 FE 38 46 FC 06 D4 [11:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 42 43 47 00 ED 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 32 30 39 34 32 34 38 10 04 04 00 37 0A 00 00 F4 03 04 00 36 C5 A9 66 B6 04 01 00 00 07 5B 97 AE 40 9D 28 77 [11:02:33]CommunicateWithHost err = 0 [11:02:33]CheckOFDResponse [11:02:33]1017 (14) - 77093643461234 [11:02:33]1041 (16) - 0000000002094248 [11:02:33]1040 (4) - 2615 [11:02:33]1012 (4) - 31.07.2024 05:01 [11:02:33]1206 (1) - 0 [11:02:33]OFD Sender: Remove packet 2615 [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00002615 [11:02:33]NVStorageDeleteData [11:02:33]OFD Sender: Processing packet 2616 [packets to send 6, broken 0] [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00002616 [11:02:33]OFD Sender: To server: pG, [11:02:33]CommunicateWithHost lk.salyk.kg:30040 [11:02:33]ConnectInit lk.salyk.kg [11:02:34]Connected sock=7 [11:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 AF A0 22 01 01 66 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 01 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EF 18 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 0A 00 00 35 04 06 00 CB 5C 5D 5C C8 5F 8F 15 45 EA AB 25 1C CC [11:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 98 05 47 00 86 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 32 30 39 34 32 34 38 10 04 04 00 38 0A 00 00 F4 03 04 00 37 C5 A9 66 B6 04 01 00 00 3D FC 78 D3 67 B2 81 6E [11:02:34]CommunicateWithHost err = 0 [11:02:34]CheckOFDResponse [11:02:34]1017 (14) - 77093643461234 [11:02:34]1041 (16) - 0000000002094248 [11:02:34]1040 (4) - 2616 [11:02:34]1012 (4) - 31.07.2024 05:01 [11:02:34]1206 (1) - 0 [11:02:34]OFD Sender: Remove packet 2616 [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00002616 [11:02:34]NVStorageDeleteData [11:02:34]OFD Sender: Processing packet 2617 [packets to send 5, broken 0] [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00002617 [11:02:34]OFD Sender: To server: pG, [11:02:34]CommunicateWithHost lk.salyk.kg:30040 [11:02:34]ConnectInit lk.salyk.kg [11:02:34]Connected sock=7 [11:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CD 01 00 00 45 73 C5 01 50 A4 5A 03 01 00 03 00 B9 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 41 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3C 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 0A 00 00 35 04 06 00 03 AC 8F 7B 66 1C D2 6D 79 3F C3 C8 B0 22 [11:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8F 50 47 00 B4 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 0A 00 00 F4 03 04 00 38 C5 A9 66 B6 04 01 00 00 FA 2C FC 41 EB 72 13 E5 [11:02:35]CommunicateWithHost err = 0 [11:02:35]CheckOFDResponse [11:02:35]1017 (14) - 77093643461234 [11:02:35]1041 (16) - 0000000002094248 [11:02:35]1040 (4) - 2617 [11:02:35]1012 (4) - 31.07.2024 05:01 [11:02:35]1206 (1) - 0 [11:02:35]OFD Sender: Remove packet 2617 [11:02:35]ProducePacketName [11:02:35]name=ofd_packets/00002617 [11:02:35]NVStorageDeleteData [11:02:35]OFD Sender: Processing packet 2618 [packets to send 4, broken 0] [11:02:35]ProducePacketName [11:02:35]name=ofd_packets/00002618 [11:02:35]OFD Sender: To server: pG, [11:02:35]CommunicateWithHost lk.salyk.kg:30040 [11:02:35]ConnectInit lk.salyk.kg [11:02:35]Connected sock=7 [11:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 1F A2 21 01 89 C1 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6D 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 0A 00 00 35 04 06 00 3E 26 49 0A 6B FC 4A A7 55 C9 F8 D1 2C 5B [11:02:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 62 00 47 00 45 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 0A 00 00 F4 03 04 00 38 C5 A9 66 B6 04 01 00 00 E1 8A F9 BA 36 1D AE 98 [11:02:36]CommunicateWithHost err = 0 [11:02:36]CheckOFDResponse [11:02:36]1017 (14) - 77093643461234 [11:02:36]1041 (16) - 0000000002094248 [11:02:36]1040 (4) - 2618 [11:02:36]1012 (4) - 31.07.2024 05:01 [11:02:36]1206 (1) - 0 [11:02:36]OFD Sender: Remove packet 2618 [11:02:36]ProducePacketName [11:02:36]name=ofd_packets/00002618 [11:02:36]NVStorageDeleteData [11:02:36]OFD Sender: Processing packet 2619 [packets to send 3, broken 0] [11:02:36]ProducePacketName [11:02:36]name=ofd_packets/00002619 [11:02:36]OFD Sender: To server: pG, [11:02:36]CommunicateWithHost lk.salyk.kg:30040 [11:02:36]ConnectInit lk.salyk.kg [11:02:36]Connected sock=7 [11:02:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 99 02 00 00 DF 93 91 02 BB 9C 5A 03 01 00 03 00 85 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 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 96 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 0A 00 00 35 04 06 00 78 C7 98 FB 06 1D A8 61 C0 9A D3 41 1D 5F [11:02:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B3 5C 47 00 26 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 0A 00 00 F4 03 04 00 39 C5 A9 66 B6 04 01 00 00 A8 69 2E A8 B0 B1 87 75 [11:02:36]CommunicateWithHost err = 0 [11:02:36]CheckOFDResponse [11:02:36]1017 (14) - 77093643461234 [11:02:36]1041 (16) - 0000000002094248 [11:02:36]1040 (4) - 2619 [11:02:36]1012 (4) - 31.07.2024 05:01 [11:02:36]1206 (1) - 0 [11:02:36]OFD Sender: Remove packet 2619 [11:02:36]ProducePacketName [11:02:36]name=ofd_packets/00002619 [11:02:36]NVStorageDeleteData [11:02:37]OFD Sender: Processing packet 2620 [packets to send 2, broken 0] [11:02:37]ProducePacketName [11:02:37]name=ofd_packets/00002620 [11:02:37]OFD Sender: To server: pG, [11:02:37]CommunicateWithHost lk.salyk.kg:30040 [11:02:37]ConnectInit lk.salyk.kg [11:02:37]Connected sock=7 [11:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B8 01 00 00 53 61 B0 01 D7 45 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A9 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 0A 00 00 35 04 06 00 A1 4B 93 DB 9F FC 37 BF D2 57 85 A6 6F C6 [11:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 21 32 47 00 5B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 0A 00 00 F4 03 04 00 3A C5 A9 66 B6 04 01 00 00 60 A4 5D 62 90 18 44 3D [11:02:37]CommunicateWithHost err = 0 [11:02:37]CheckOFDResponse [11:02:37]1017 (14) - 77093643461234 [11:02:37]1041 (16) - 0000000002094248 [11:02:37]1040 (4) - 2620 [11:02:37]1012 (4) - 31.07.2024 05:01 [11:02:37]1206 (1) - 0 [11:02:37]OFD Sender: Remove packet 2620 [11:02:37]ProducePacketName [11:02:37]name=ofd_packets/00002620 [11:02:37]NVStorageDeleteData [11:02:38]OFD Sender: Processing packet 2621 [packets to send 1, broken 0] [11:02:38]ProducePacketName [11:02:38]name=ofd_packets/00002621 [11:02:38]OFD Sender: To server: pG, [11:02:38]CommunicateWithHost lk.salyk.kg:30040 [11:02:38]ConnectInit lk.salyk.kg [11:02:38]Connected sock=7 [11:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 A6 BC 2B 01 56 D6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C4 19 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 0A 00 00 35 04 06 00 E1 BA 3D CF DF BB 42 90 17 6C 8E 80 6B 7D [11:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0C BC 47 00 F9 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 32 30 39 34 32 34 38 10 04 04 00 3D 0A 00 00 F4 03 04 00 3B C5 A9 66 B6 04 01 00 00 6F BD EB 16 51 11 48 97 [11:02:38]CommunicateWithHost err = 0 [11:02:38]CheckOFDResponse [11:02:38]1017 (14) - 77093643461234 [11:02:38]1041 (16) - 0000000002094248 [11:02:38]1040 (4) - 2621 [11:02:38]1012 (4) - 31.07.2024 05:01 [11:02:38]1206 (1) - 0 [11:02:38]OFD Sender: Remove packet 2621 [11:02:38]ProducePacketName [11:02:38]name=ofd_packets/00002621 [11:02:38]NVStorageDeleteData [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:20]accept exits with 10 [11:03:20]New connection [11:03:20]New thread 3067481444 created [11:03:20]Thread 3067624804 joined [11:03:20]Waiting for new connection... [11:03:20] Sock 10.Parse request [11:03:20]Sock 10.Check first char [11:03:20]Sock 10.First char is OK [11:03:20]request: POST /json_proto HTTP/1.0 [11:03:20]Method: POST [11:03:20]URL: /json_proto [11:03:20]Method is POST - this is cgi request [11:03:20]url: /json_proto [11:03:20]query_string will be loaded in cgi processing [11:03:20]execute_cgi json_proto POST (null) [11:03:20]execute_cgi path=json_proto method=POST [11:03:20]POST find Content-Length [11:03:20]Host: 172.17.45.132:8080 [11:03:20]Content-Length: 999 [11:03:20]Content-Type: application/json [11:03:20] [11:03:20]POST finish read [11:03:20]Found Content-Length = 999 [11:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126796", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:20]execute_script... [11:03:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126796", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:20]POST & json_proto [11:03:20]process_json_proto [11:03:20]json parsed OK: [11:03:20]protocol is kg_v1.0 [11:03:20]action value=close_receipt [11:03:20]process_action close_receipt [11:03:20]cmd_close_receipt [11:03:20]MH_GetDate [11:03:20]Write to MH i2c: F0 00 00 D9 4F 17 [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 09 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 09 00 D9 4F 00 01 1A AA 66 E3 0B 90 66 2F [11:03:20]GetLastDocTimeStamp 1722423748 [11:03:20]current date 1722423809 [11:03:20]FM_GetShiftState [11:03:20]SAM_PROTO_GetShiftState [11:03:20]wFMCommunicate request_size=4 [11:03:20]MH_SAM_APDU [11:03:20]CAPDU: 80 13 01 00 [11:03:20]Write to MH i2c: E2 08 00 DA 4F 80 13 01 00 00 00 00 00 A6 [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:20]Read from MH i2c: E2 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: E2 0E 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: E2 0E 00 DA 4F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 73 [11:03:20]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:03:20]wFMCommunicate OK [11:03:20]SAM_PROTO_GetShiftState done [11:03:20]FM_GetShiftState done [11:03:20]opened in 1722384689 [11:03:20]opened+sec_in_day 1722471089 [11:03:20]quantity*price = 5500 [11:03:20]sum+1 = 5501 [11:03:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 75 31.07.2024 11:03 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2622 ФПД: 81777599007186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110329&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2622&fm=81777599007186&tin=02508201610067®Number=0000000000189667&sum=7000 0 [11:03:21]StoreToDocumentArchive [11:03:21]shift 17 fd 2622 [11:03:21]save to /storage/0017/doc_00002622 [11:03:21]save last doc name /storage/0017/doc_00002622 to /storage/kkm_last_doc_name [11:03:21]save OK [11:03:21]Clear old archive folders... [11:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=414 [11:03:21]tlvbuf is 0087C960 [11:03:21]SAM_PROTO_ClearQueue [11:03:21]wFMCommunicate request_size=4 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 09 00 00 [11:03:21]Write to MH i2c: E2 08 00 E7 4F 80 09 00 00 00 00 00 00 A8 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [11:03:21]RAPDU: 90 00 [11:03:21]wFMCommunicate OK [11:03:21]SAM_PROTO_ClearQueue done [11:03:21]KKMCreateOFDPacket [11:03:21]OFDProtocolAddRootSTLVToBuf [11:03:21]FM_MakeSignedData [11:03:21]FM_MakeSignedData [11:03:21]SAM_PROTO_SignData [11:03:21]wFMCommunicate request_size=4 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 0D 01 02 [11:03:21]Write to MH i2c: E2 08 00 E8 4F 80 0D 01 02 00 00 00 00 B0 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [11:03:21]RAPDU: 90 00 [11:03:21]wFMCommunicate OK [11:03:21]wFMCommunicate request_size=255 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [11:03:21]Write to MH i2c: E2 02 01 E9 4F 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 51 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 E9 4F 00 90 00 AC [11:03:21]RAPDU: 90 00 [11:03:21]wFMCommunicate OK [11:03:21]wFMCommunicate request_size=173 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 0A 00 00 35 04 06 00 4A 60 54 BD 49 D2 [11:03:21]Write to MH i2c: E2 B0 00 EA 4F 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 0A 00 00 35 04 06 00 4A 60 54 BD 49 D2 00 00 02 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 EA 4F 00 90 00 AD [11:03:22]RAPDU: 90 00 [11:03:22]wFMCommunicate OK [11:03:22]wFMCommunicate request_size=4 [11:03:22]MH_SAM_APDU [11:03:22]CAPDU: 80 0D 03 02 [11:03:22]Write to MH i2c: E2 08 00 EB 4F 80 0D 03 02 00 00 00 00 B5 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 0B 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 0B 00 EB 4F 00 2A B3 DB 58 B6 9C 49 A1 90 00 02 [11:03:22]RAPDU: 2A B3 DB 58 B6 9C 49 A1 90 00 [11:03:22]wFMCommunicate OK [11:03:22]SAM_PROTO_SignData done [11:03:22]FM_MakeSignedData done [11:03:22]CreateOFDProtocolMessage [11:03:22]wFMCommunicate request_size=4 [11:03:22]MH_SAM_APDU [11:03:22]CAPDU: 80 11 00 00 [11:03:22]Write to MH i2c: E2 08 00 EC 4F 80 11 00 00 00 00 00 00 B5 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 17 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 17 00 EC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 05 [11:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:03:22]wFMCommunicate OK [11:03:22]CreateOFDProtocolMessage done [11:03:22]OFDSenderStorePacket 2622 [11:03:22]StoreOFDPacket docnum=2622 [11:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B2 01 00 00 32 39 AA 01 91 4E 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 0A 00 00 35 04 06 00 4A 60 54 BD 49 D2 2A B3 DB 58 B6 9C 49 A1 [11:03:22]CheckFolder [11:03:22]dirname=/storage/ofd_packets [11:03:22]CheckFolder done [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00002622 [11:03:22]NVStorageSaveData ofd_packets/00002622 [11:03:22]File name is /storage/ofd_packets/00002622 [11:03:22]Write 464 bytes [11:03:22]NVStorageSaveData done [11:03:22]OFDSenderStorePacket done [11:03:22]KKMCreateOFDPacket done [11:03:22]NVStorageSaveData kkm_last_timestamp [11:03:22]File name is /storage/kkm_last_timestamp [11:03:22]Write 4 bytes [11:03:22]NVStorageSaveData done [11:03:22]ExternCall_PrintAddStr [11:03:22]wPrintStart [11:03:22]Write to MH i2c: 01 00 00 ED 4F 3C [11:03:22]OFD Sender: Processing packet 2622 [packets to send 1, broken 0] [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00002622 [11:03:22]OFD Sender: To server: pG, [11:03:22]CommunicateWithHost lk.salyk.kg:30040 [11:03:22]ConnectInit lk.salyk.kg [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 ED 4F 00 00 00 00 00 FF 0F 51 [11:03:22]RasterBufferAndPrint [11:03:22]line Счет N : (3)126796 [11:03:22]line ИНН: 02508201610067 [11:03:22]line Контрольно-Кассовый Чек [11:03:22]line ПРОДАЖА [11:03:22]line Товар: 4870227272605 [11:03:22]line Лимонад Sunbel Классический 0,5л [11:03:22]line 1.000 * 55.00 [11:03:22]line = 55.00 [11:03:22]line НДС 12% НСП 1% [11:03:22]line > о реализуемом товаре [11:03:22]line Товар: 4700000160099 [11:03:22]line Снек Курут индивидуальный [11:03:22]line 1.000 * 15.00 [11:03:22]line = 15.00 [11:03:22]line НДС 12% НСП 1% [11:03:22]line > о реализуемом товаре [11:03:22]line ИТОГО: 70.00 [11:03:22]line НСП 1% : 0.62 [11:03:22]line НДС 12% : 7.43 [11:03:22]line Наличными: 70.00 [11:03:22]line Безнал.: 0.00 [11:03:22]line Место: АЗС № 127 "Партнер Нефть" [11:03:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:03:22]line СНО: Общий режим [11:03:22]line Чек 75 31.07.2024 11:03 [11:03:22]line Смена: 17 ФФД: 1.0 [11:03:22]line ЗНМ: 0300000161 [11:03:22]line РНМ: 0000000000189667 [11:03:22]line Версия ККМ: v1.0 [11:03:22]line ФМ: 0000000002094248 [11:03:22]line ФД: 2622 [11:03:22]line ФПД: 81777599007186 [11:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110329&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2622&fm=81777599007186&tin=02508201610067®Number=0000000000189667&sum=7000 [11:03:22]line 0 [11:03:22]written 0, free lines is 4095 [11:03:22]Connected sock=9 [11:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B2 01 00 00 32 39 AA 01 91 4E 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 0A 00 00 35 04 06 00 4A 60 54 BD 49 D2 2A B3 DB 58 B6 9C 49 A1 [11:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 38 5F 47 00 07 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 0A 00 00 F4 03 04 00 67 C5 A9 66 B6 04 01 00 00 48 80 9D 38 03 7E 62 30 [11:03:22]CommunicateWithHost err = 0 [11:03:22]CheckOFDResponse [11:03:22]1017 (14) - 77093643461234 [11:03:22]1041 (16) - 0000000002094248 [11:03:22]1040 (4) - 2622 [11:03:22]1012 (4) - 31.07.2024 05:02 [11:03:22]1206 (1) - 0 [11:03:22]OFD Sender: Remove packet 2622 [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00002622 [11:03:22]NVStorageDeleteData [11:03:23]Write to MH i2c: 01 00 00 1C 50 6C [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 07 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 07 00 1C 50 00 00 00 00 00 AF 0C 2E [11:03:23]RasterBufferAndPrint [11:03:23]line [11:03:23]line [11:03:23]line [11:03:23]line [11:03:23]line [11:03:23]written 0, free lines is 3256 [11:03:23]MH_Cut [11:03:23]Write to MH i2c: D1 01 00 23 50 01 45 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: D1 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: D1 01 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: D1 01 00 23 50 00 44 [11:03:23]Write to MH i2c: 01 00 00 24 50 74 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]OFD Sender: No OFD packet to send [11:03:23]*** Cut start [11:03:23]*** Partial cut [11:03:23]*** CUTSNS_PIN = 1 [11:03:23]*** CUTSNS_PIN = 0 [11:03:24]*** Brake cut motor [11:03:24]Read from MH i2c: 01 [11:03:24]MH_I2C_Read... [11:03:24]*** Stop cut motor [11:03:24]*** Cut end [11:03:24]Read from MH i2c: 01 07 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: 01 07 00 24 50 00 00 00 00 00 FF 0F 89 [11:03:24]process_action close_receipt done [11:03:24]requested_data is exist [11:03:24]produce_requested_data [11:03:24]requested_item fm.sn is exist - process it [11:03:24]wFMCommunicate request_size=4 [11:03:24]MH_SAM_APDU [11:03:24]CAPDU: 80 11 00 00 [11:03:24]Write to MH i2c: E2 08 00 25 50 80 11 00 00 00 00 00 00 EF [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:24]Read from MH i2c: E2 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 17 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 17 00 25 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3F [11:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:03:24]wFMCommunicate OK [11:03:24]requested_item fd.num is exist - process it [11:03:24]SAM_PROTO_GetFieldsCounters [11:03:24]wFMCommunicate request_size=4 [11:03:24]MH_SAM_APDU [11:03:24]CAPDU: 80 13 00 00 [11:03:24]Write to MH i2c: E2 08 00 26 50 80 13 00 00 00 00 00 00 F2 [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:24]Read from MH i2c: E2 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 62 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 62 00 26 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 0A 00 00 0E 04 04 00 11 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 56 [11:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 0A 00 00 0E 04 04 00 11 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 [11:03:24]wFMCommunicate OK [11:03:24]SAM_PROTO_GetFieldsCounters done [11:03:24]requested_item shift.num is exist - process it [11:03:24]requested_item shift.opened is exist - process it [11:03:24]req_shift_opened [11:03:24]FM_GetShiftState [11:03:24]SAM_PROTO_GetShiftState [11:03:24]wFMCommunicate request_size=4 [11:03:24]MH_SAM_APDU [11:03:24]CAPDU: 80 13 01 00 [11:03:24]Write to MH i2c: E2 08 00 27 50 80 13 01 00 00 00 00 00 F4 [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:24]Read from MH i2c: E2 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 0E 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: E2 0E 00 27 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C1 [11:03:24]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:03:24]wFMCommunicate OK [11:03:24]SAM_PROTO_GetShiftState done [11:03:24]FM_GetShiftState done [11:03:24]req_shift_opened done [11:03:24]requested_item shift.open_date is exist - process it [11:03:24]req_shift_open_date [11:03:24]req_shift_open_date done [11:03:24]produce_requested_data done [11:03:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2622,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:03:24]process_action_free close_receipt [11:03:24]json_value_free [11:03:24]json_value_free done [11:03:24]process_json_proto returns [11:03:24]Send response to host [11:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2622,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:03:24]free response buf [11:03:24]execute_script done [11:03:24]execute_script returns [11:03:24]free content buf [11:03:24]Sock 10.Close socket [11:03:24]Sock 10.Thread stoped [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:53]accept exits with 7 [11:03:53]New connection [11:03:53]New thread 3067624804 created [11:03:53]Thread 3067481444 joined [11:03:53]Waiting for new connection... [11:03:53] Sock 7.Parse request [11:03:53]Sock 7.Check first char [11:03:53]Sock 7.First char is OK [11:03:53]request: POST /json_proto HTTP/1.0 [11:03:53]Method: POST [11:03:53]URL: /json_proto [11:03:53]Method is POST - this is cgi request [11:03:53]url: /json_proto [11:03:53]query_string will be loaded in cgi processing [11:03:53]execute_cgi json_proto POST (null) [11:03:53]execute_cgi path=json_proto method=POST [11:03:53]POST find Content-Length [11:03:53]Host: 172.17.45.132:8080 [11:03:53]Content-Length: 682 [11:03:53]Content-Type: application/json [11:03:53] [11:03:53]POST finish read [11:03:53]Found Content-Length = 682 [11:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:53]execute_script... [11:03: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)611049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:53]POST & json_proto [11:03:53]process_json_proto [11:03:53]json parsed OK: [11:03:53]protocol is kg_v1.0 [11:03:53]action value=close_receipt [11:03:53]process_action close_receipt [11:03:53]cmd_close_receipt [11:03:53]MH_GetDate [11:03:53]Write to MH i2c: F0 00 00 28 50 67 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: F0 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: F0 09 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: F0 09 00 28 50 00 22 1A AA 66 E3 0B 90 66 A0 [11:03:53]GetLastDocTimeStamp 1722423809 [11:03:53]current date 1722423842 [11:03:53]FM_GetShiftState [11:03:53]SAM_PROTO_GetShiftState [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 01 00 [11:03:53]Write to MH i2c: E2 08 00 29 50 80 13 01 00 00 00 00 00 F6 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 29 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C3 [11:03:53]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetShiftState done [11:03:53]FM_GetShiftState done [11:03:53]opened in 1722384689 [11:03:53]opened+sec_in_day 1722471089 [11:03:53]quantity*price = 100023 [11:03:53]sum+1 = 100024 [11:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 76 31.07.2024 11:04 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2623 ФПД: 133629071711463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110402&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2623&fm=133629071711463&tin=02508201610067®Number=0000000000189667&sum=100000 [11:03:55]StoreToDocumentArchive [11:03:55]shift 17 fd 2623 [11:03:55]save to /storage/0017/doc_00002623 [11:03:55]save last doc name /storage/0017/doc_00002623 to /storage/kkm_last_doc_name [11:03:55]save OK [11:03:55]Clear old archive folders... [11:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:55]tlvbuf is 008C17B0 [11:03:55]SAM_PROTO_ClearQueue [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 09 00 00 [11:03:55]Write to MH i2c: E2 08 00 36 50 80 09 00 00 00 00 00 00 F8 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 36 50 00 90 00 FA [11:03:55]RAPDU: 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_ClearQueue done [11:03:55]KKMCreateOFDPacket [11:03:55]OFDProtocolAddRootSTLVToBuf [11:03:55]FM_MakeSignedData [11:03:55]FM_MakeSignedData [11:03:55]SAM_PROTO_SignData [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 0D 01 02 [11:03:55]Write to MH i2c: E2 08 00 37 50 80 0D 01 02 00 00 00 00 00 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 37 50 00 90 00 FB [11:03:55]RAPDU: 90 00 [11:03:55]wFMCommunicate OK [11:03:55]wFMCommunicate request_size=255 [11:03:55]MH_SAM_APDU [11:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 22 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 0A 00 00 35 04 06 00 79 [11:03:55]Write to MH i2c: E2 02 01 38 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 22 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 0A 00 00 35 04 06 00 79 00 00 F8 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 38 50 00 90 00 FC [11:03:55]RAPDU: 90 00 [11:03:55]wFMCommunicate OK [11:03:55]wFMCommunicate request_size=10 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 0D 02 02 05 88 F1 59 DC E7 [11:03:55]Write to MH i2c: E2 0D 00 39 50 80 0D 02 02 05 00 88 F1 59 DC E7 00 00 A2 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 03 00 39 50 00 90 00 FD [11:03:55]RAPDU: 90 00 [11:03:55]wFMCommunicate OK [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 0D 03 02 [11:03:55]Write to MH i2c: E2 08 00 3A 50 80 0D 03 02 00 00 00 00 05 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0B 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0B 00 3A 50 00 41 26 1F AF 2F 04 ED 42 90 00 9D [11:03:55]RAPDU: 41 26 1F AF 2F 04 ED 42 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_SignData done [11:03:55]FM_MakeSignedData done [11:03:55]CreateOFDProtocolMessage [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 11 00 00 [11:03:55]Write to MH i2c: E2 08 00 3B 50 80 11 00 00 00 00 00 00 05 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 17 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 17 00 3B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 55 [11:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:03:55]wFMCommunicate OK [11:03:55]CreateOFDProtocolMessage done [11:03:55]OFDSenderStorePacket 2623 [11:03:55]StoreOFDPacket docnum=2623 [11:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9D BB 07 01 DB 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 22 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 0A 00 00 35 04 06 00 79 88 F1 59 DC E7 41 26 1F AF 2F 04 ED 42 [11:03:55]CheckFolder [11:03:55]dirname=/storage/ofd_packets [11:03:55]CheckFolder done [11:03:55]ProducePacketName [11:03:55]name=ofd_packets/00002623 [11:03:55]NVStorageSaveData ofd_packets/00002623 [11:03:55]File name is /storage/ofd_packets/00002623 [11:03:55]Write 301 bytes [11:03:55]NVStorageSaveData done [11:03:55]OFDSenderStorePacket done [11:03:55]KKMCreateOFDPacket done [11:03:55]NVStorageSaveData kkm_last_timestamp [11:03:55]File name is /storage/kkm_last_timestamp [11:03:55]Write 4 bytes [11:03:55]NVStorageSaveData done [11:03:55]ExternCall_PrintAddStr [11:03:55]wPrintStart [11:03:55]Write to MH i2c: 01 00 00 3C 50 8C [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: 01 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: 01 07 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: 01 07 00 3C 50 00 00 00 00 00 FF 0F A1 [11:03:55]RasterBufferAndPrint [11:03:55]line Счет N : (1)611049 [11:03:55]line ИНН: 02508201610067 [11:03:55]line Контрольно-Кассовый Чек [11:03:55]line ПРОДАЖА [11:03:55]line ТРК (МРК, ГНК) : 53 [11:03:55]line Товар: 2710124500 [11:03:55]line Аи-95-К-3 [11:03:55]line 13.390 * 74.70 [11:03:55]line = 1000.23 [11:03:55]line НДС 12% НСП 1% [11:03:55]line > о реализуемом товаре [11:03:55]line ОКРУГЛЕНИЕ: -0.23 [11:03:55]line ИТОГО: 1000.00 [11:03:55]line Внесено: 1000.00 [11:03:55]line СДАЧА: 0.00 [11:03:55]line НСП 1% : 8.85 [11:03:55]line НДС 12% : 106.22 [11:03:55]line Наличными: 1000.00 [11:03:55]line Безнал.: 0.00 [11:03:55]line Место: АЗС № 127 "Партнер Нефть" [11:03:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:03:55]line СНО: Общий режим [11:03:55]line Чек 76 31.07.2024 11:04 [11:03:55]line Смена: 17 ФФД: 1.0 [11:03:55]line ЗНМ: 0300000161 [11:03:55]line РНМ: 0000000000189667 [11:03:55]line Версия ККМ: v1.0 [11:03:55]line ФМ: 0000000002094248 [11:03:55]line ФД: 2623 [11:03:55]line ФПД: 133629071711463 [11:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110402&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2623&fm=133629071711463&tin=02508201610067®Number=0000000000189667&sum=100000 [11:03:55]OFD Sender: Processing packet 2623 [packets to send 1, broken 0] [11:03:55]ProducePacketName [11:03:55]name=ofd_packets/00002623 [11:03:55]OFD Sender: To server: pG, [11:03:55]CommunicateWithHost lk.salyk.kg:30040 [11:03:55]ConnectInit lk.salyk.kg [11:03:55]written 0, free lines is 4095 [11:03:56]Connected sock=10 [11:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9D BB 07 01 DB 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 22 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 0A 00 00 35 04 06 00 79 88 F1 59 DC E7 41 26 1F AF 2F 04 ED 42 [11:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 97 F9 47 00 74 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 0A 00 00 F4 03 04 00 89 C5 A9 66 B6 04 01 00 00 0E 0F D4 2F 37 A6 C8 09 [11:03:56]CommunicateWithHost err = 0 [11:03:56]CheckOFDResponse [11:03:56]1017 (14) - 77093643461234 [11:03:56]1041 (16) - 0000000002094248 [11:03:56]1040 (4) - 2623 [11:03:56]1012 (4) - 31.07.2024 05:03 [11:03:56]1206 (1) - 0 [11:03:56]OFD Sender: Remove packet 2623 [11:03:56]ProducePacketName [11:03:56]name=ofd_packets/00002623 [11:03:56]NVStorageDeleteData [11:03:56]Write to MH i2c: 01 00 00 67 50 B7 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 67 50 00 00 00 00 00 E6 0C B0 [11:03:56]RasterBufferAndPrint [11:03:56]line [11:03:56]line [11:03:56]line [11:03:56]line [11:03:56]line [11:03:56]written 0, free lines is 3308 [11:03:56]MH_Cut [11:03:56]Write to MH i2c: D1 01 00 6E 50 01 90 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: D1 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: D1 01 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: D1 01 00 6E 50 00 8F [11:03:56]Write to MH i2c: 01 00 00 6F 50 BF [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]OFD Sender: No OFD packet to send [11:03:57]*** Cut start [11:03:57]*** Partial cut [11:03:57]*** CUTSNS_PIN = 1 [11:03:57]*** CUTSNS_PIN = 0 [11:03:57]*** Brake cut motor [11:03:57]Read from MH i2c: 01 [11:03:57]MH_I2C_Read... [11:03:57]*** Stop cut motor [11:03:57]*** Cut end [11:03:57]Read from MH i2c: 01 07 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 07 00 6F 50 00 00 00 00 00 FF 0F D4 [11:03:57]process_action close_receipt done [11:03:57]requested_data is exist [11:03:57]produce_requested_data [11:03:57]requested_item fm.sn is exist - process it [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 11 00 00 [11:03:57]Write to MH i2c: E2 08 00 70 50 80 11 00 00 00 00 00 00 3A [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 17 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 17 00 70 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8A [11:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:03:57]wFMCommunicate OK [11:03:57]requested_item fd.num is exist - process it [11:03:57]SAM_PROTO_GetFieldsCounters [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 13 00 00 [11:03:57]Write to MH i2c: E2 08 00 71 50 80 13 00 00 00 00 00 00 3D [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 62 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 62 00 71 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 0A 00 00 0E 04 04 00 11 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 A5 [11:03:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 0A 00 00 0E 04 04 00 11 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 [11:03:57]wFMCommunicate OK [11:03:57]SAM_PROTO_GetFieldsCounters done [11:03:57]requested_item shift.num is exist - process it [11:03:57]requested_item shift.opened is exist - process it [11:03:57]req_shift_opened [11:03:57]FM_GetShiftState [11:03:57]SAM_PROTO_GetShiftState [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 13 01 00 [11:03:57]Write to MH i2c: E2 08 00 72 50 80 13 01 00 00 00 00 00 3F [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0E 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0E 00 72 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0C [11:03:58]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:03:58]wFMCommunicate OK [11:03:58]SAM_PROTO_GetShiftState done [11:03:58]FM_GetShiftState done [11:03:58]req_shift_opened done [11:03:58]requested_item shift.open_date is exist - process it [11:03:58]req_shift_open_date [11:03:58]req_shift_open_date done [11:03:58]produce_requested_data done [11:03:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2623,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:03:58]process_action_free close_receipt [11:03:58]json_value_free [11:03:58]json_value_free done [11:03:58]process_json_proto returns [11:03:58]Send response to host [11:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2623,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:03:58]free response buf [11:03:58]execute_script done [11:03:58]execute_script returns [11:03:58]free content buf [11:03:58]Sock 7.Close socket [11:03:58]Sock 7.Thread stoped [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:09]accept exits with 9 [11:05:09]New connection [11:05:09]New thread 3067481444 created [11:05:09]Thread 3067624804 joined [11:05:09]Waiting for new connection... [11:05:09] Sock 9.Parse request [11:05:09]Sock 9.Check first char [11:05:09]Sock 9.First char is OK [11:05:09]request: POST /json_proto HTTP/1.0 [11:05:09]Method: POST [11:05:09]URL: /json_proto [11:05:09]Method is POST - this is cgi request [11:05:09]url: /json_proto [11:05:09]query_string will be loaded in cgi processing [11:05:09]execute_cgi json_proto POST (null) [11:05:09]execute_cgi path=json_proto method=POST [11:05:09]POST find Content-Length [11:05:09]Host: 172.17.45.132:8080 [11:05:09]Content-Length: 630 [11:05:09]Content-Type: application/json [11:05:09] [11:05:09]POST finish read [11:05:09]Found Content-Length = 630 [11:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126797", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:09]execute_script... [11:05: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 : (3)126797", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:09]POST & json_proto [11:05:09]process_json_proto [11:05:09]json parsed OK: [11:05:09]protocol is kg_v1.0 [11:05:09]action value=close_receipt [11:05:09]process_action close_receipt [11:05:09]cmd_close_receipt [11:05:09]MH_GetDate [11:05:09]Write to MH i2c: F0 00 00 73 50 B2 [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: F0 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: F0 09 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: F0 09 00 73 50 00 6D 1A AA 66 E3 0B 90 66 36 [11:05:09]GetLastDocTimeStamp 1722423842 [11:05:09]current date 1722423917 [11:05:09]FM_GetShiftState [11:05:09]SAM_PROTO_GetShiftState [11:05:09]wFMCommunicate request_size=4 [11:05:09]MH_SAM_APDU [11:05:09]CAPDU: 80 13 01 00 [11:05:09]Write to MH i2c: E2 08 00 74 50 80 13 01 00 00 00 00 00 41 [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:09]Read from MH i2c: E2 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 0E 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 0E 00 74 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0E [11:05:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:05:09]wFMCommunicate OK [11:05:09]SAM_PROTO_GetShiftState done [11:05:09]FM_GetShiftState done [11:05:09]opened in 1722384689 [11:05:09]opened+sec_in_day 1722471089 [11:05:09]quantity*price = 5000 [11:05:09]sum+1 = 5001 [11:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 77 31.07.2024 11:05 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2624 ФПД: 42704522434319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110517&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2624&fm=42704522434319&tin=02508201610067®Number=0000000000189667&sum=5000 0 [11:05:10]StoreToDocumentArchive [11:05:10]shift 17 fd 2624 [11:05:10]save to /storage/0017/doc_00002624 [11:05:10]save last doc name /storage/0017/doc_00002624 to /storage/kkm_last_doc_name [11:05:10]save OK [11:05:10]Clear old archive folders... [11:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:05:10]tlvbuf is 0085A510 [11:05:10]SAM_PROTO_ClearQueue [11:05:10]wFMCommunicate request_size=4 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 09 00 00 [11:05:10]Write to MH i2c: E2 08 00 81 50 80 09 00 00 00 00 00 00 43 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 81 50 00 90 00 45 [11:05:10]RAPDU: 90 00 [11:05:10]wFMCommunicate OK [11:05:10]SAM_PROTO_ClearQueue done [11:05:10]KKMCreateOFDPacket [11:05:10]OFDProtocolAddRootSTLVToBuf [11:05:10]FM_MakeSignedData [11:05:10]FM_MakeSignedData [11:05:10]SAM_PROTO_SignData [11:05:10]wFMCommunicate request_size=4 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 0D 01 02 [11:05:10]Write to MH i2c: E2 08 00 82 50 80 0D 01 02 00 00 00 00 4B [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 82 50 00 90 00 46 [11:05:10]RAPDU: 90 00 [11:05:10]wFMCommunicate OK [11:05:10]wFMCommunicate request_size=255 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 6D 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [11:05:10]Write to MH i2c: E2 02 01 83 50 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 6D 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 5D [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 83 50 00 90 00 47 [11:05:10]RAPDU: 90 00 [11:05:10]wFMCommunicate OK [11:05:10]wFMCommunicate request_size=28 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 40 0A 00 00 35 04 06 00 26 D6 EB E3 D7 0F [11:05:10]Write to MH i2c: E2 1F 00 84 50 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 40 0A 00 00 35 04 06 00 26 D6 EB E3 D7 0F 00 00 D8 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 03 00 84 50 00 90 00 48 [11:05:10]RAPDU: 90 00 [11:05:10]wFMCommunicate OK [11:05:10]wFMCommunicate request_size=4 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 0D 03 02 [11:05:10]Write to MH i2c: E2 08 00 85 50 80 0D 03 02 00 00 00 00 50 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 0B 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 0B 00 85 50 00 08 96 E9 8F 1F D0 4D 25 90 00 C8 [11:05:10]RAPDU: 08 96 E9 8F 1F D0 4D 25 90 00 [11:05:10]wFMCommunicate OK [11:05:10]SAM_PROTO_SignData done [11:05:10]FM_MakeSignedData done [11:05:10]CreateOFDProtocolMessage [11:05:10]wFMCommunicate request_size=4 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 11 00 00 [11:05:10]Write to MH i2c: E2 08 00 86 50 80 11 00 00 00 00 00 00 50 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 17 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 17 00 86 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A0 [11:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:05:10]wFMCommunicate OK [11:05:10]CreateOFDProtocolMessage done [11:05:10]OFDSenderStorePacket 2624 [11:05:10]StoreOFDPacket docnum=2624 [11:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C9 7C 19 01 1E 99 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 6D 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 0A 00 00 35 04 06 00 26 D6 EB E3 D7 0F 08 96 E9 8F 1F D0 4D 25 [11:05:10]CheckFolder [11:05:10]dirname=/storage/ofd_packets [11:05:10]CheckFolder done [11:05:10]ProducePacketName [11:05:10]name=ofd_packets/00002624 [11:05:10]NVStorageSaveData ofd_packets/00002624 [11:05:10]File name is /storage/ofd_packets/00002624 [11:05:10]Write 319 bytes [11:05:10]NVStorageSaveData done [11:05:10]OFDSenderStorePacket done [11:05:10]KKMCreateOFDPacket done [11:05:10]NVStorageSaveData kkm_last_timestamp [11:05:10]File name is /storage/kkm_last_timestamp [11:05:10]Write 4 bytes [11:05:10]NVStorageSaveData done [11:05:10]ExternCall_PrintAddStr [11:05:10]wPrintStart [11:05:10]Write to MH i2c: 01 00 00 87 50 D7 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 07 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 07 00 87 50 00 00 00 00 00 FF 0F EC [11:05:10]RasterBufferAndPrint [11:05:10]line Счет N : (3)126797 [11:05:10]line ИНН: 02508201610067 [11:05:10]line Контрольно-Кассовый Чек [11:05:10]line ПРОДАЖА [11:05:10]line Товар: 4700000160358 [11:05:10]line Вода Легенда 1л [11:05:10]line 1.000 * 50.00 [11:05:10]line = 50.00 [11:05:10]line НДС 12% НСП 1% [11:05:10]line > о реализуемом товаре [11:05:10]line ИТОГО: 50.00 [11:05:10]line НСП 1% : 0.44 [11:05:10]line НДС 12% : 5.31 [11:05:10]line Наличными: 50.00 [11:05:10]line Безнал.: 0.00 [11:05:10]line Место: АЗС № 127 "Партнер Нефть" [11:05:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:05:10]line СНО: Общий режим [11:05:10]line Чек 77 31.07.2024 11:05 [11:05:10]line Смена: 17 ФФД: 1.0 [11:05:10]line ЗНМ: 0300000161 [11:05:10]line РНМ: 0000000000189667 [11:05:10]line Версия ККМ: v1.0 [11:05:10]line ФМ: 0000000002094248 [11:05:10]line ФД: 2624 [11:05:10]line ФПД: 42704522434319 [11:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110517&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2624&fm=42704522434319&tin=02508201610067®Number=0000000000189667&sum=5000 [11:05:11]line 0 [11:05:11]OFD Sender: Processing packet 2624 [packets to send 1, broken 0] [11:05:11]ProducePacketName [11:05:11]name=ofd_packets/00002624 [11:05:11]OFD Sender: To server: pG, [11:05:11]CommunicateWithHost lk.salyk.kg:30040 [11:05:11]ConnectInit lk.salyk.kg [11:05:11]written 0, free lines is 4095 [11:05:11]Connected sock=10 [11:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C9 7C 19 01 1E 99 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 6D 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 0A 00 00 35 04 06 00 26 D6 EB E3 D7 0F 08 96 E9 8F 1F D0 4D 25 [11:05:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C4 53 47 00 8B 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 32 30 39 34 32 34 38 10 04 04 00 40 0A 00 00 F4 03 04 00 D4 C5 A9 66 B6 04 01 00 00 98 82 65 60 A9 B7 67 F3 [11:05:11]CommunicateWithHost err = 0 [11:05:11]CheckOFDResponse [11:05:11]1017 (14) - 77093643461234 [11:05:11]1041 (16) - 0000000002094248 [11:05:11]1040 (4) - 2624 [11:05:11]1012 (4) - 31.07.2024 05:04 [11:05:11]1206 (1) - 0 [11:05:11]OFD Sender: Remove packet 2624 [11:05:11]ProducePacketName [11:05:11]name=ofd_packets/00002624 [11:05:11]NVStorageDeleteData [11:05:11]Write to MH i2c: 01 00 00 AF 50 FF [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: 01 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: 01 07 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: 01 07 00 AF 50 00 00 00 00 00 0F 0D 22 [11:05:11]RasterBufferAndPrint [11:05:11]line [11:05:11]line [11:05:11]line [11:05:11]line [11:05:11]line [11:05:11]written 0, free lines is 3349 [11:05:11]MH_Cut [11:05:11]Write to MH i2c: D1 01 00 B6 50 01 D8 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: D1 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: D1 01 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: D1 01 00 B6 50 00 D7 [11:05:11]Write to MH i2c: 01 00 00 B7 50 07 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:12]OFD Sender: No OFD packet to send [11:05:12]*** Cut start [11:05:12]*** Partial cut [11:05:12]*** CUTSNS_PIN = 1 [11:05:12]*** CUTSNS_PIN = 0 [11:05:12]*** Brake cut motor [11:05:12]Read from MH i2c: 01 [11:05:12]MH_I2C_Read... [11:05:12]*** Stop cut motor [11:05:12]*** Cut end [11:05:12]Read from MH i2c: 01 07 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 07 00 B7 50 00 00 00 00 00 FF 0F 1C [11:05:12]process_action close_receipt done [11:05:12]requested_data is exist [11:05:12]produce_requested_data [11:05:12]requested_item fm.sn is exist - process it [11:05:12]wFMCommunicate request_size=4 [11:05:12]MH_SAM_APDU [11:05:12]CAPDU: 80 11 00 00 [11:05:12]Write to MH i2c: E2 08 00 B8 50 80 11 00 00 00 00 00 00 82 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:12]Read from MH i2c: E2 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 17 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 17 00 B8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D2 [11:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:05:12]wFMCommunicate OK [11:05:12]requested_item fd.num is exist - process it [11:05:12]SAM_PROTO_GetFieldsCounters [11:05:12]wFMCommunicate request_size=4 [11:05:12]MH_SAM_APDU [11:05:12]CAPDU: 80 13 00 00 [11:05:12]Write to MH i2c: E2 08 00 B9 50 80 13 00 00 00 00 00 00 85 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 62 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 62 00 B9 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 0A 00 00 0E 04 04 00 11 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 F1 [11:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 0A 00 00 0E 04 04 00 11 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 [11:05:13]wFMCommunicate OK [11:05:13]SAM_PROTO_GetFieldsCounters done [11:05:13]requested_item shift.num is exist - process it [11:05:13]requested_item shift.opened is exist - process it [11:05:13]req_shift_opened [11:05:13]FM_GetShiftState [11:05:13]SAM_PROTO_GetShiftState [11:05:13]wFMCommunicate request_size=4 [11:05:13]MH_SAM_APDU [11:05:13]CAPDU: 80 13 01 00 [11:05:13]Write to MH i2c: E2 08 00 BA 50 80 13 01 00 00 00 00 00 87 [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0E 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0E 00 BA 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 54 [11:05:13]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:05:13]wFMCommunicate OK [11:05:13]SAM_PROTO_GetShiftState done [11:05:13]FM_GetShiftState done [11:05:13]req_shift_opened done [11:05:13]requested_item shift.open_date is exist - process it [11:05:13]req_shift_open_date [11:05:13]req_shift_open_date done [11:05:13]produce_requested_data done [11:05:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2624,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:05:13]process_action_free close_receipt [11:05:13]json_value_free [11:05:13]json_value_free done [11:05:13]process_json_proto returns [11:05:13]Send response to host [11:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2624,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:05:13]free response buf [11:05:13]execute_script done [11:05:13]execute_script returns [11:05:13]free content buf [11:05:13]Sock 9.Close socket [11:05:13]Sock 9.Thread stoped [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:09]accept exits with 7 [11:07:09]New connection [11:07:09]New thread 3067624804 created [11:07:09]Thread 3067481444 joined [11:07:09]Waiting for new connection... [11:07:09] Sock 7.Parse request [11:07:09]Sock 7.Check first char [11:07:09]Sock 7.First char is OK [11:07:09]request: POST /json_proto HTTP/1.0 [11:07:09]Method: POST [11:07:09]URL: /json_proto [11:07:09]Method is POST - this is cgi request [11:07:09]url: /json_proto [11:07:09]query_string will be loaded in cgi processing [11:07:09]execute_cgi json_proto POST (null) [11:07:09]execute_cgi path=json_proto method=POST [11:07:09]POST find Content-Length [11:07:09]Host: 172.17.45.132:8080 [11:07:09]Content-Length: 675 [11:07:09]Content-Type: application/json [11:07:09] [11:07:09]POST finish read [11:07:09]Found Content-Length = 675 [11:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126798", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:09]execute_script... [11:07: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 : (3)126798", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:09]POST & json_proto [11:07:09]process_json_proto [11:07:09]json parsed OK: [11:07:09]protocol is kg_v1.0 [11:07:09]action value=close_receipt [11:07:09]process_action close_receipt [11:07:09]cmd_close_receipt [11:07:09]MH_GetDate [11:07:09]Write to MH i2c: F0 00 00 BB 50 FA [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 09 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: F0 09 00 BB 50 00 E5 1A AA 66 E3 0B 90 66 F6 [11:07:09]GetLastDocTimeStamp 1722423917 [11:07:09]current date 1722424037 [11:07:09]FM_GetShiftState [11:07:09]SAM_PROTO_GetShiftState [11:07:09]wFMCommunicate request_size=4 [11:07:09]MH_SAM_APDU [11:07:09]CAPDU: 80 13 01 00 [11:07:09]Write to MH i2c: E2 08 00 BC 50 80 13 01 00 00 00 00 00 89 [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:09]Read from MH i2c: E2 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 0E 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 0E 00 BC 50 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 56 [11:07:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:07:09]wFMCommunicate OK [11:07:09]SAM_PROTO_GetShiftState done [11:07:09]FM_GetShiftState done [11:07:09]opened in 1722384689 [11:07:09]opened+sec_in_day 1722471089 [11:07:09]quantity*price = 3400 [11:07:09]sum+1 = 3401 [11:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 34.00 НСП 1% : 0.30 НДС 12% : 3.61 Наличными: 34.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 78 31.07.2024 11:07 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2625 ФПД: 247026560580780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110717&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2625&fm=247026560580780&tin=02508201610067®Number=0000000000189667&sum=3400 0 [11:07:10]StoreToDocumentArchive [11:07:10]shift 17 fd 2625 [11:07:10]save to /storage/0017/doc_00002625 [11:07:10]save last doc name /storage/0017/doc_00002625 to /storage/kkm_last_doc_name [11:07:10]save OK [11:07:10]Clear old archive folders... [11:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=290 [11:07:10]tlvbuf is 0091E340 [11:07:10]SAM_PROTO_ClearQueue [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 09 00 00 [11:07:10]Write to MH i2c: E2 08 00 C9 50 80 09 00 00 00 00 00 00 8B [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 C9 50 00 90 00 8D [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_ClearQueue done [11:07:10]KKMCreateOFDPacket [11:07:10]OFDProtocolAddRootSTLVToBuf [11:07:10]FM_MakeSignedData [11:07:10]FM_MakeSignedData [11:07:10]SAM_PROTO_SignData [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 01 02 [11:07:10]Write to MH i2c: E2 08 00 CA 50 80 0D 01 02 00 00 00 00 93 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 CA 50 00 90 00 8E [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]wFMCommunicate request_size=255 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E5 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [11:07:10]Write to MH i2c: E2 02 01 CB 50 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E5 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 3A [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 CB 50 00 90 00 8F [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]wFMCommunicate request_size=49 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 02 02 2C 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 0A 00 00 35 04 06 00 E0 AB 5A 64 BC AC [11:07:10]Write to MH i2c: E2 34 00 CC 50 80 0D 02 02 2C 00 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 0A 00 00 35 04 06 00 E0 AB 5A 64 BC AC 00 00 C8 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 CC 50 00 90 00 90 [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 03 02 [11:07:10]Write to MH i2c: E2 08 00 CD 50 80 0D 03 02 00 00 00 00 98 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0B 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0B 00 CD 50 00 D1 1B 96 8E 57 72 53 1D 90 00 E2 [11:07:10]RAPDU: D1 1B 96 8E 57 72 53 1D 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_SignData done [11:07:10]FM_MakeSignedData done [11:07:10]CreateOFDProtocolMessage [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 11 00 00 [11:07:10]Write to MH i2c: E2 08 00 CE 50 80 11 00 00 00 00 00 00 98 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 CE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E8 [11:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:07:10]wFMCommunicate OK [11:07:10]CreateOFDProtocolMessage done [11:07:10]OFDSenderStorePacket 2625 [11:07:10]StoreOFDPacket docnum=2625 [11:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 7F EB 2E 01 21 F5 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E5 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 0A 00 00 35 04 06 00 E0 AB 5A 64 BC AC D1 1B 96 8E 57 72 53 1D [11:07:10]CheckFolder [11:07:10]dirname=/storage/ofd_packets [11:07:10]CheckFolder done [11:07:10]ProducePacketName [11:07:10]name=ofd_packets/00002625 [11:07:10]NVStorageSaveData ofd_packets/00002625 [11:07:10]File name is /storage/ofd_packets/00002625 [11:07:10]Write 340 bytes [11:07:10]NVStorageSaveData done [11:07:10]OFDSenderStorePacket done [11:07:10]KKMCreateOFDPacket done [11:07:10]NVStorageSaveData kkm_last_timestamp [11:07:10]File name is /storage/kkm_last_timestamp [11:07:10]Write 4 bytes [11:07:10]NVStorageSaveData done [11:07:10]ExternCall_PrintAddStr [11:07:10]wPrintStart [11:07:10]Write to MH i2c: 01 00 00 CF 50 1F [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 CF 50 00 00 00 00 00 FF 0F 34 [11:07:10]RasterBufferAndPrint [11:07:10]line Счет N : (3)126798 [11:07:10]line ИНН: 02508201610067 [11:07:10]line Контрольно-Кассовый Чек [11:07:10]line ПРОДАЖА [11:07:10]line Товар: 4620017451303 [11:07:10]line Кар.с жев.конф.Страйк 11.3г/50 [11:07:10]line 2.000 * 17.00 [11:07:10]line = 34.00 [11:07:10]line НДС 12% НСП 1% [11:07:10]line > о реализуемом товаре [11:07:10]line ИТОГО: 34.00 [11:07:10]line НСП 1% : 0.30 [11:07:10]line НДС 12% : 3.61 [11:07:10]line Наличными: 34.00 [11:07:10]line Безнал.: 0.00 [11:07:10]line Место: АЗС № 127 "Партнер Нефть" [11:07:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:07:10]line СНО: Общий режим [11:07:10]line Чек 78 31.07.2024 11:07 [11:07:10]line Смена: 17 ФФД: 1.0 [11:07:10]line ЗНМ: 0300000161 [11:07:10]line РНМ: 0000000000189667 [11:07:10]line Версия ККМ: v1.0 [11:07:10]line ФМ: 0000000002094248 [11:07:11]line ФД: 2625 [11:07:11]line ФПД: 247026560580780 [11:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110717&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2625&fm=247026560580780&tin=02508201610067®Number=0000000000189667&sum=3400 [11:07:11]line 0 [11:07:11]OFD Sender: Processing packet 2625 [packets to send 1, broken 0] [11:07:11]ProducePacketName [11:07:11]name=ofd_packets/00002625 [11:07:11]OFD Sender: To server: pG, [11:07:11]CommunicateWithHost lk.salyk.kg:30040 [11:07:11]ConnectInit lk.salyk.kg [11:07:11]written 0, free lines is 4095 [11:07:11]Connected sock=10 [11:07:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 7F EB 2E 01 21 F5 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E5 1A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 0A 00 00 35 04 06 00 E0 AB 5A 64 BC AC D1 1B 96 8E 57 72 53 1D [11:07:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DC B1 47 00 58 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 0A 00 00 F4 03 04 00 4C C6 A9 66 B6 04 01 00 00 8F BF 5C 04 34 08 1D 36 [11:07:11]CommunicateWithHost err = 0 [11:07:11]CheckOFDResponse [11:07:11]1017 (14) - 77093643461234 [11:07:11]1041 (16) - 0000000002094248 [11:07:11]1040 (4) - 2625 [11:07:11]1012 (4) - 31.07.2024 05:06 [11:07:11]1206 (1) - 0 [11:07:11]OFD Sender: Remove packet 2625 [11:07:11]ProducePacketName [11:07:11]name=ofd_packets/00002625 [11:07:11]NVStorageDeleteData [11:07:11]Write to MH i2c: 01 00 00 F8 50 48 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 07 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: 01 07 00 F8 50 00 00 00 00 00 F0 0C 4B [11:07:11]RasterBufferAndPrint [11:07:11]line [11:07:11]line [11:07:11]line [11:07:11]line [11:07:11]line [11:07:11]written 0, free lines is 3322 [11:07:11]MH_Cut [11:07:11]Write to MH i2c: D1 01 00 FF 50 01 21 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: D1 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: D1 01 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: D1 01 00 FF 50 00 20 [11:07:11]Write to MH i2c: 01 00 00 00 51 51 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]OFD Sender: No OFD packet to send [11:07:12]*** Cut start [11:07:12]*** Partial cut [11:07:12]*** CUTSNS_PIN = 1 [11:07:12]*** CUTSNS_PIN = 0 [11:07:12]*** Brake cut motor [11:07:12]Read from MH i2c: 01 [11:07:12]MH_I2C_Read... [11:07:12]*** Stop cut motor [11:07:12]*** Cut end [11:07:12]Read from MH i2c: 01 07 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 00 51 00 00 00 00 00 FF 0F 66 [11:07:12]process_action close_receipt done [11:07:12]requested_data is exist [11:07:12]produce_requested_data [11:07:12]requested_item fm.sn is exist - process it [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 11 00 00 [11:07:12]Write to MH i2c: E2 08 00 01 51 80 11 00 00 00 00 00 00 CC [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 01 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [11:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:07:12]wFMCommunicate OK [11:07:12]requested_item fd.num is exist - process it [11:07:12]SAM_PROTO_GetFieldsCounters [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 13 00 00 [11:07:12]Write to MH i2c: E2 08 00 02 51 80 13 00 00 00 00 00 00 CF [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 62 00 [11:07:12]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 62 00 02 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 0A 00 00 0E 04 04 00 11 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 3F [11:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 0A 00 00 0E 04 04 00 11 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 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetFieldsCounters done [11:07:13]requested_item shift.num is exist - process it [11:07:13]requested_item shift.opened is exist - process it [11:07:13]req_shift_opened [11:07:13]FM_GetShiftState [11:07:13]SAM_PROTO_GetShiftState [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 13 01 00 [11:07:13]Write to MH i2c: E2 08 00 03 51 80 13 01 00 00 00 00 00 D1 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 03 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 9E [11:07:13]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetShiftState done [11:07:13]FM_GetShiftState done [11:07:13]req_shift_opened done [11:07:13]requested_item shift.open_date is exist - process it [11:07:13]req_shift_open_date [11:07:13]req_shift_open_date done [11:07:13]produce_requested_data done [11:07:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2625,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:07:13]process_action_free close_receipt [11:07:13]json_value_free [11:07:13]json_value_free done [11:07:13]process_json_proto returns [11:07:13]Send response to host [11:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2625,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:07:13]free response buf [11:07:13]execute_script done [11:07:13]execute_script returns [11:07:13]free content buf [11:07:13]Sock 7.Close socket [11:07:13]Sock 7.Thread stoped [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:27]accept exits with 9 [11:16:27]New connection [11:16:27]New thread 3067481444 created [11:16:27]Thread 3067624804 joined [11:16:27]Waiting for new connection... [11:16:27] Sock 9.Parse request [11:16:27]Sock 9.Check first char [11:16:27]Sock 9.First char is OK [11:16:27]request: POST /json_proto HTTP/1.0 [11:16:27]Method: POST [11:16:27]URL: /json_proto [11:16:27]Method is POST - this is cgi request [11:16:27]url: /json_proto [11:16:27]query_string will be loaded in cgi processing [11:16:27]execute_cgi json_proto POST (null) [11:16:27]execute_cgi path=json_proto method=POST [11:16:27]POST find Content-Length [11:16:27]Host: 172.17.45.132:8080 [11:16:27]Content-Length: 1187 [11:16:27]Content-Type: application/json [11:16:27] [11:16:27]POST finish read [11:16:27]Found Content-Length = 1187 [11:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126799", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018757", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u043A\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 849.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:27]execute_script... [11:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126799", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018757", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u043A\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 849.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:27]POST & json_proto [11:16:27]process_json_proto [11:16:27]json parsed OK: [11:16:27]protocol is kg_v1.0 [11:16:27]action value=close_receipt [11:16:27]process_action close_receipt [11:16:27]cmd_close_receipt [11:16:27]MH_GetDate [11:16:27]Write to MH i2c: F0 00 00 04 51 44 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 09 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 09 00 04 51 00 14 1D AA 66 E3 0B 90 66 72 [11:16:27]GetLastDocTimeStamp 1722424037 [11:16:27]current date 1722424596 [11:16:27]FM_GetShiftState [11:16:27]SAM_PROTO_GetShiftState [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 13 01 00 [11:16:27]Write to MH i2c: E2 08 00 05 51 80 13 01 00 00 00 00 00 D3 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0E 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0E 00 05 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A0 [11:16:27]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_GetShiftState done [11:16:27]FM_GetShiftState done [11:16:27]opened in 1722384689 [11:16:27]opened+sec_in_day 1722471089 [11:16:27]quantity*price = 400 [11:16:27]sum+1 = 401 [11:16:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600721018757 Пиво Сиб.Кор кл 0,5л ст 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003150929 Новая Водка Organic 40% 0,7л 1.000 * 700.00 = 700.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 849.00 НСП 1% : 7.50 НДС 12% : 90.16 Наличными: 849.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 79 31.07.2024 11:16 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2626 ФПД: 87877732230764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111636&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2626&fm=87877732230764&tin=02508201610067®Number=0000000000189667&sum=84900 0 [11:16:28]StoreToDocumentArchive [11:16:28]shift 17 fd 2626 [11:16:28]save to /storage/0017/doc_00002626 [11:16:28]save last doc name /storage/0017/doc_00002626 to /storage/kkm_last_doc_name [11:16:28]save OK [11:16:28]Clear old archive folders... [11:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=499 [11:16:28]tlvbuf is 009AF7C0 [11:16:28]SAM_PROTO_ClearQueue [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 09 00 00 [11:16:28]Write to MH i2c: E2 08 00 12 51 80 09 00 00 00 00 00 00 D5 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 12 51 00 90 00 D7 [11:16:28]RAPDU: 90 00 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_ClearQueue done [11:16:28]KKMCreateOFDPacket [11:16:28]OFDProtocolAddRootSTLVToBuf [11:16:28]FM_MakeSignedData [11:16:28]FM_MakeSignedData [11:16:28]SAM_PROTO_SignData [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 0D 01 02 [11:16:28]Write to MH i2c: E2 08 00 13 51 80 0D 01 02 00 00 00 00 DD [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 13 51 00 90 00 D8 [11:16:28]RAPDU: 90 00 [11:16:28]wFMCommunicate OK [11:16:28]wFMCommunicate request_size=255 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 [11:16:28]Write to MH i2c: E2 02 01 14 51 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 00 00 58 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 14 51 00 90 00 D9 [11:16:29]RAPDU: 90 00 [11:16:29]wFMCommunicate OK [11:16:29]wFMCommunicate request_size=255 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 0D 02 02 FA 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 14 1D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 0A 00 00 35 04 06 00 4F EC A1 [11:16:29]Write to MH i2c: E2 02 01 15 51 80 0D 02 02 FA 00 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 14 1D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 0A 00 00 35 04 06 00 4F EC A1 00 00 0E [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 15 51 00 90 00 DA [11:16:29]RAPDU: 90 00 [11:16:29]wFMCommunicate OK [11:16:29]wFMCommunicate request_size=8 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 0D 02 02 03 03 66 6C [11:16:29]Write to MH i2c: E2 0B 00 16 51 80 0D 02 02 03 00 03 66 6C 00 00 BC [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 16 51 00 90 00 DB [11:16:29]RAPDU: 90 00 [11:16:29]wFMCommunicate OK [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 0D 03 02 [11:16:29]Write to MH i2c: E2 08 00 17 51 80 0D 03 02 00 00 00 00 E3 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0B 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0B 00 17 51 00 DA E1 E6 D3 64 7B 16 B5 90 00 02 [11:16:29]RAPDU: DA E1 E6 D3 64 7B 16 B5 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_SignData done [11:16:29]FM_MakeSignedData done [11:16:29]CreateOFDProtocolMessage [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 11 00 00 [11:16:29]Write to MH i2c: E2 08 00 18 51 80 11 00 00 00 00 00 00 E3 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 18 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 33 [11:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:16:29]wFMCommunicate OK [11:16:29]CreateOFDProtocolMessage done [11:16:29]OFDSenderStorePacket 2626 [11:16:29]StoreOFDPacket docnum=2626 [11:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 07 02 00 00 F4 26 FF 01 6F 89 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 14 1D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 0A 00 00 35 04 06 00 4F EC A1 03 66 6C DA E1 E6 D3 64 7B 16 B5 [11:16:29]CheckFolder [11:16:29]dirname=/storage/ofd_packets [11:16:29]CheckFolder done [11:16:29]ProducePacketName [11:16:29]name=ofd_packets/00002626 [11:16:29]NVStorageSaveData ofd_packets/00002626 [11:16:29]File name is /storage/ofd_packets/00002626 [11:16:29]Write 549 bytes [11:16:29]NVStorageSaveData done [11:16:29]OFDSenderStorePacket done [11:16:29]KKMCreateOFDPacket done [11:16:29]NVStorageSaveData kkm_last_timestamp [11:16:29]File name is /storage/kkm_last_timestamp [11:16:29]Write 4 bytes [11:16:29]NVStorageSaveData done [11:16:29]ExternCall_PrintAddStr [11:16:29]wPrintStart [11:16:29]Write to MH i2c: 01 00 00 19 51 6A [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 19 51 00 00 00 00 00 FF 0F 7F [11:16:29]RasterBufferAndPrint [11:16:29]line Счет N : (3)126799 [11:16:29]line ИНН: 02508201610067 [11:16:29]line Контрольно-Кассовый Чек [11:16:29]line ПРОДАЖА [11:16:29]line Товар: 2000031750019 [11:16:29]line Пакет Партнер Нефть [11:16:29]line 1.000 * 4.00 [11:16:29]line = 4.00 [11:16:29]line НДС 12% НСП 1% [11:16:29]line > о реализуемом товаре [11:16:29]line Товар: 4600721018757 [11:16:29]line Пиво Сиб.Кор кл 0,5л ст [11:16:29]line 1.000 * 145.00 [11:16:29]line = 145.00 [11:16:29]line НДС 12% НСП 1% [11:16:29]line > о реализуемом товаре [11:16:29]line Товар: 4700003150929 [11:16:29]line Новая Водка Organic 40% 0,7л [11:16:29]line 1.000 * 700.00 [11:16:29]line = 700.00 [11:16:29]line НДС 12% НСП 1% [11:16:29]line > о реализуемом товаре [11:16:29]line ИТОГО: 849.00 [11:16:29]line НСП 1% : 7.50 [11:16:29]line НДС 12% : 90.16 [11:16:29]line Наличными: 849.00 [11:16:29]line Безнал.: 0.00 [11:16:29]line Место: АЗС № 127 "Партнер Нефть" [11:16:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:16:29]line СНО: Общий режим [11:16:29]line Чек 79 31.07.2024 11:16 [11:16:29]line Смена: 17 ФФД: 1.0 [11:16:29]line ЗНМ: 0300000161 [11:16:29]line РНМ: 0000000000189667 [11:16:29]line Версия ККМ: v1.0 [11:16:29]line ФМ: 0000000002094248 [11:16:29]line ФД: 2626 [11:16:29]line ФПД: 87877732230764 [11:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111636&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2626&fm=87877732230764&tin=02508201610067®Number=0000000000189667&sum=84900 [11:16:29]line 0 [11:16:29]OFD Sender: Processing packet 2626 [packets to send 1, broken 0] [11:16:29]ProducePacketName [11:16:29]name=ofd_packets/00002626 [11:16:29]OFD Sender: To server: pG, [11:16:29]CommunicateWithHost lk.salyk.kg:30040 [11:16:29]ConnectInit lk.salyk.kg [11:16:29]written 0, free lines is 4095 [11:16:30]Connected sock=10 [11:16:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 07 02 00 00 F4 26 FF 01 6F 89 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 37 35 37 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 BA D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 14 1D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 0A 00 00 35 04 06 00 4F EC A1 03 66 6C DA E1 E6 D3 64 7B 16 B5 [11:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F7 A3 47 00 C8 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 32 30 39 34 32 34 38 10 04 04 00 42 0A 00 00 F4 03 04 00 7B C8 A9 66 B6 04 01 00 00 BF 46 83 77 01 37 A8 CD [11:16:30]CommunicateWithHost err = 0 [11:16:30]CheckOFDResponse [11:16:30]1017 (14) - 77093643461234 [11:16:30]1041 (16) - 0000000002094248 [11:16:30]1040 (4) - 2626 [11:16:30]1012 (4) - 31.07.2024 05:15 [11:16:30]1206 (1) - 0 [11:16:30]OFD Sender: Remove packet 2626 [11:16:30]ProducePacketName [11:16:30]name=ofd_packets/00002626 [11:16:30]NVStorageDeleteData [11:16:30]Write to MH i2c: 01 00 00 4D 51 9E [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 4D 51 00 00 00 00 00 94 0C 45 [11:16:30]RasterBufferAndPrint [11:16:30]line [11:16:30]line [11:16:30]line [11:16:30]line [11:16:30]line [11:16:30]written 0, free lines is 3229 [11:16:30]MH_Cut [11:16:30]Write to MH i2c: D1 01 00 54 51 01 77 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: D1 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: D1 01 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: D1 01 00 54 51 00 76 [11:16:30]Write to MH i2c: 01 00 00 55 51 A6 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]OFD Sender: No OFD packet to send [11:16:31]*** Cut start [11:16:31]*** Partial cut [11:16:31]*** CUTSNS_PIN = 1 [11:16:31]*** CUTSNS_PIN = 0 [11:16:31]*** Brake cut motor [11:16:31]Read from MH i2c: 01 [11:16:31]MH_I2C_Read... [11:16:31]*** Stop cut motor [11:16:31]*** Cut end [11:16:31]Read from MH i2c: 01 07 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 55 51 00 00 00 00 00 FF 0F BB [11:16:31]process_action close_receipt done [11:16:31]requested_data is exist [11:16:31]produce_requested_data [11:16:31]requested_item fm.sn is exist - process it [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 11 00 00 [11:16:31]Write to MH i2c: E2 08 00 56 51 80 11 00 00 00 00 00 00 21 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 56 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 71 [11:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:16:31]wFMCommunicate OK [11:16:31]requested_item fd.num is exist - process it [11:16:31]SAM_PROTO_GetFieldsCounters [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 13 00 00 [11:16:31]Write to MH i2c: E2 08 00 57 51 80 13 00 00 00 00 00 00 24 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 62 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 62 00 57 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 0A 00 00 0E 04 04 00 11 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 98 [11:16:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 0A 00 00 0E 04 04 00 11 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 [11:16:32]wFMCommunicate OK [11:16:32]SAM_PROTO_GetFieldsCounters done [11:16:32]requested_item shift.num is exist - process it [11:16:32]requested_item shift.opened is exist - process it [11:16:32]req_shift_opened [11:16:32]FM_GetShiftState [11:16:32]SAM_PROTO_GetShiftState [11:16:32]wFMCommunicate request_size=4 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 13 01 00 [11:16:32]Write to MH i2c: E2 08 00 58 51 80 13 01 00 00 00 00 00 26 [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 0E 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 0E 00 58 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 F3 [11:16:32]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:16:32]wFMCommunicate OK [11:16:32]SAM_PROTO_GetShiftState done [11:16:32]FM_GetShiftState done [11:16:32]req_shift_opened done [11:16:32]requested_item shift.open_date is exist - process it [11:16:32]req_shift_open_date [11:16:32]req_shift_open_date done [11:16:32]produce_requested_data done [11:16:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2626,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:16:32]process_action_free close_receipt [11:16:32]json_value_free [11:16:32]json_value_free done [11:16:32]process_json_proto returns [11:16:32]Send response to host [11:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2626,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:16:32]free response buf [11:16:32]execute_script done [11:16:32]execute_script returns [11:16:32]free content buf [11:16:32]Sock 9.Close socket [11:16:32]Sock 9.Thread stoped [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]accept exits with 7 [11:26:16]New connection [11:26:16]New thread 3067624804 created [11:26:16]Thread 3067481444 joined [11:26:16]Waiting for new connection... [11:26:16] Sock 7.Parse request [11:26:16]Sock 7.Check first char [11:26:16]Sock 7.First char is OK [11:26:16]request: POST /json_proto HTTP/1.0 [11:26:16]Method: POST [11:26:16]URL: /json_proto [11:26:16]Method is POST - this is cgi request [11:26:16]url: /json_proto [11:26:16]query_string will be loaded in cgi processing [11:26:16]execute_cgi json_proto POST (null) [11:26:16]execute_cgi path=json_proto method=POST [11:26:16]POST find Content-Length [11:26:16]Host: 172.17.45.132:8080 [11:26:16]Content-Length: 623 [11:26:16]Content-Type: application/json [11:26:16] [11:26:16]POST finish read [11:26:16]Found Content-Length = 623 [11:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126800", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:16]execute_script... [11:26:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126800", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:16]POST & json_proto [11:26:16]process_json_proto [11:26:16]json parsed OK: [11:26:16]protocol is kg_v1.0 [11:26:16]action value=close_receipt [11:26:16]process_action close_receipt [11:26:16]cmd_close_receipt [11:26:16]MH_GetDate [11:26:16]Write to MH i2c: F0 00 00 59 51 99 [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 09 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 09 00 59 51 00 60 1F AA 66 E3 0B 90 66 15 [11:26:16]GetLastDocTimeStamp 1722424596 [11:26:16]current date 1722425184 [11:26:16]FM_GetShiftState [11:26:16]SAM_PROTO_GetShiftState [11:26:16]wFMCommunicate request_size=4 [11:26:16]MH_SAM_APDU [11:26:16]CAPDU: 80 13 01 00 [11:26:16]Write to MH i2c: E2 08 00 5A 51 80 13 01 00 00 00 00 00 28 [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:16]Read from MH i2c: E2 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: E2 0E 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: E2 0E 00 5A 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 F5 [11:26:16]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:26:16]wFMCommunicate OK [11:26:16]SAM_PROTO_GetShiftState done [11:26:16]FM_GetShiftState done [11:26:16]opened in 1722384689 [11:26:16]opened+sec_in_day 1722471089 [11:26:16]quantity*price = 14000 [11:26:16]sum+1 = 14001 [11:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 80 31.07.2024 11:26 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2627 ФПД: 221254656019959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112624&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2627&fm=221254656019959&tin=02508201610067®Number=0000000000189667&sum=14000 0 [11:26:17]StoreToDocumentArchive [11:26:17]shift 17 fd 2627 [11:26:17]save to /storage/0017/doc_00002627 [11:26:17]save last doc name /storage/0017/doc_00002627 to /storage/kkm_last_doc_name [11:26:17]save OK [11:26:17]Clear old archive folders... [11:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:26:17]tlvbuf is 00924160 [11:26:17]SAM_PROTO_ClearQueue [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 09 00 00 [11:26:17]Write to MH i2c: E2 08 00 67 51 80 09 00 00 00 00 00 00 2A [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_ClearQueue done [11:26:17]KKMCreateOFDPacket [11:26:17]OFDProtocolAddRootSTLVToBuf [11:26:17]FM_MakeSignedData [11:26:17]FM_MakeSignedData [11:26:17]SAM_PROTO_SignData [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 01 02 [11:26:17]Write to MH i2c: E2 08 00 68 51 80 0D 01 02 00 00 00 00 32 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 68 51 00 90 00 2D [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=255 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 60 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [11:26:17]Write to MH i2c: E2 02 01 69 51 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 60 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 BE [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 69 51 00 90 00 2E [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=34 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 0A 00 00 35 04 06 00 C9 3A DD 2D 4D F7 [11:26:17]Write to MH i2c: E2 25 00 6A 51 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 0A 00 00 35 04 06 00 C9 3A DD 2D 4D F7 00 00 91 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 6A 51 00 90 00 2F [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 03 02 [11:26:17]Write to MH i2c: E2 08 00 6B 51 80 0D 03 02 00 00 00 00 37 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0B 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0B 00 6B 51 00 D2 B1 62 55 BB DA 3C 60 90 00 A3 [11:26:17]RAPDU: D2 B1 62 55 BB DA 3C 60 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_SignData done [11:26:17]FM_MakeSignedData done [11:26:17]CreateOFDProtocolMessage [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 11 00 00 [11:26:17]Write to MH i2c: E2 08 00 6C 51 80 11 00 00 00 00 00 00 37 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 6C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 87 [11:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:26:17]wFMCommunicate OK [11:26:17]CreateOFDProtocolMessage done [11:26:17]OFDSenderStorePacket 2627 [11:26:17]StoreOFDPacket docnum=2627 [11:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 5E 66 1F 01 61 23 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 60 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 0A 00 00 35 04 06 00 C9 3A DD 2D 4D F7 D2 B1 62 55 BB DA 3C 60 [11:26:17]CheckFolder [11:26:17]dirname=/storage/ofd_packets [11:26:17]CheckFolder done [11:26:17]ProducePacketName [11:26:17]name=ofd_packets/00002627 [11:26:17]NVStorageSaveData ofd_packets/00002627 [11:26:17]File name is /storage/ofd_packets/00002627 [11:26:17]Write 325 bytes [11:26:17]NVStorageSaveData done [11:26:17]OFDSenderStorePacket done [11:26:17]KKMCreateOFDPacket done [11:26:17]NVStorageSaveData kkm_last_timestamp [11:26:17]File name is /storage/kkm_last_timestamp [11:26:17]Write 4 bytes [11:26:17]NVStorageSaveData done [11:26:17]ExternCall_PrintAddStr [11:26:17]wPrintStart [11:26:17]Write to MH i2c: 01 00 00 6D 51 BE [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 6D 51 00 00 00 00 00 FF 0F D3 [11:26:17]RasterBufferAndPrint [11:26:17]line Счет N : (3)126800 [11:26:17]line ИНН: 02508201610067 [11:26:17]line Контрольно-Кассовый Чек [11:26:17]line ПРОДАЖА [11:26:17]line Товар: 48743587 [11:26:17]line Сигареты Winston XStyle Silver [11:26:17]line 1.000 * 140.00 [11:26:17]line = 140.00 [11:26:17]line НДС 12% НСП 1% [11:26:17]line > о реализуемом товаре [11:26:17]line ИТОГО: 140.00 [11:26:17]line НСП 1% : 1.24 [11:26:17]line НДС 12% : 14.87 [11:26:17]line Наличными: 140.00 [11:26:17]line Безнал.: 0.00 [11:26:17]line Место: АЗС № 127 "Партнер Нефть" [11:26:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:26:17]line СНО: Общий режим [11:26:17]line Чек 80 31.07.2024 11:26 [11:26:17]line Смена: 17 ФФД: 1.0 [11:26:17]line ЗНМ: 0300000161 [11:26:17]line РНМ: 0000000000189667 [11:26:17]line Версия ККМ: v1.0 [11:26:17]line ФМ: 0000000002094248 [11:26:17]line ФД: 2627 [11:26:18]line ФПД: 221254656019959 [11:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112624&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2627&fm=221254656019959&tin=02508201610067®Number=0000000000189667&sum=14000 [11:26:18]line 0 [11:26:18]OFD Sender: Processing packet 2627 [packets to send 1, broken 0] [11:26:18]ProducePacketName [11:26:18]name=ofd_packets/00002627 [11:26:18]OFD Sender: To server: pG, [11:26:18]CommunicateWithHost lk.salyk.kg:30040 [11:26:18]ConnectInit lk.salyk.kg [11:26:18]written 0, free lines is 4095 [11:26:18]Connected sock=10 [11:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 5E 66 1F 01 61 23 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 60 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 0A 00 00 35 04 06 00 C9 3A DD 2D 4D F7 D2 B1 62 55 BB DA 3C 60 [11:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 E8 47 00 1E 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 32 30 39 34 32 34 38 10 04 04 00 43 0A 00 00 F4 03 04 00 C7 CA A9 66 B6 04 01 00 00 E3 5A EF EA 0C DD 5D 9A [11:26:18]CommunicateWithHost err = 0 [11:26:18]CheckOFDResponse [11:26:18]1017 (14) - 77093643461234 [11:26:18]1041 (16) - 0000000002094248 [11:26:18]1040 (4) - 2627 [11:26:18]1012 (4) - 31.07.2024 05:25 [11:26:18]1206 (1) - 0 [11:26:18]OFD Sender: Remove packet 2627 [11:26:18]ProducePacketName [11:26:18]name=ofd_packets/00002627 [11:26:18]NVStorageDeleteData [11:26:18]Write to MH i2c: 01 00 00 96 51 E7 [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 07 00 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 07 00 96 51 00 00 00 00 00 06 0D 01 [11:26:18]RasterBufferAndPrint [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]written 0, free lines is 3340 [11:26:18]MH_Cut [11:26:18]Write to MH i2c: D1 01 00 9D 51 01 C0 [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 01 00 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 01 00 9D 51 00 BF [11:26:18]Write to MH i2c: 01 00 00 9E 51 EF [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]OFD Sender: No OFD packet to send [11:26:19]*** Cut start [11:26:19]*** Partial cut [11:26:19]*** CUTSNS_PIN = 1 [11:26:19]*** CUTSNS_PIN = 0 [11:26:19]*** Brake cut motor [11:26:19]Read from MH i2c: 01 [11:26:19]MH_I2C_Read... [11:26:19]*** Stop cut motor [11:26:19]*** Cut end [11:26:19]Read from MH i2c: 01 07 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: 01 07 00 9E 51 00 00 00 00 00 FF 0F 04 [11:26:19]process_action close_receipt done [11:26:19]requested_data is exist [11:26:19]produce_requested_data [11:26:19]requested_item fm.sn is exist - process it [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 11 00 00 [11:26:19]Write to MH i2c: E2 08 00 9F 51 80 11 00 00 00 00 00 00 6A [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 17 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 17 00 9F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BA [11:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:26:19]wFMCommunicate OK [11:26:19]requested_item fd.num is exist - process it [11:26:19]SAM_PROTO_GetFieldsCounters [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 13 00 00 [11:26:19]Write to MH i2c: E2 08 00 A0 51 80 13 00 00 00 00 00 00 6D [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 62 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 62 00 A0 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 0A 00 00 0E 04 04 00 11 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 E5 [11:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 0A 00 00 0E 04 04 00 11 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 [11:26:19]wFMCommunicate OK [11:26:19]SAM_PROTO_GetFieldsCounters done [11:26:20]requested_item shift.num is exist - process it [11:26:20]requested_item shift.opened is exist - process it [11:26:20]req_shift_opened [11:26:20]FM_GetShiftState [11:26:20]SAM_PROTO_GetShiftState [11:26:20]wFMCommunicate request_size=4 [11:26:20]MH_SAM_APDU [11:26:20]CAPDU: 80 13 01 00 [11:26:20]Write to MH i2c: E2 08 00 A1 51 80 13 01 00 00 00 00 00 6F [11:26:20]Write i2c OK [11:26:20]MH_I2C_Read... [11:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:20]Read from MH i2c: E2 [11:26:20]MH_I2C_Read... [11:26:20]Read from MH i2c: E2 0E 00 [11:26:20]MH_I2C_Read... [11:26:20]Read from MH i2c: E2 0E 00 A1 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3C [11:26:20]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:26:20]wFMCommunicate OK [11:26:20]SAM_PROTO_GetShiftState done [11:26:20]FM_GetShiftState done [11:26:20]req_shift_opened done [11:26:20]requested_item shift.open_date is exist - process it [11:26:20]req_shift_open_date [11:26:20]req_shift_open_date done [11:26:20]produce_requested_data done [11:26:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2627,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:26:20]process_action_free close_receipt [11:26:20]json_value_free [11:26:20]json_value_free done [11:26:20]process_json_proto returns [11:26:20]Send response to host [11:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2627,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:26:20]free response buf [11:26:20]execute_script done [11:26:20]execute_script returns [11:26:20]free content buf [11:26:20]Sock 7.Close socket [11:26:20]Sock 7.Thread stoped [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]accept exits with 9 [11:26:43]New connection [11:26:43]New thread 3067481444 created [11:26:43]Thread 3067624804 joined [11:26:43]Waiting for new connection... [11:26:43] Sock 9.Parse request [11:26:43]Sock 9.Check first char [11:26:43]Sock 9.First char is OK [11:26:43]request: POST /json_proto HTTP/1.0 [11:26:43]Method: POST [11:26:43]URL: /json_proto [11:26:43]Method is POST - this is cgi request [11:26:43]url: /json_proto [11:26:43]query_string will be loaded in cgi processing [11:26:43]execute_cgi json_proto POST (null) [11:26:43]execute_cgi path=json_proto method=POST [11:26:43]POST find Content-Length [11:26:43]Host: 172.17.45.132:8080 [11:26:43]Content-Length: 644 [11:26:43]Content-Type: application/json [11:26:43] [11:26:43]POST finish read [11:26:43]Found Content-Length = 644 [11:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126801", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:43]execute_script... [11:26: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 : (3)126801", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:43]POST & json_proto [11:26:43]process_json_proto [11:26:43]json parsed OK: [11:26:43]protocol is kg_v1.0 [11:26:43]action value=close_receipt [11:26:43]process_action close_receipt [11:26:43]cmd_close_receipt [11:26:43]MH_GetDate [11:26:43]Write to MH i2c: F0 00 00 A2 51 E2 [11:26:43]Write i2c OK [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 09 00 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 09 00 A2 51 00 7B 1F AA 66 E3 0B 90 66 79 [11:26:43]GetLastDocTimeStamp 1722425184 [11:26:43]current date 1722425211 [11:26:43]FM_GetShiftState [11:26:43]SAM_PROTO_GetShiftState [11:26:43]wFMCommunicate request_size=4 [11:26:43]MH_SAM_APDU [11:26:43]CAPDU: 80 13 01 00 [11:26:43]Write to MH i2c: E2 08 00 A3 51 80 13 01 00 00 00 00 00 71 [11:26:43]Write i2c OK [11:26:43]MH_I2C_Read... [11:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:43]Read from MH i2c: E2 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: E2 0E 00 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: E2 0E 00 A3 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3E [11:26:43]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:26:43]wFMCommunicate OK [11:26:43]SAM_PROTO_GetShiftState done [11:26:43]FM_GetShiftState done [11:26:43]opened in 1722384689 [11:26:43]opened+sec_in_day 1722471089 [11:26:43]quantity*price = 11500 [11:26:43]sum+1 = 11501 [11:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 81 31.07.2024 11:26 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2628 ФПД: 255697865959600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112651&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2628&fm=255697865959600&tin=02508201610067®Number=0000000000189667&sum=11500 0 [11:26:44]StoreToDocumentArchive [11:26:44]shift 17 fd 2628 [11:26:44]save to /storage/0017/doc_00002628 [11:26:44]save last doc name /storage/0017/doc_00002628 to /storage/kkm_last_doc_name [11:26:44]save OK [11:26:44]Clear old archive folders... [11:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:26:44]tlvbuf is 0099B090 [11:26:44]SAM_PROTO_ClearQueue [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 09 00 00 [11:26:44]Write to MH i2c: E2 08 00 B0 51 80 09 00 00 00 00 00 00 73 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 B0 51 00 90 00 75 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]SAM_PROTO_ClearQueue done [11:26:44]KKMCreateOFDPacket [11:26:44]OFDProtocolAddRootSTLVToBuf [11:26:44]FM_MakeSignedData [11:26:44]FM_MakeSignedData [11:26:44]SAM_PROTO_SignData [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 01 02 [11:26:44]Write to MH i2c: E2 08 00 B1 51 80 0D 01 02 00 00 00 00 7B [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 B1 51 00 90 00 76 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=255 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7B 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [11:26:44]Write to MH i2c: E2 02 01 B2 51 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7B 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 D3 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 B2 51 00 90 00 77 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=39 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 0A 00 00 35 04 06 00 E8 8E 4C 78 68 B0 [11:26:44]Write to MH i2c: E2 2A 00 B3 51 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 0A 00 00 35 04 06 00 E8 8E 4C 78 68 B0 00 00 D6 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 B3 51 00 90 00 78 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 03 02 [11:26:44]Write to MH i2c: E2 08 00 B4 51 80 0D 03 02 00 00 00 00 80 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0B 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0B 00 B4 51 00 9A 5C 1D 30 F6 40 AA 95 90 00 39 [11:26:44]RAPDU: 9A 5C 1D 30 F6 40 AA 95 90 00 [11:26:44]wFMCommunicate OK [11:26:44]SAM_PROTO_SignData done [11:26:44]FM_MakeSignedData done [11:26:44]CreateOFDProtocolMessage [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 11 00 00 [11:26:44]Write to MH i2c: E2 08 00 B5 51 80 11 00 00 00 00 00 00 80 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 17 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 17 00 B5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D0 [11:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:26:44]wFMCommunicate OK [11:26:44]CreateOFDProtocolMessage done [11:26:44]OFDSenderStorePacket 2628 [11:26:44]StoreOFDPacket docnum=2628 [11:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 9E 37 24 01 21 16 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7B 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 0A 00 00 35 04 06 00 E8 8E 4C 78 68 B0 9A 5C 1D 30 F6 40 AA 95 [11:26:44]CheckFolder [11:26:44]dirname=/storage/ofd_packets [11:26:44]CheckFolder done [11:26:44]ProducePacketName [11:26:44]name=ofd_packets/00002628 [11:26:44]NVStorageSaveData ofd_packets/00002628 [11:26:44]File name is /storage/ofd_packets/00002628 [11:26:44]Write 330 bytes [11:26:44]NVStorageSaveData done [11:26:44]OFDSenderStorePacket done [11:26:44]KKMCreateOFDPacket done [11:26:44]NVStorageSaveData kkm_last_timestamp [11:26:44]File name is /storage/kkm_last_timestamp [11:26:44]Write 4 bytes [11:26:44]NVStorageSaveData done [11:26:44]ExternCall_PrintAddStr [11:26:44]wPrintStart [11:26:44]Write to MH i2c: 01 00 00 B6 51 07 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: 01 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: 01 07 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: 01 07 00 B6 51 00 00 00 00 00 FF 0F 1C [11:26:44]RasterBufferAndPrint [11:26:44]line Счет N : (3)126801 [11:26:44]line ИНН: 02508201610067 [11:26:44]line Контрольно-Кассовый Чек [11:26:44]line ПРОДАЖА [11:26:44]line Товар: 2000036210013 [11:26:44]line Кофе Капучино (GABB TRADE) [11:26:44]line 1.000 * 115.00 [11:26:44]line = 115.00 [11:26:44]line НДС 12% НСП 1% [11:26:44]line > о реализуемом товаре [11:26:44]line ИТОГО: 115.00 [11:26:44]line НСП 1% : 1.02 [11:26:44]line НДС 12% : 12.21 [11:26:44]line Наличными: 115.00 [11:26:44]line Безнал.: 0.00 [11:26:44]line Место: АЗС № 127 "Партнер Нефть" [11:26:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:26:44]line СНО: Общий режим [11:26:44]line Чек 81 31.07.2024 11:26 [11:26:45]line Смена: 17 ФФД: 1.0 [11:26:45]line ЗНМ: 0300000161 [11:26:45]line РНМ: 0000000000189667 [11:26:45]line Версия ККМ: v1.0 [11:26:45]line ФМ: 0000000002094248 [11:26:45]line ФД: 2628 [11:26:45]line ФПД: 255697865959600 [11:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112651&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2628&fm=255697865959600&tin=02508201610067®Number=0000000000189667&sum=11500 [11:26:45]line 0 [11:26:45]OFD Sender: Processing packet 2628 [packets to send 1, broken 0] [11:26:45]ProducePacketName [11:26:45]name=ofd_packets/00002628 [11:26:45]OFD Sender: To server: pG, [11:26:45]CommunicateWithHost lk.salyk.kg:30040 [11:26:45]ConnectInit lk.salyk.kg [11:26:45]written 0, free lines is 4095 [11:26:45]Connected sock=10 [11:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 9E 37 24 01 21 16 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7B 1F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 0A 00 00 35 04 06 00 E8 8E 4C 78 68 B0 9A 5C 1D 30 F6 40 AA 95 [11:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 12 A2 47 00 E3 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 32 30 39 34 32 34 38 10 04 04 00 44 0A 00 00 F4 03 04 00 E2 CA A9 66 B6 04 01 00 00 46 50 C9 E6 0C 21 10 56 [11:26:45]CommunicateWithHost err = 0 [11:26:45]CheckOFDResponse [11:26:45]1017 (14) - 77093643461234 [11:26:45]1041 (16) - 0000000002094248 [11:26:45]1040 (4) - 2628 [11:26:45]1012 (4) - 31.07.2024 05:25 [11:26:45]1206 (1) - 0 [11:26:45]OFD Sender: Remove packet 2628 [11:26:45]ProducePacketName [11:26:45]name=ofd_packets/00002628 [11:26:45]NVStorageDeleteData [11:26:45]Write to MH i2c: 01 00 00 DE 51 2F [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 DE 51 00 00 00 00 00 33 0D 76 [11:26:45]RasterBufferAndPrint [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]written 0, free lines is 3386 [11:26:45]MH_Cut [11:26:45]Write to MH i2c: D1 01 00 E5 51 01 08 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 01 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 01 00 E5 51 00 07 [11:26:45]Write to MH i2c: 01 00 00 E6 51 37 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:46]OFD Sender: No OFD packet to send [11:26:46]*** Cut start [11:26:46]*** Partial cut [11:26:46]*** CUTSNS_PIN = 1 [11:26:46]*** CUTSNS_PIN = 0 [11:26:46]*** Brake cut motor [11:26:46]Read from MH i2c: 01 [11:26:46]MH_I2C_Read... [11:26:46]*** Stop cut motor [11:26:46]*** Cut end [11:26:46]Read from MH i2c: 01 07 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: 01 07 00 E6 51 00 00 00 00 00 FF 0F 4C [11:26:46]process_action close_receipt done [11:26:46]requested_data is exist [11:26:46]produce_requested_data [11:26:46]requested_item fm.sn is exist - process it [11:26:46]wFMCommunicate request_size=4 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 11 00 00 [11:26:46]Write to MH i2c: E2 08 00 E7 51 80 11 00 00 00 00 00 00 B2 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 17 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 17 00 E7 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 02 [11:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:26:46]wFMCommunicate OK [11:26:46]requested_item fd.num is exist - process it [11:26:46]SAM_PROTO_GetFieldsCounters [11:26:46]wFMCommunicate request_size=4 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 13 00 00 [11:26:46]Write to MH i2c: E2 08 00 E8 51 80 13 00 00 00 00 00 00 B5 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 E8 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 0A 00 00 0E 04 04 00 11 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 31 [11:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 0A 00 00 0E 04 04 00 11 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 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetFieldsCounters done [11:26:47]requested_item shift.num is exist - process it [11:26:47]requested_item shift.opened is exist - process it [11:26:47]req_shift_opened [11:26:47]FM_GetShiftState [11:26:47]SAM_PROTO_GetShiftState [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 13 01 00 [11:26:47]Write to MH i2c: E2 08 00 E9 51 80 13 01 00 00 00 00 00 B7 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:47]Read from MH i2c: E2 0E 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0E 00 E9 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 84 [11:26:47]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetShiftState done [11:26:47]FM_GetShiftState done [11:26:47]req_shift_opened done [11:26:47]requested_item shift.open_date is exist - process it [11:26:47]req_shift_open_date [11:26:47]req_shift_open_date done [11:26:47]produce_requested_data done [11:26:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2628,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:26:47]process_action_free close_receipt [11:26:47]json_value_free [11:26:47]json_value_free done [11:26:47]process_json_proto returns [11:26:47]Send response to host [11:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2628,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:26:47]free response buf [11:26:47]execute_script done [11:26:47]execute_script returns [11:26:47]free content buf [11:26:47]Sock 9.Close socket [11:26:47]Sock 9.Thread stoped [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]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:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:29]accept exits with 7 [11:38:29]New connection [11:38:29]New thread 3067624804 created [11:38:29]Thread 3067481444 joined [11:38:29]Waiting for new connection... [11:38:29] Sock 7.Parse request [11:38:29]Sock 7.Check first char [11:38:29]Sock 7.First char is OK [11:38:29]request: POST /json_proto HTTP/1.0 [11:38:29]Method: POST [11:38:29]URL: /json_proto [11:38:29]Method is POST - this is cgi request [11:38:29]url: /json_proto [11:38:29]query_string will be loaded in cgi processing [11:38:29]execute_cgi json_proto POST (null) [11:38:29]execute_cgi path=json_proto method=POST [11:38:29]POST find Content-Length [11:38:29]Host: 172.17.45.132:8080 [11:38:29]Content-Length: 803 [11:38:29]Content-Type: application/json [11:38:29] [11:38:29]POST finish read [11:38:29]Found Content-Length = 803 [11:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126802", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]execute_script... [11:38: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 : (3)126802", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]POST & json_proto [11:38:29]process_json_proto [11:38:29]json parsed OK: [11:38:29]protocol is kg_v1.0 [11:38:29]action value=close_receipt [11:38:29]process_action close_receipt [11:38:29]cmd_close_receipt [11:38:29]MH_GetDate [11:38:29]Write to MH i2c: F0 00 00 EA 51 2A [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 EA 51 00 3D 22 AA 66 E3 0B 90 66 86 [11:38:29]GetLastDocTimeStamp 1722425211 [11:38:29]current date 1722425917 [11:38:29]FM_GetShiftState [11:38:29]SAM_PROTO_GetShiftState [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 13 01 00 [11:38:29]Write to MH i2c: E2 08 00 EB 51 80 13 01 00 00 00 00 00 B9 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 EB 51 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 86 [11:38:29]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetShiftState done [11:38:29]FM_GetShiftState done [11:38:29]opened in 1722384689 [11:38:29]opened+sec_in_day 1722471089 [11:38:29]quantity*price = 15000 [11:38:29]sum+1 = 15001 [11:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 82 31.07.2024 11:38 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2629 ФПД: 3560870227563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T113837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2629&fm=3560870227563&tin=02508201610067®Number=0000000000189667&sum=15000 0 [11:38:30]StoreToDocumentArchive [11:38:30]shift 17 fd 2629 [11:38:30]save to /storage/0017/doc_00002629 [11:38:30]save last doc name /storage/0017/doc_00002629 to /storage/kkm_last_doc_name [11:38:30]save OK [11:38:30]Clear old archive folders... [11:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:38:30]tlvbuf is 009360C0 [11:38:30]SAM_PROTO_ClearQueue [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 09 00 00 [11:38:30]Write to MH i2c: E2 08 00 F8 51 80 09 00 00 00 00 00 00 BB [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 F8 51 00 90 00 BD [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_ClearQueue done [11:38:30]KKMCreateOFDPacket [11:38:30]OFDProtocolAddRootSTLVToBuf [11:38:30]FM_MakeSignedData [11:38:30]FM_MakeSignedData [11:38:30]SAM_PROTO_SignData [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 01 02 [11:38:30]Write to MH i2c: E2 08 00 F9 51 80 0D 01 02 00 00 00 00 C3 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 F9 51 00 90 00 BE [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=255 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3D 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [11:38:30]Write to MH i2c: E2 02 01 FA 51 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3D 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 C6 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=37 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 0A 00 00 35 04 06 00 03 3D 14 67 AE 6B [11:38:30]Write to MH i2c: E2 28 00 FB 51 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 0A 00 00 35 04 06 00 03 3D 14 67 AE 6B 00 00 3D [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 FB 51 00 90 00 C0 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 03 02 [11:38:30]Write to MH i2c: E2 08 00 FC 51 80 0D 03 02 00 00 00 00 C8 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 FC 51 00 2A 56 95 E1 03 40 49 DD 90 00 28 [11:38:30]RAPDU: 2A 56 95 E1 03 40 49 DD 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_SignData done [11:38:30]FM_MakeSignedData done [11:38:30]CreateOFDProtocolMessage [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 11 00 00 [11:38:30]Write to MH i2c: E2 08 00 FD 51 80 11 00 00 00 00 00 00 C8 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 FD 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [11:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:38:30]wFMCommunicate OK [11:38:30]CreateOFDProtocolMessage done [11:38:30]OFDSenderStorePacket 2629 [11:38:30]StoreOFDPacket docnum=2629 [11:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 88 F3 22 01 3D 79 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3D 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 0A 00 00 35 04 06 00 03 3D 14 67 AE 6B 2A 56 95 E1 03 40 49 DD [11:38:30]CheckFolder [11:38:30]dirname=/storage/ofd_packets [11:38:30]CheckFolder done [11:38:30]ProducePacketName [11:38:30]name=ofd_packets/00002629 [11:38:30]NVStorageSaveData ofd_packets/00002629 [11:38:30]File name is /storage/ofd_packets/00002629 [11:38:30]Write 328 bytes [11:38:30]NVStorageSaveData done [11:38:30]OFDSenderStorePacket done [11:38:30]KKMCreateOFDPacket done [11:38:30]NVStorageSaveData kkm_last_timestamp [11:38:30]File name is /storage/kkm_last_timestamp [11:38:30]Write 4 bytes [11:38:30]NVStorageSaveData done [11:38:30]ExternCall_PrintAddStr [11:38:30]wPrintStart [11:38:30]Write to MH i2c: 01 00 00 FE 51 4F [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 FE 51 00 00 00 00 00 FF 0F 64 [11:38:30]RasterBufferAndPrint [11:38:30]line Счет N : (3)126802 [11:38:30]line ИНН: 02508201610067 [11:38:30]line Контрольно-Кассовый Чек [11:38:30]line ПРОДАЖА [11:38:30]line Товар: 4640030092499 [11:38:30]line Сигареты ESSE SENSE Himalaya [11:38:30]line 1.000 * 150.00 [11:38:30]line = 150.00 [11:38:30]line НДС 12% НСП 1% [11:38:30]line > о реализуемом товаре [11:38:30]line ИТОГО: 150.00 [11:38:30]line НСП 1% : 1.33 [11:38:30]line НДС 12% : 15.93 [11:38:30]line Наличными: 0.00 [11:38:30]line Безнал.: 150.00 [11:38:30]line Место: АЗС № 127 "Партнер Нефть" [11:38:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:38:30]line СНО: Общий режим [11:38:30]line Чек 82 31.07.2024 11:38 [11:38:30]line Смена: 17 ФФД: 1.0 [11:38:30]line ЗНМ: 0300000161 [11:38:30]line РНМ: 0000000000189667 [11:38:30]line Версия ККМ: v1.0 [11:38:30]line Платежная система: Бакай Банк [11:38:30]line ФМ: 0000000002094248 [11:38:30]line ФД: 2629 [11:38:30]line ФПД: 3560870227563 [11:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T113837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2629&fm=3560870227563&tin=02508201610067®Number=0000000000189667&sum=15000 [11:38:31]line 0 [11:38:31]OFD Sender: Processing packet 2629 [packets to send 1, broken 0] [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00002629 [11:38:31]OFD Sender: To server: pG, [11:38:31]CommunicateWithHost lk.salyk.kg:30040 [11:38:31]ConnectInit lk.salyk.kg [11:38:31]written 0, free lines is 4095 [11:38:31]Connected sock=10 [11:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 88 F3 22 01 3D 79 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3D 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 0A 00 00 35 04 06 00 03 3D 14 67 AE 6B 2A 56 95 E1 03 40 49 DD [11:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 36 E5 47 00 A8 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 0A 00 00 F4 03 04 00 A4 CD A9 66 B6 04 01 00 00 B8 C0 93 2C 27 65 FE 8C [11:38:31]CommunicateWithHost err = 0 [11:38:31]CheckOFDResponse [11:38:31]1017 (14) - 77093643461234 [11:38:31]1041 (16) - 0000000002094248 [11:38:31]1040 (4) - 2629 [11:38:31]1012 (4) - 31.07.2024 05:37 [11:38:31]1206 (1) - 0 [11:38:31]OFD Sender: Remove packet 2629 [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00002629 [11:38:31]NVStorageDeleteData [11:38:31]Write to MH i2c: 01 00 00 29 52 7B [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 29 52 00 00 00 00 00 ED 0C 7B [11:38:31]RasterBufferAndPrint [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]written 0, free lines is 3318 [11:38:31]MH_Cut [11:38:31]Write to MH i2c: D1 01 00 30 52 01 54 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 30 52 00 53 [11:38:31]Write to MH i2c: 01 00 00 31 52 83 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]OFD Sender: No OFD packet to send [11:38:32]*** Cut start [11:38:32]*** Partial cut [11:38:32]*** CUTSNS_PIN = 1 [11:38:32]*** CUTSNS_PIN = 0 [11:38:32]*** Brake cut motor [11:38:32]Read from MH i2c: 01 [11:38:32]MH_I2C_Read... [11:38:32]*** Stop cut motor [11:38:32]*** Cut end [11:38:32]Read from MH i2c: 01 07 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 31 52 00 00 00 00 00 FF 0F 98 [11:38:32]process_action close_receipt done [11:38:32]requested_data is exist [11:38:32]produce_requested_data [11:38:32]requested_item fm.sn is exist - process it [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 11 00 00 [11:38:32]Write to MH i2c: E2 08 00 32 52 80 11 00 00 00 00 00 00 FE [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:32]Read from MH i2c: E2 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 17 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 17 00 32 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4E [11:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:38:32]wFMCommunicate OK [11:38:32]requested_item fd.num is exist - process it [11:38:32]SAM_PROTO_GetFieldsCounters [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 13 00 00 [11:38:32]Write to MH i2c: E2 08 00 33 52 80 13 00 00 00 00 00 00 01 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 33 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 0A 00 00 0E 04 04 00 11 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 81 [11:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 0A 00 00 0E 04 04 00 11 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 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetFieldsCounters done [11:38:33]requested_item shift.num is exist - process it [11:38:33]requested_item shift.opened is exist - process it [11:38:33]req_shift_opened [11:38:33]FM_GetShiftState [11:38:33]SAM_PROTO_GetShiftState [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 01 00 [11:38:33]Write to MH i2c: E2 08 00 34 52 80 13 01 00 00 00 00 00 03 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 34 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 D0 [11:38:33]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetShiftState done [11:38:33]FM_GetShiftState done [11:38:33]req_shift_opened done [11:38:33]requested_item shift.open_date is exist - process it [11:38:33]req_shift_open_date [11:38:33]req_shift_open_date done [11:38:33]produce_requested_data done [11:38:33]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2629,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:38:33]process_action_free close_receipt [11:38:33]json_value_free [11:38:33]json_value_free done [11:38:33]process_json_proto returns [11:38:33]Send response to host [11:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2629,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:38:33]free response buf [11:38:33]execute_script done [11:38:33]execute_script returns [11:38:33]free content buf [11:38:33]Sock 7.Close socket [11:38:33]Sock 7.Thread stoped [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:15]accept exits with 9 [11:41:15]New connection [11:41:15]New thread 3067481444 created [11:41:15]Thread 3067624804 joined [11:41:15]Waiting for new connection... [11:41:15] Sock 9.Parse request [11:41:15]Sock 9.Check first char [11:41:15]Sock 9.First char is OK [11:41:15]request: POST /json_proto HTTP/1.0 [11:41:15]Method: POST [11:41:15]URL: /json_proto [11:41:15]Method is POST - this is cgi request [11:41:15]url: /json_proto [11:41:15]query_string will be loaded in cgi processing [11:41:15]execute_cgi json_proto POST (null) [11:41:15]execute_cgi path=json_proto method=POST [11:41:15]POST find Content-Length [11:41:15]Host: 172.17.45.132:8080 [11:41:15]Content-Length: 895 [11:41:15]Content-Type: application/json [11:41:15] [11:41:15]POST finish read [11:41:15]Found Content-Length = 895 [11:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126803", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:15]execute_script... [11:41: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 : (3)126803", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:15]POST & json_proto [11:41:15]process_json_proto [11:41:15]json parsed OK: [11:41:15]protocol is kg_v1.0 [11:41:15]action value=close_receipt [11:41:15]process_action close_receipt [11:41:15]cmd_close_receipt [11:41:15]MH_GetDate [11:41:15]Write to MH i2c: F0 00 00 35 52 76 [11:41:15]Write i2c OK [11:41:15]MH_I2C_Read... [11:41:15]Read from MH i2c: F0 [11:41:15]MH_I2C_Read... [11:41:15]Read from MH i2c: F0 09 00 [11:41:15]MH_I2C_Read... [11:41:15]Read from MH i2c: F0 09 00 35 52 00 E3 22 AA 66 E3 0B 90 66 78 [11:41:15]GetLastDocTimeStamp 1722425917 [11:41:15]current date 1722426083 [11:41:15]FM_GetShiftState [11:41:15]SAM_PROTO_GetShiftState [11:41:15]wFMCommunicate request_size=4 [11:41:15]MH_SAM_APDU [11:41:15]CAPDU: 80 13 01 00 [11:41:15]Write to MH i2c: E2 08 00 36 52 80 13 01 00 00 00 00 00 05 [11:41:15]Write i2c OK [11:41:15]MH_I2C_Read... [11:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:15]Read from MH i2c: E2 [11:41:15]MH_I2C_Read... [11:41:15]Read from MH i2c: E2 0E 00 [11:41:15]MH_I2C_Read... [11:41:15]Read from MH i2c: E2 0E 00 36 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 D2 [11:41:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:41:15]wFMCommunicate OK [11:41:15]SAM_PROTO_GetShiftState done [11:41:15]FM_GetShiftState done [11:41:15]opened in 1722384689 [11:41:15]opened+sec_in_day 1722471089 [11:41:15]quantity*price = 16000 [11:41:15]sum+1 = 16001 [11:41:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 83 31.07.2024 11:41 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2630 ФПД: 14709515180972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114124&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2630&fm=14709515180972&tin=02508201610067®Number=0000000000189667&sum=28000 0 [11:41:16]StoreToDocumentArchive [11:41:16]shift 17 fd 2630 [11:41:16]save to /storage/0017/doc_00002630 [11:41:16]save last doc name /storage/0017/doc_00002630 to /storage/kkm_last_doc_name [11:41:16]save OK [11:41:16]Clear old archive folders... [11:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=379 [11:41:16]tlvbuf is 009ACF40 [11:41:16]SAM_PROTO_ClearQueue [11:41:16]wFMCommunicate request_size=4 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 09 00 00 [11:41:16]Write to MH i2c: E2 08 00 43 52 80 09 00 00 00 00 00 00 07 [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 43 52 00 90 00 09 [11:41:16]RAPDU: 90 00 [11:41:16]wFMCommunicate OK [11:41:16]SAM_PROTO_ClearQueue done [11:41:16]KKMCreateOFDPacket [11:41:16]OFDProtocolAddRootSTLVToBuf [11:41:16]FM_MakeSignedData [11:41:16]FM_MakeSignedData [11:41:16]SAM_PROTO_SignData [11:41:16]wFMCommunicate request_size=4 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 0D 01 02 [11:41:16]Write to MH i2c: E2 08 00 44 52 80 0D 01 02 00 00 00 00 0F [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 44 52 00 90 00 0A [11:41:16]RAPDU: 90 00 [11:41:16]wFMCommunicate OK [11:41:16]wFMCommunicate request_size=255 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 [11:41:16]Write to MH i2c: E2 02 01 45 52 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 00 B7 [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 45 52 00 90 00 0B [11:41:16]RAPDU: 90 00 [11:41:16]wFMCommunicate OK [11:41:16]wFMCommunicate request_size=138 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 E4 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 0A 00 00 35 04 06 00 0D 60 D3 6D 5B AC [11:41:16]Write to MH i2c: E2 8D 00 46 52 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 E4 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 0A 00 00 35 04 06 00 0D 60 D3 6D 5B AC 00 00 45 [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 03 00 46 52 00 90 00 0C [11:41:16]RAPDU: 90 00 [11:41:16]wFMCommunicate OK [11:41:16]wFMCommunicate request_size=4 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 0D 03 02 [11:41:16]Write to MH i2c: E2 08 00 47 52 80 0D 03 02 00 00 00 00 14 [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 0B 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 0B 00 47 52 00 CA 5D F9 C8 54 A6 07 B7 90 00 B5 [11:41:16]RAPDU: CA 5D F9 C8 54 A6 07 B7 90 00 [11:41:16]wFMCommunicate OK [11:41:16]SAM_PROTO_SignData done [11:41:16]FM_MakeSignedData done [11:41:16]CreateOFDProtocolMessage [11:41:16]wFMCommunicate request_size=4 [11:41:16]MH_SAM_APDU [11:41:16]CAPDU: 80 11 00 00 [11:41:16]Write to MH i2c: E2 08 00 48 52 80 11 00 00 00 00 00 00 14 [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:16]Read from MH i2c: E2 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 17 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: E2 17 00 48 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 64 [11:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:41:16]wFMCommunicate OK [11:41:16]CreateOFDProtocolMessage done [11:41:16]OFDSenderStorePacket 2630 [11:41:16]StoreOFDPacket docnum=2630 [11:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8F 01 00 00 45 5D 87 01 FC 82 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 E4 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 0A 00 00 35 04 06 00 0D 60 D3 6D 5B AC CA 5D F9 C8 54 A6 07 B7 [11:41:16]CheckFolder [11:41:16]dirname=/storage/ofd_packets [11:41:16]CheckFolder done [11:41:16]ProducePacketName [11:41:16]name=ofd_packets/00002630 [11:41:16]NVStorageSaveData ofd_packets/00002630 [11:41:16]File name is /storage/ofd_packets/00002630 [11:41:16]Write 429 bytes [11:41:16]NVStorageSaveData done [11:41:16]OFDSenderStorePacket done [11:41:16]KKMCreateOFDPacket done [11:41:16]NVStorageSaveData kkm_last_timestamp [11:41:16]File name is /storage/kkm_last_timestamp [11:41:16]Write 4 bytes [11:41:16]NVStorageSaveData done [11:41:16]ExternCall_PrintAddStr [11:41:16]wPrintStart [11:41:16]Write to MH i2c: 01 00 00 49 52 9B [11:41:16]Write i2c OK [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: 01 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: 01 07 00 [11:41:16]MH_I2C_Read... [11:41:16]Read from MH i2c: 01 07 00 49 52 00 00 00 00 00 FF 0F B0 [11:41:16]RasterBufferAndPrint [11:41:16]line Счет N : (3)126803 [11:41:16]line ИНН: 02508201610067 [11:41:16]line Контрольно-Кассовый Чек [11:41:16]line ПРОДАЖА [11:41:16]line Товар: 4870001570057 [11:41:16]line Напиток Pepsi 0,5л [11:41:17]line 2.000 * 80.00 [11:41:17]line = 160.00 [11:41:17]line НДС 12% НСП 1% [11:41:17]line > о реализуемом товаре [11:41:17]line Товар: 4011100977952 [11:41:17]line Шок Батончик Твикс 55г [11:41:17]line 2.000 * 60.00 [11:41:17]line = 120.00 [11:41:17]line НДС 12% НСП 1% [11:41:17]line > о реализуемом товаре [11:41:17]line ИТОГО: 280.00 [11:41:17]line НСП 1% : 2.48 [11:41:17]line НДС 12% : 29.73 [11:41:17]line Наличными: 280.00 [11:41:17]line Безнал.: 0.00 [11:41:17]line Место: АЗС № 127 "Партнер Нефть" [11:41:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:41:17]line СНО: Общий режим [11:41:17]line Чек 83 31.07.2024 11:41 [11:41:17]line Смена: 17 ФФД: 1.0 [11:41:17]line ЗНМ: 0300000161 [11:41:17]line РНМ: 0000000000189667 [11:41:17]line Версия ККМ: v1.0 [11:41:17]line ФМ: 0000000002094248 [11:41:17]line ФД: 2630 [11:41:17]line ФПД: 14709515180972 [11:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114124&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2630&fm=14709515180972&tin=02508201610067®Number=0000000000189667&sum=28000 [11:41:17]line 0 [11:41:17]OFD Sender: Processing packet 2630 [packets to send 1, broken 0] [11:41:17]ProducePacketName [11:41:17]name=ofd_packets/00002630 [11:41:17]OFD Sender: To server: pG, [11:41:17]CommunicateWithHost lk.salyk.kg:30040 [11:41:17]ConnectInit lk.salyk.kg [11:41:17]written 0, free lines is 4095 [11:41:17]Connected sock=10 [11:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8F 01 00 00 45 5D 87 01 FC 82 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 E4 22 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 0A 00 00 35 04 06 00 0D 60 D3 6D 5B AC CA 5D F9 C8 54 A6 07 B7 [11:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4C C9 47 00 4B 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 0A 00 00 F4 03 04 00 4A CE A9 66 B6 04 01 00 00 04 C7 CC 68 86 9D D4 87 [11:41:17]CommunicateWithHost err = 0 [11:41:17]CheckOFDResponse [11:41:17]1017 (14) - 77093643461234 [11:41:17]1041 (16) - 0000000002094248 [11:41:17]1040 (4) - 2630 [11:41:17]1012 (4) - 31.07.2024 05:40 [11:41:17]1206 (1) - 0 [11:41:17]OFD Sender: Remove packet 2630 [11:41:17]ProducePacketName [11:41:17]name=ofd_packets/00002630 [11:41:17]NVStorageDeleteData [11:41:17]Write to MH i2c: 01 00 00 77 52 C9 [11:41:17]Write i2c OK [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: 01 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: 01 07 00 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: 01 07 00 77 52 00 00 00 00 00 D3 0C AF [11:41:17]RasterBufferAndPrint [11:41:17]line [11:41:17]line [11:41:17]line [11:41:17]line [11:41:17]line [11:41:17]written 0, free lines is 3292 [11:41:17]MH_Cut [11:41:17]Write to MH i2c: D1 01 00 7E 52 01 A2 [11:41:17]Write i2c OK [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: D1 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: D1 01 00 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: D1 01 00 7E 52 00 A1 [11:41:17]Write to MH i2c: 01 00 00 7F 52 D1 [11:41:17]Write i2c OK [11:41:17]MH_I2C_Read... [11:41:18]OFD Sender: No OFD packet to send [11:41:18]*** Cut start [11:41:18]*** Partial cut [11:41:18]*** CUTSNS_PIN = 1 [11:41:18]*** CUTSNS_PIN = 0 [11:41:18]*** Brake cut motor [11:41:19]Read from MH i2c: 01 [11:41:19]MH_I2C_Read... [11:41:19]*** Stop cut motor [11:41:19]*** Cut end [11:41:19]Read from MH i2c: 01 07 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: 01 07 00 7F 52 00 00 00 00 00 FF 0F E6 [11:41:19]process_action close_receipt done [11:41:19]requested_data is exist [11:41:19]produce_requested_data [11:41:19]requested_item fm.sn is exist - process it [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 11 00 00 [11:41:19]Write to MH i2c: E2 08 00 80 52 80 11 00 00 00 00 00 00 4C [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 17 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 17 00 80 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [11:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:41:19]wFMCommunicate OK [11:41:19]requested_item fd.num is exist - process it [11:41:19]SAM_PROTO_GetFieldsCounters [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 13 00 00 [11:41:19]Write to MH i2c: E2 08 00 81 52 80 13 00 00 00 00 00 00 4F [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 62 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 62 00 81 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 0A 00 00 0E 04 04 00 11 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 D3 [11:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 0A 00 00 0E 04 04 00 11 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 [11:41:19]wFMCommunicate OK [11:41:19]SAM_PROTO_GetFieldsCounters done [11:41:19]requested_item shift.num is exist - process it [11:41:19]requested_item shift.opened is exist - process it [11:41:19]req_shift_opened [11:41:19]FM_GetShiftState [11:41:19]SAM_PROTO_GetShiftState [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 13 01 00 [11:41:19]Write to MH i2c: E2 08 00 82 52 80 13 01 00 00 00 00 00 51 [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 0E 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 0E 00 82 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 1E [11:41:19]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:41:19]wFMCommunicate OK [11:41:19]SAM_PROTO_GetShiftState done [11:41:19]FM_GetShiftState done [11:41:19]req_shift_opened done [11:41:19]requested_item shift.open_date is exist - process it [11:41:19]req_shift_open_date [11:41:19]req_shift_open_date done [11:41:19]produce_requested_data done [11:41:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2630,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:41:19]process_action_free close_receipt [11:41:19]json_value_free [11:41:19]json_value_free done [11:41:19]process_json_proto returns [11:41:19]Send response to host [11:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2630,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:41:19]free response buf [11:41:19]execute_script done [11:41:19]execute_script returns [11:41:19]free content buf [11:41:19]Sock 9.Close socket [11:41:19]Sock 9.Thread stoped [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:31]accept exits with 7 [11:44:31]New connection [11:44:31]New thread 3067624804 created [11:44:31]Thread 3067481444 joined [11:44:31]Waiting for new connection... [11:44:31] Sock 7.Parse request [11:44:31]Sock 7.Check first char [11:44:31]Sock 7.First char is OK [11:44:31]request: POST /json_proto HTTP/1.0 [11:44:31]Method: POST [11:44:31]URL: /json_proto [11:44:31]Method is POST - this is cgi request [11:44:31]url: /json_proto [11:44:31]query_string will be loaded in cgi processing [11:44:31]execute_cgi json_proto POST (null) [11:44:31]execute_cgi path=json_proto method=POST [11:44:31]POST find Content-Length [11:44:31]Host: 172.17.45.132:8080 [11:44:31]Content-Length: 652 [11:44:31]Content-Type: application/json [11:44:31] [11:44:31]POST finish read [11:44:31]Found Content-Length = 652 [11:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126804", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:31]execute_script... [11:44:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126804", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:31]POST & json_proto [11:44:31]process_json_proto [11:44:31]json parsed OK: [11:44:31]protocol is kg_v1.0 [11:44:31]action value=close_receipt [11:44:31]process_action close_receipt [11:44:31]cmd_close_receipt [11:44:31]MH_GetDate [11:44:31]Write to MH i2c: F0 00 00 83 52 C4 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 09 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 09 00 83 52 00 A7 23 AA 66 E3 0B 90 66 8B [11:44:31]GetLastDocTimeStamp 1722426084 [11:44:31]current date 1722426279 [11:44:31]FM_GetShiftState [11:44:31]SAM_PROTO_GetShiftState [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 01 00 [11:44:31]Write to MH i2c: E2 08 00 84 52 80 13 01 00 00 00 00 00 53 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 84 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 20 [11:44:31]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:44:31]wFMCommunicate OK [11:44:31]SAM_PROTO_GetShiftState done [11:44:31]FM_GetShiftState done [11:44:31]opened in 1722384689 [11:44:31]opened+sec_in_day 1722471089 [11:44:31]quantity*price = 25000 [11:44:31]sum+1 = 25001 [11:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 84 31.07.2024 11:44 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2631 ФПД: 267747675573772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114439&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2631&fm=267747675573772&tin=02508201610067®Number=0000000000189667&sum=25000 0 [11:44:32]StoreToDocumentArchive [11:44:32]shift 17 fd 2631 [11:44:32]save to /storage/0017/doc_00002631 [11:44:32]save last doc name /storage/0017/doc_00002631 to /storage/kkm_last_doc_name [11:44:32]save OK [11:44:32]Clear old archive folders... [11:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:44:32]tlvbuf is 0083CDE0 [11:44:32]SAM_PROTO_ClearQueue [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 09 00 00 [11:44:32]Write to MH i2c: E2 08 00 91 52 80 09 00 00 00 00 00 00 55 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 91 52 00 90 00 57 [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_ClearQueue done [11:44:32]KKMCreateOFDPacket [11:44:32]OFDProtocolAddRootSTLVToBuf [11:44:32]FM_MakeSignedData [11:44:32]FM_MakeSignedData [11:44:32]SAM_PROTO_SignData [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 01 02 [11:44:32]Write to MH i2c: E2 08 00 92 52 80 0D 01 02 00 00 00 00 5D [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 92 52 00 90 00 58 [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]wFMCommunicate request_size=255 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 23 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [11:44:32]Write to MH i2c: E2 02 01 93 52 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 23 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 E8 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 93 52 00 90 00 59 [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]wFMCommunicate request_size=43 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 0A 00 00 35 04 06 00 F3 83 DD 17 8E 0C [11:44:32]Write to MH i2c: E2 2E 00 94 52 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 0A 00 00 35 04 06 00 F3 83 DD 17 8E 0C 00 00 9A [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 94 52 00 90 00 5A [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 03 02 [11:44:32]Write to MH i2c: E2 08 00 95 52 80 0D 03 02 00 00 00 00 62 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0B 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0B 00 95 52 00 0B 0D F1 DF C4 E3 7F CE 90 00 3F [11:44:32]RAPDU: 0B 0D F1 DF C4 E3 7F CE 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_SignData done [11:44:32]FM_MakeSignedData done [11:44:32]CreateOFDProtocolMessage [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 11 00 00 [11:44:32]Write to MH i2c: E2 08 00 96 52 80 11 00 00 00 00 00 00 62 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 96 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [11:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:44:32]wFMCommunicate OK [11:44:32]CreateOFDProtocolMessage done [11:44:32]OFDSenderStorePacket 2631 [11:44:32]StoreOFDPacket docnum=2631 [11:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 C0 5E 28 01 21 39 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 23 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 0A 00 00 35 04 06 00 F3 83 DD 17 8E 0C 0B 0D F1 DF C4 E3 7F CE [11:44:32]CheckFolder [11:44:32]dirname=/storage/ofd_packets [11:44:32]CheckFolder done [11:44:32]ProducePacketName [11:44:32]name=ofd_packets/00002631 [11:44:32]NVStorageSaveData ofd_packets/00002631 [11:44:32]File name is /storage/ofd_packets/00002631 [11:44:32]Write 334 bytes [11:44:32]NVStorageSaveData done [11:44:32]OFDSenderStorePacket done [11:44:32]KKMCreateOFDPacket done [11:44:32]NVStorageSaveData kkm_last_timestamp [11:44:32]File name is /storage/kkm_last_timestamp [11:44:32]Write 4 bytes [11:44:32]NVStorageSaveData done [11:44:32]ExternCall_PrintAddStr [11:44:32]wPrintStart [11:44:32]Write to MH i2c: 01 00 00 97 52 E9 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: 01 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: 01 07 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: 01 07 00 97 52 00 00 00 00 00 FF 0F FE [11:44:32]RasterBufferAndPrint [11:44:32]line Счет N : (3)126804 [11:44:32]line ИНН: 02508201610067 [11:44:32]line Контрольно-Кассовый Чек [11:44:32]line ПРОДАЖА [11:44:32]line Товар: 2000036190018 [11:44:32]line Кофе Американо XL(GABB TRADE) [11:44:32]line 2.000 * 125.00 [11:44:32]line = 250.00 [11:44:32]line НДС 12% НСП 1% [11:44:32]line > о реализуемом товаре [11:44:32]line ИТОГО: 250.00 [11:44:32]line НСП 1% : 2.21 [11:44:32]line НДС 12% : 26.55 [11:44:32]line Наличными: 250.00 [11:44:32]line Безнал.: 0.00 [11:44:32]line Место: АЗС № 127 "Партнер Нефть" [11:44:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:44:33]line СНО: Общий режим [11:44:33]line Чек 84 31.07.2024 11:44 [11:44:33]line Смена: 17 ФФД: 1.0 [11:44:33]line ЗНМ: 0300000161 [11:44:33]line РНМ: 0000000000189667 [11:44:33]line Версия ККМ: v1.0 [11:44:33]line ФМ: 0000000002094248 [11:44:33]line ФД: 2631 [11:44:33]line ФПД: 267747675573772 [11:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114439&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2631&fm=267747675573772&tin=02508201610067®Number=0000000000189667&sum=25000 [11:44:33]line 0 [11:44:33]OFD Sender: Processing packet 2631 [packets to send 1, broken 0] [11:44:33]ProducePacketName [11:44:33]name=ofd_packets/00002631 [11:44:33]OFD Sender: To server: pG, [11:44:33]CommunicateWithHost lk.salyk.kg:30040 [11:44:33]ConnectInit lk.salyk.kg [11:44:33]written 0, free lines is 4095 [11:44:33]Connected sock=10 [11:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 C0 5E 28 01 21 39 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 23 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 0A 00 00 35 04 06 00 F3 83 DD 17 8E 0C 0B 0D F1 DF C4 E3 7F CE [11:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B8 83 47 00 C4 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 32 30 39 34 32 34 38 10 04 04 00 47 0A 00 00 F4 03 04 00 0E CF A9 66 B6 04 01 00 00 37 FE 15 85 FF FC 1B E9 [11:44:33]CommunicateWithHost err = 0 [11:44:33]CheckOFDResponse [11:44:33]1017 (14) - 77093643461234 [11:44:33]1041 (16) - 0000000002094248 [11:44:33]1040 (4) - 2631 [11:44:33]1012 (4) - 31.07.2024 05:43 [11:44:33]1206 (1) - 0 [11:44:33]OFD Sender: Remove packet 2631 [11:44:33]ProducePacketName [11:44:33]name=ofd_packets/00002631 [11:44:33]NVStorageDeleteData [11:44:33]Write to MH i2c: 01 00 00 C0 52 12 [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 07 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 07 00 C0 52 00 00 00 00 00 13 0D 39 [11:44:33]RasterBufferAndPrint [11:44:33]line [11:44:33]line [11:44:33]line [11:44:33]line [11:44:33]line [11:44:33]written 0, free lines is 3353 [11:44:33]MH_Cut [11:44:33]Write to MH i2c: D1 01 00 C7 52 01 EB [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: D1 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: D1 01 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: D1 01 00 C7 52 00 EA [11:44:33]Write to MH i2c: 01 00 00 C8 52 1A [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]OFD Sender: No OFD packet to send [11:44:34]*** Cut start [11:44:34]*** Partial cut [11:44:34]*** CUTSNS_PIN = 1 [11:44:34]*** CUTSNS_PIN = 0 [11:44:34]*** Brake cut motor [11:44:34]Read from MH i2c: 01 [11:44:34]MH_I2C_Read... [11:44:34]*** Stop cut motor [11:44:34]*** Cut end [11:44:34]Read from MH i2c: 01 07 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 C8 52 00 00 00 00 00 FF 0F 2F [11:44:34]process_action close_receipt done [11:44:34]requested_data is exist [11:44:34]produce_requested_data [11:44:34]requested_item fm.sn is exist - process it [11:44:34]wFMCommunicate request_size=4 [11:44:34]MH_SAM_APDU [11:44:34]CAPDU: 80 11 00 00 [11:44:34]Write to MH i2c: E2 08 00 C9 52 80 11 00 00 00 00 00 00 95 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:34]Read from MH i2c: E2 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: E2 17 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: E2 17 00 C9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E5 [11:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:44:34]wFMCommunicate OK [11:44:34]requested_item fd.num is exist - process it [11:44:34]SAM_PROTO_GetFieldsCounters [11:44:34]wFMCommunicate request_size=4 [11:44:34]MH_SAM_APDU [11:44:34]CAPDU: 80 13 00 00 [11:44:34]Write to MH i2c: E2 08 00 CA 52 80 13 00 00 00 00 00 00 98 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:34]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 CA 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 0A 00 00 0E 04 04 00 11 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 20 [11:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 0A 00 00 0E 04 04 00 11 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 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetFieldsCounters done [11:44:35]requested_item shift.num is exist - process it [11:44:35]requested_item shift.opened is exist - process it [11:44:35]req_shift_opened [11:44:35]FM_GetShiftState [11:44:35]SAM_PROTO_GetShiftState [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 01 00 [11:44:35]Write to MH i2c: E2 08 00 CB 52 80 13 01 00 00 00 00 00 9A [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 CB 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 67 [11:44:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetShiftState done [11:44:35]FM_GetShiftState done [11:44:35]req_shift_opened done [11:44:35]requested_item shift.open_date is exist - process it [11:44:35]req_shift_open_date [11:44:35]req_shift_open_date done [11:44:35]produce_requested_data done [11:44:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2631,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:44:35]process_action_free close_receipt [11:44:35]json_value_free [11:44:35]json_value_free done [11:44:35]process_json_proto returns [11:44:35]Send response to host [11:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2631,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:44:35]free response buf [11:44:35]execute_script done [11:44:35]execute_script returns [11:44:35]free content buf [11:44:35]Sock 7.Close socket [11:44:35]Sock 7.Thread stoped [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:41]accept exits with 9 [11:47:41]New connection [11:47:41]New thread 3067481444 created [11:47:41]Thread 3067624804 joined [11:47:41]Waiting for new connection... [11:47:41] Sock 9.Parse request [11:47:41]Sock 9.Check first char [11:47:41]Sock 9.First char is OK [11:47:41]request: POST /json_proto HTTP/1.0 [11:47:41]Method: POST [11:47:41]URL: /json_proto [11:47:41]Method is POST - this is cgi request [11:47:41]url: /json_proto [11:47:41]query_string will be loaded in cgi processing [11:47:41]execute_cgi json_proto POST (null) [11:47:41]execute_cgi path=json_proto method=POST [11:47:41]POST find Content-Length [11:47:41]Host: 172.17.45.132:8080 [11:47:41]Content-Length: 1200 [11:47:41]Content-Type: application/json [11:47:41] [11:47:41]POST finish read [11:47:41]Found Content-Length = 1200 [11:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126805", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:41]execute_script... [11:47:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126805", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:41]POST & json_proto [11:47:41]process_json_proto [11:47:41]json parsed OK: [11:47:41]protocol is kg_v1.0 [11:47:41]action value=close_receipt [11:47:41]process_action close_receipt [11:47:41]cmd_close_receipt [11:47:41]MH_GetDate [11:47:41]Write to MH i2c: F0 00 00 CC 52 0D [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 09 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 09 00 CC 52 00 66 24 AA 66 E3 0B 90 66 94 [11:47:41]GetLastDocTimeStamp 1722426279 [11:47:41]current date 1722426470 [11:47:41]FM_GetShiftState [11:47:41]SAM_PROTO_GetShiftState [11:47:41]wFMCommunicate request_size=4 [11:47:41]MH_SAM_APDU [11:47:41]CAPDU: 80 13 01 00 [11:47:41]Write to MH i2c: E2 08 00 CD 52 80 13 01 00 00 00 00 00 9C [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:41]Read from MH i2c: E2 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: E2 0E 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: E2 0E 00 CD 52 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 69 [11:47:41]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:47:41]wFMCommunicate OK [11:47:41]SAM_PROTO_GetShiftState done [11:47:41]FM_GetShiftState done [11:47:41]opened in 1722384689 [11:47:41]opened+sec_in_day 1722471089 [11:47:41]quantity*price = 14000 [11:47:41]sum+1 = 14001 [11:47:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 85 31.07.2024 11:47 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2632 ФПД: 79704521413860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2632&fm=79704521413860&tin=02508201610067®Number=0000000000189667&sum=25000 0 [11:47:42]StoreToDocumentArchive [11:47:42]shift 17 fd 2632 [11:47:42]save to /storage/0017/doc_00002632 [11:47:42]save last doc name /storage/0017/doc_00002632 to /storage/kkm_last_doc_name [11:47:42]save OK [11:47:42]Clear old archive folders... [11:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=512 [11:47:42]tlvbuf is 00A1B1E0 [11:47:42]SAM_PROTO_ClearQueue [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 09 00 00 [11:47:42]Write to MH i2c: E2 08 00 DA 52 80 09 00 00 00 00 00 00 9E [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 DA 52 00 90 00 A0 [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]SAM_PROTO_ClearQueue done [11:47:42]KKMCreateOFDPacket [11:47:42]OFDProtocolAddRootSTLVToBuf [11:47:42]FM_MakeSignedData [11:47:42]FM_MakeSignedData [11:47:42]SAM_PROTO_SignData [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 0D 01 02 [11:47:42]Write to MH i2c: E2 08 00 DB 52 80 0D 01 02 00 00 00 00 A6 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 DB 52 00 90 00 A1 [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]wFMCommunicate request_size=255 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 [11:47:43]Write to MH i2c: E2 02 01 DC 52 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 00 00 93 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 DC 52 00 90 00 A2 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=255 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 02 02 FA 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 66 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 [11:47:43]Write to MH i2c: E2 02 01 DD 52 80 0D 02 02 FA 00 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 66 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 00 00 56 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 DD 52 00 90 00 A3 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=21 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 02 02 10 04 00 48 0A 00 00 35 04 06 00 48 7D A7 AF 94 E4 [11:47:43]Write to MH i2c: E2 18 00 DE 52 80 0D 02 02 10 00 04 00 48 0A 00 00 35 04 06 00 48 7D A7 AF 94 E4 00 00 F2 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 DE 52 00 90 00 A4 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 03 02 [11:47:43]Write to MH i2c: E2 08 00 DF 52 80 0D 03 02 00 00 00 00 AC [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0B 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0B 00 DF 52 00 DB 72 2D 58 DC BB 56 2F 90 00 9B [11:47:43]RAPDU: DB 72 2D 58 DC BB 56 2F 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_SignData done [11:47:43]FM_MakeSignedData done [11:47:43]CreateOFDProtocolMessage [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 11 00 00 [11:47:43]Write to MH i2c: E2 08 00 E0 52 80 11 00 00 00 00 00 00 AC [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 E0 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [11:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:47:43]wFMCommunicate OK [11:47:43]CreateOFDProtocolMessage done [11:47:43]OFDSenderStorePacket 2632 [11:47:43]StoreOFDPacket docnum=2632 [11:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 02 00 00 6F 80 0C 02 C5 31 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 66 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 0A 00 00 35 04 06 00 48 7D A7 AF 94 E4 DB 72 2D 58 DC BB 56 2F [11:47:43]CheckFolder [11:47:43]dirname=/storage/ofd_packets [11:47:43]CheckFolder done [11:47:43]ProducePacketName [11:47:43]name=ofd_packets/00002632 [11:47:43]NVStorageSaveData ofd_packets/00002632 [11:47:43]File name is /storage/ofd_packets/00002632 [11:47:43]Write 562 bytes [11:47:43]NVStorageSaveData done [11:47:43]OFDSenderStorePacket done [11:47:43]KKMCreateOFDPacket done [11:47:43]NVStorageSaveData kkm_last_timestamp [11:47:43]File name is /storage/kkm_last_timestamp [11:47:43]Write 4 bytes [11:47:43]NVStorageSaveData done [11:47:43]ExternCall_PrintAddStr [11:47:43]wPrintStart [11:47:43]Write to MH i2c: 01 00 00 E1 52 33 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 E1 52 00 00 00 00 00 FF 0F 48 [11:47:43]RasterBufferAndPrint [11:47:43]line Счет N : (3)126805 [11:47:43]line ИНН: 02508201610067 [11:47:43]line Контрольно-Кассовый Чек [11:47:43]line ПРОДАЖА [11:47:43]line Товар: 47803008 [11:47:43]line Сигареты Winston XS Blue [11:47:43]line 1.000 * 140.00 [11:47:43]line = 140.00 [11:47:43]line НДС 12% НСП 1% [11:47:43]line > о реализуемом товаре [11:47:43]line Товар: 4700000480050 [11:47:43]line Напиток Nitro Energy эн green ж/б 0,45л [11:47:43]line 1.000 * 95.00 [11:47:43]line = 95.00 [11:47:43]line НДС 12% НСП 1% [11:47:43]line > о реализуемом товаре [11:47:43]line Товар: 4700000160099 [11:47:43]line Снек Курут индивидуальный [11:47:43]line 1.000 * 15.00 [11:47:43]line = 15.00 [11:47:43]line НДС 12% НСП 1% [11:47:43]line > о реализуемом товаре [11:47:43]line ИТОГО: 250.00 [11:47:43]line НСП 1% : 2.21 [11:47:43]line НДС 12% : 26.55 [11:47:43]line Наличными: 250.00 [11:47:43]line Безнал.: 0.00 [11:47:43]line Место: АЗС № 127 "Партнер Нефть" [11:47:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:47:43]line СНО: Общий режим [11:47:43]line Чек 85 31.07.2024 11:47 [11:47:43]line Смена: 17 ФФД: 1.0 [11:47:43]line ЗНМ: 0300000161 [11:47:43]line РНМ: 0000000000189667 [11:47:43]line Версия ККМ: v1.0 [11:47:43]line ФМ: 0000000002094248 [11:47:43]line ФД: 2632 [11:47:43]line ФПД: 79704521413860 [11:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2632&fm=79704521413860&tin=02508201610067®Number=0000000000189667&sum=25000 [11:47:44]line 0 [11:47:44]OFD Sender: Processing packet 2632 [packets to send 1, broken 0] [11:47:44]ProducePacketName [11:47:44]name=ofd_packets/00002632 [11:47:44]OFD Sender: To server: pG, [11:47:44]CommunicateWithHost lk.salyk.kg:30040 [11:47:44]ConnectInit lk.salyk.kg [11:47:44]written 0, free lines is 4095 [11:47:44]Connected sock=11 [11:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 02 00 00 6F 80 0C 02 C5 31 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 66 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 0A 00 00 35 04 06 00 48 7D A7 AF 94 E4 DB 72 2D 58 DC BB 56 2F [11:47:44]Write to MH i2c: 01 00 00 16 53 69 [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 07 00 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 07 00 16 53 00 00 00 00 00 9D 0C 19 [11:47:44]RasterBufferAndPrint [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]written 0, free lines is 3236 [11:47:44]MH_Cut [11:47:44]Write to MH i2c: D1 01 00 1D 53 01 42 [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 01 00 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 01 00 1D 53 00 41 [11:47:44]Write to MH i2c: 01 00 00 1E 53 71 [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FF AD 47 00 2C 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 0A 00 00 F4 03 04 00 CD CF A9 66 B6 04 01 00 00 C4 D0 E7 16 16 C8 36 28 [11:47:45]CommunicateWithHost err = 0 [11:47:45]CheckOFDResponse [11:47:45]1017 (14) - 77093643461234 [11:47:45]1041 (16) - 0000000002094248 [11:47:45]1040 (4) - 2632 [11:47:45]1012 (4) - 31.07.2024 05:46 [11:47:45]1206 (1) - 0 [11:47:45]OFD Sender: Remove packet 2632 [11:47:45]ProducePacketName [11:47:45]name=ofd_packets/00002632 [11:47:45]NVStorageDeleteData [11:47:45]*** Cut start [11:47:45]*** Partial cut [11:47:45]*** CUTSNS_PIN = 1 [11:47:45]OFD Sender: No OFD packet to send [11:47:45]*** CUTSNS_PIN = 0 [11:47:45]*** Brake cut motor [11:47:46]Read from MH i2c: 01 [11:47:46]MH_I2C_Read... [11:47:46]*** Stop cut motor [11:47:46]*** Cut end [11:47:46]Read from MH i2c: 01 07 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: 01 07 00 1E 53 00 00 00 00 00 FF 0F 86 [11:47:46]process_action close_receipt done [11:47:46]requested_data is exist [11:47:46]produce_requested_data [11:47:46]requested_item fm.sn is exist - process it [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 11 00 00 [11:47:46]Write to MH i2c: E2 08 00 1F 53 80 11 00 00 00 00 00 00 EC [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 17 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 17 00 1F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3C [11:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:47:46]wFMCommunicate OK [11:47:46]requested_item fd.num is exist - process it [11:47:46]SAM_PROTO_GetFieldsCounters [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 13 00 00 [11:47:46]Write to MH i2c: E2 08 00 20 53 80 13 00 00 00 00 00 00 EF [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 62 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 62 00 20 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 0A 00 00 0E 04 04 00 11 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 7B [11:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 0A 00 00 0E 04 04 00 11 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 [11:47:46]wFMCommunicate OK [11:47:46]SAM_PROTO_GetFieldsCounters done [11:47:46]requested_item shift.num is exist - process it [11:47:46]requested_item shift.opened is exist - process it [11:47:46]req_shift_opened [11:47:46]FM_GetShiftState [11:47:46]SAM_PROTO_GetShiftState [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 13 01 00 [11:47:46]Write to MH i2c: E2 08 00 21 53 80 13 01 00 00 00 00 00 F1 [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 21 53 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 BE [11:47:46]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:47:46]wFMCommunicate OK [11:47:46]SAM_PROTO_GetShiftState done [11:47:46]FM_GetShiftState done [11:47:46]req_shift_opened done [11:47:46]requested_item shift.open_date is exist - process it [11:47:46]req_shift_open_date [11:47:46]req_shift_open_date done [11:47:46]produce_requested_data done [11:47:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2632,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:47:46]process_action_free close_receipt [11:47:46]json_value_free [11:47:46]json_value_free done [11:47:46]process_json_proto returns [11:47:46]Send response to host [11:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2632,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:47:46]free response buf [11:47:46]execute_script done [11:47:46]execute_script returns [11:47:46]free content buf [11:47:46]Sock 9.Close socket [11:47:46]Sock 9.Thread stoped [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:02]accept exits with 7 [11:48:02]New connection [11:48:02]New thread 3067624804 created [11:48:02]Thread 3067481444 joined [11:48:02]Waiting for new connection... [11:48:02] Sock 7.Parse request [11:48:02]Sock 7.Check first char [11:48:02]Sock 7.First char is OK [11:48:02]request: POST /json_proto HTTP/1.0 [11:48:02]Method: POST [11:48:02]URL: /json_proto [11:48:02]Method is POST - this is cgi request [11:48:02]url: /json_proto [11:48:02]query_string will be loaded in cgi processing [11:48:02]execute_cgi json_proto POST (null) [11:48:02]execute_cgi path=json_proto method=POST [11:48:02]POST find Content-Length [11:48:02]Host: 172.17.45.132:8080 [11:48:02]Content-Length: 807 [11:48:02]Content-Type: application/json [11:48:02] [11:48:02]POST finish read [11:48:02]Found Content-Length = 807 [11:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126806", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:02]execute_script... [11:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126806", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:02]POST & json_proto [11:48:02]process_json_proto [11:48:02]json parsed OK: [11:48:02]protocol is kg_v1.0 [11:48:02]action value=close_receipt [11:48:02]process_action close_receipt [11:48:02]cmd_close_receipt [11:48:02]MH_GetDate [11:48:02]Write to MH i2c: F0 00 00 22 53 64 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 09 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 09 00 22 53 00 7B 24 AA 66 E3 0B 90 66 00 [11:48:02]GetLastDocTimeStamp 1722426470 [11:48:02]current date 1722426491 [11:48:02]FM_GetShiftState [11:48:02]SAM_PROTO_GetShiftState [11:48:02]wFMCommunicate request_size=4 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 13 01 00 [11:48:02]Write to MH i2c: E2 08 00 23 53 80 13 01 00 00 00 00 00 F3 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0E 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0E 00 23 53 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C0 [11:48:03]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:48:03]wFMCommunicate OK [11:48:03]SAM_PROTO_GetShiftState done [11:48:03]FM_GetShiftState done [11:48:03]opened in 1722384689 [11:48:03]opened+sec_in_day 1722471089 [11:48:03]quantity*price = 5000 [11:48:03]sum+1 = 5001 [11:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 86 31.07.2024 11:48 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2633 ФПД: 117794073815370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114811&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2633&fm=117794073815370&tin=02508201610067®Number=0000000000189667&sum=5000 0 [11:48:03]StoreToDocumentArchive [11:48:03]shift 17 fd 2633 [11:48:03]save to /storage/0017/doc_00002633 [11:48:03]save last doc name /storage/0017/doc_00002633 to /storage/kkm_last_doc_name [11:48:03]save OK [11:48:03]Clear old archive folders... [11:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:48:03]tlvbuf is 009ADAE0 [11:48:03]SAM_PROTO_ClearQueue [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 09 00 00 [11:48:03]Write to MH i2c: E2 08 00 30 53 80 09 00 00 00 00 00 00 F5 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 30 53 00 90 00 F7 [11:48:03]RAPDU: 90 00 [11:48:03]wFMCommunicate OK [11:48:03]SAM_PROTO_ClearQueue done [11:48:03]KKMCreateOFDPacket [11:48:03]OFDProtocolAddRootSTLVToBuf [11:48:03]FM_MakeSignedData [11:48:03]FM_MakeSignedData [11:48:03]SAM_PROTO_SignData [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 0D 01 02 [11:48:03]Write to MH i2c: E2 08 00 31 53 80 0D 01 02 00 00 00 00 FD [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 31 53 00 90 00 F8 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=255 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7B 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [11:48:04]Write to MH i2c: E2 02 01 32 53 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7B 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 30 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 32 53 00 90 00 F9 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=28 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 49 0A 00 00 35 04 06 00 6B 22 11 ED 29 4A [11:48:04]Write to MH i2c: E2 1F 00 33 53 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 49 0A 00 00 35 04 06 00 6B 22 11 ED 29 4A 00 00 E1 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 33 53 00 90 00 FA [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 03 02 [11:48:04]Write to MH i2c: E2 08 00 34 53 80 0D 03 02 00 00 00 00 02 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 34 53 00 42 C6 73 7F 92 7C 86 F0 90 00 81 [11:48:04]RAPDU: 42 C6 73 7F 92 7C 86 F0 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_SignData done [11:48:04]FM_MakeSignedData done [11:48:04]CreateOFDProtocolMessage [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 11 00 00 [11:48:04]Write to MH i2c: E2 08 00 35 53 80 11 00 00 00 00 00 00 02 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 35 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 52 [11:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:48:04]wFMCommunicate OK [11:48:04]CreateOFDProtocolMessage done [11:48:04]OFDSenderStorePacket 2633 [11:48:04]StoreOFDPacket docnum=2633 [11:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 48 5B 19 01 5B 2B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7B 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 0A 00 00 35 04 06 00 6B 22 11 ED 29 4A 42 C6 73 7F 92 7C 86 F0 [11:48:04]CheckFolder [11:48:04]dirname=/storage/ofd_packets [11:48:04]CheckFolder done [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00002633 [11:48:04]NVStorageSaveData ofd_packets/00002633 [11:48:04]File name is /storage/ofd_packets/00002633 [11:48:04]Write 319 bytes [11:48:04]NVStorageSaveData done [11:48:04]OFDSenderStorePacket done [11:48:04]KKMCreateOFDPacket done [11:48:04]NVStorageSaveData kkm_last_timestamp [11:48:04]File name is /storage/kkm_last_timestamp [11:48:04]Write 4 bytes [11:48:04]NVStorageSaveData done [11:48:04]ExternCall_PrintAddStr [11:48:04]wPrintStart [11:48:04]Write to MH i2c: 01 00 00 36 53 89 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 36 53 00 00 00 00 00 FF 0F 9E [11:48:04]RasterBufferAndPrint [11:48:04]line Счет N : (3)126806 [11:48:04]line ИНН: 02508201610067 [11:48:04]line Контрольно-Кассовый Чек [11:48:04]line ПРОДАЖА [11:48:04]line Товар: 4700000160358 [11:48:04]line Вода Легенда 1л [11:48:04]line 1.000 * 50.00 [11:48:04]line = 50.00 [11:48:04]line НДС 12% НСП 1% [11:48:04]line > о реализуемом товаре [11:48:04]line ИТОГО: 50.00 [11:48:04]line НСП 1% : 0.44 [11:48:04]line НДС 12% : 5.31 [11:48:04]line Наличными: 0.00 [11:48:04]line Безнал.: 50.00 [11:48:04]line Место: АЗС № 127 "Партнер Нефть" [11:48:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:48:04]line СНО: Общий режим [11:48:04]line Чек 86 31.07.2024 11:48 [11:48:04]line Смена: 17 ФФД: 1.0 [11:48:04]line ЗНМ: 0300000161 [11:48:04]line РНМ: 0000000000189667 [11:48:04]line Версия ККМ: v1.0 [11:48:04]line Платежная система: Бакай Банк [11:48:04]line ФМ: 0000000002094248 [11:48:04]line ФД: 2633 [11:48:04]line ФПД: 117794073815370 [11:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114811&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2633&fm=117794073815370&tin=02508201610067®Number=0000000000189667&sum=5000 [11:48:04]line 0 [11:48:04]OFD Sender: Processing packet 2633 [packets to send 1, broken 0] [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00002633 [11:48:04]OFD Sender: To server: pG, [11:48:04]CommunicateWithHost lk.salyk.kg:30040 [11:48:04]ConnectInit lk.salyk.kg [11:48:04]written 0, free lines is 4095 [11:48:04]Connected sock=10 [11:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 48 5B 19 01 5B 2B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7B 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 0A 00 00 35 04 06 00 6B 22 11 ED 29 4A 42 C6 73 7F 92 7C 86 F0 [11:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 82 67 47 00 B2 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 0A 00 00 F4 03 04 00 E2 CF A9 66 B6 04 01 00 00 48 D5 C0 9D 23 D6 8E 45 [11:48:05]CommunicateWithHost err = 0 [11:48:05]CheckOFDResponse [11:48:05]1017 (14) - 77093643461234 [11:48:05]1041 (16) - 0000000002094248 [11:48:05]1040 (4) - 2633 [11:48:05]1012 (4) - 31.07.2024 05:47 [11:48:05]1206 (1) - 0 [11:48:05]OFD Sender: Remove packet 2633 [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00002633 [11:48:05]NVStorageDeleteData [11:48:05]Write to MH i2c: 01 00 00 60 53 B3 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 60 53 00 00 00 00 00 01 0D C8 [11:48:05]RasterBufferAndPrint [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]written 0, free lines is 3338 [11:48:05]MH_Cut [11:48:05]Write to MH i2c: D1 01 00 67 53 01 8C [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 67 53 00 8B [11:48:05]Write to MH i2c: 01 00 00 68 53 BB [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]OFD Sender: No OFD packet to send [11:48:05]*** Cut start [11:48:05]*** Partial cut [11:48:05]*** CUTSNS_PIN = 1 [11:48:06]*** CUTSNS_PIN = 0 [11:48:06]*** Brake cut motor [11:48:06]Read from MH i2c: 01 [11:48:06]MH_I2C_Read... [11:48:06]*** Stop cut motor [11:48:06]*** Cut end [11:48:06]Read from MH i2c: 01 07 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: 01 07 00 68 53 00 00 00 00 00 FF 0F D0 [11:48:06]process_action close_receipt done [11:48:06]requested_data is exist [11:48:06]produce_requested_data [11:48:06]requested_item fm.sn is exist - process it [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 11 00 00 [11:48:06]Write to MH i2c: E2 08 00 69 53 80 11 00 00 00 00 00 00 36 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 69 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 86 [11:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:48:06]wFMCommunicate OK [11:48:06]requested_item fd.num is exist - process it [11:48:06]SAM_PROTO_GetFieldsCounters [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 00 00 [11:48:06]Write to MH i2c: E2 08 00 6A 53 80 13 00 00 00 00 00 00 39 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 6A 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 0A 00 00 0E 04 04 00 11 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 C9 [11:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 0A 00 00 0E 04 04 00 11 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 [11:48:06]wFMCommunicate OK [11:48:06]SAM_PROTO_GetFieldsCounters done [11:48:06]requested_item shift.num is exist - process it [11:48:06]requested_item shift.opened is exist - process it [11:48:06]req_shift_opened [11:48:06]FM_GetShiftState [11:48:06]SAM_PROTO_GetShiftState [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 01 00 [11:48:06]Write to MH i2c: E2 08 00 6B 53 80 13 01 00 00 00 00 00 3B [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 0E 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 0E 00 6B 53 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 08 [11:48:06]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:48:06]wFMCommunicate OK [11:48:06]SAM_PROTO_GetShiftState done [11:48:06]FM_GetShiftState done [11:48:06]req_shift_opened done [11:48:06]requested_item shift.open_date is exist - process it [11:48:06]req_shift_open_date [11:48:06]req_shift_open_date done [11:48:06]produce_requested_data done [11:48:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2633,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [11:48:06]process_action_free close_receipt [11:48:06]json_value_free [11:48:06]json_value_free done [11:48:06]process_json_proto returns [11:48:06]Send response to host [11:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2633,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [11:48:06]free response buf [11:48:06]execute_script done [11:48:06]execute_script returns [11:48:06]free content buf [11:48:06]Sock 7.Close socket [11:48:06]Sock 7.Thread stoped [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:32]accept exits with 9 [11:48:32]New connection [11:48:32]New thread 3067481444 created [11:48:32]Thread 3067624804 joined [11:48:32]Waiting for new connection... [11:48:32] Sock 9.Parse request [11:48:32]Sock 9.Check first char [11:48:32]Sock 9.First char is OK [11:48:32]request: POST /json_proto HTTP/1.0 [11:48:32]Method: POST [11:48:32]URL: /json_proto [11:48:32]Method is POST - this is cgi request [11:48:32]url: /json_proto [11:48:32]query_string will be loaded in cgi processing [11:48:32]execute_cgi json_proto POST (null) [11:48:32]execute_cgi path=json_proto method=POST [11:48:32]POST find Content-Length [11:48:32]Host: 172.17.45.132:8080 [11:48:32]Content-Length: 645 [11:48:32]Content-Type: application/json [11:48:32] [11:48:32]POST finish read [11:48:32]Found Content-Length = 645 [11:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126807", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:32]execute_script... [11:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126807", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:32]POST & json_proto [11:48:32]process_json_proto [11:48:32]json parsed OK: [11:48:32]protocol is kg_v1.0 [11:48:32]action value=close_receipt [11:48:32]process_action close_receipt [11:48:32]cmd_close_receipt [11:48:32]MH_GetDate [11:48:32]Write to MH i2c: F0 00 00 6C 53 AE [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 09 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 09 00 6C 53 00 99 24 AA 66 E3 0B 90 66 68 [11:48:32]GetLastDocTimeStamp 1722426491 [11:48:32]current date 1722426521 [11:48:32]FM_GetShiftState [11:48:32]SAM_PROTO_GetShiftState [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 01 00 [11:48:32]Write to MH i2c: E2 08 00 6D 53 80 13 01 00 00 00 00 00 3D [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 6D 53 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 0A [11:48:33]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetShiftState done [11:48:33]FM_GetShiftState done [11:48:33]opened in 1722384689 [11:48:33]opened+sec_in_day 1722471089 [11:48:33]quantity*price = 6000 [11:48:33]sum+1 = 6001 [11:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 87 31.07.2024 11:48 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2634 ФПД: 988309545833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T114841&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2634&fm=988309545833&tin=02508201610067®Number=0000000000189667&sum=6000 0 [11:48:34]StoreToDocumentArchive [11:48:34]shift 17 fd 2634 [11:48:34]save to /storage/0017/doc_00002634 [11:48:34]save last doc name /storage/0017/doc_00002634 to /storage/kkm_last_doc_name [11:48:34]save OK [11:48:34]Clear old archive folders... [11:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:48:34]tlvbuf is 008BDB20 [11:48:34]SAM_PROTO_ClearQueue [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 09 00 00 [11:48:34]Write to MH i2c: E2 08 00 7A 53 80 09 00 00 00 00 00 00 3F [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 7A 53 00 90 00 41 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]SAM_PROTO_ClearQueue done [11:48:34]KKMCreateOFDPacket [11:48:34]OFDProtocolAddRootSTLVToBuf [11:48:34]FM_MakeSignedData [11:48:34]FM_MakeSignedData [11:48:34]SAM_PROTO_SignData [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 01 02 [11:48:34]Write to MH i2c: E2 08 00 7B 53 80 0D 01 02 00 00 00 00 47 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 7B 53 00 90 00 42 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=255 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 57 00 00 00 F4 03 04 00 99 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 [11:48:34]Write to MH i2c: E2 02 01 7C 53 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 57 00 00 00 F4 03 04 00 99 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 00 00 C3 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 7C 53 00 90 00 43 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=35 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 0A 00 00 35 04 06 00 00 E6 1B D6 E3 69 [11:48:34]Write to MH i2c: E2 26 00 7D 53 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 0A 00 00 35 04 06 00 00 E6 1B D6 E3 69 00 00 B1 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 03 02 [11:48:34]Write to MH i2c: E2 08 00 7E 53 80 0D 03 02 00 00 00 00 4C [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 0B 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 0B 00 7E 53 00 38 B3 3D 4F EB 54 AE 5D 90 00 0E [11:48:34]RAPDU: 38 B3 3D 4F EB 54 AE 5D 90 00 [11:48:34]wFMCommunicate OK [11:48:34]SAM_PROTO_SignData done [11:48:34]FM_MakeSignedData done [11:48:34]CreateOFDProtocolMessage [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 11 00 00 [11:48:34]Write to MH i2c: E2 08 00 7F 53 80 11 00 00 00 00 00 00 4C [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 17 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 17 00 7F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [11:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:48:34]wFMCommunicate OK [11:48:34]CreateOFDProtocolMessage done [11:48:34]OFDSenderStorePacket 2634 [11:48:34]StoreOFDPacket docnum=2634 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]/dev/ttyS4 opened [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 92 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]A0 *** [00:00:10]01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725ED (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 1712081+1720716259=1722428340 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570625 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 93 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B5 2B AA 66 E3 0B 90 66 D3 [12:19:01]Current date/time: 31.07.2024 12:19 [12:19:01]FM_Init [12:19:01]wFMConnect [12:19:01]MH_SAM_On [12:19:01]Write to MH i2c: E0 00 00 08 00 E7 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_init finished! [12:19:01]*** atr: [12:19:01]*** 0F 3B D5 18 FF 81 91 FE [12:19:01]*** 1F C3 80 73 C8 21 10 0A [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]*** 00 00 00 00 00 00 00 00 [12:19:01]Read from MH i2c: E0 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E0 10 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:19:01]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:19:01]wFMCommunicate request_size=10 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:19:01]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:19:01]RAPDU: 90 00 [12:19:01]wFMCommunicate OK [12:19:01]wFMCommunicate request_size=4 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 80 11 00 00 [12:19:01]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 17 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D4 [12:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:01]wFMCommunicate OK [12:19:01]Detected FM SN is 0000000002094248 [12:19:01]Stored FM SN is 0000000002094248 [12:19:01]wFMCommunicate request_size=9 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 80 16 00 00 04 96 B7 00 00 [12:19:01]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 96 B7 00 00 00 00 DF [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:19:01]RAPDU: 90 00 [12:19:01]wFMCommunicate OK [12:19:01]FM PIN OK [12:19:01]wFMCommunicate request_size=8 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 80 14 04 00 03 02 00 01 [12:19:01]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:19:01]RAPDU: 90 00 [12:19:01]wFMCommunicate OK [12:19:01]wFMCommunicate request_size=13 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:19:01]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:19:01]RAPDU: 90 00 [12:19:01]wFMCommunicate OK [12:19:01]wFMCommunicate request_size=4 [12:19:01]MH_SAM_APDU [12:19:01]CAPDU: 80 11 00 00 [12:19:01]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:01]Read from MH i2c: E2 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 17 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [12:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:01]wFMCommunicate OK [12:19:01]DocumentArchiveInit [12:19:01]Start Httpd... [12:19:01]Httpd thread 3067067748 created [12:19:01]Write to MH i2c: 01 00 00 0F 00 0F [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:19:01]MH Int Process started [12:19:01]Allocated Socket 7 [12:19:01]Bind OK [12:19:01]Listen OK [12:19:01]httpd running on port 8080 [12:19:01]Waiting for new connection... [12:19:01]OFD Sender: Processing packet 2634 [packets to send 1, broken 0] [12:19:01]ProducePacketName [12:19:01]name=ofd_packets/00002634 [12:19:01]OFD Sender: To server: pG, [12:19:01]CommunicateWithHost lk.salyk.kg:30040 [12:19:01]ConnectInit lk.salyk.kg [12:19:01]Connected sock=6 [12:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 AC 85 20 01 ED 56 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 57 00 00 00 F4 03 04 00 99 24 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 0A 00 00 35 04 06 00 00 E6 1B D6 E3 69 38 B3 3D 4F EB 54 AE 5D [12:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 66 7C 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 4A 0A 00 00 F4 03 04 00 19 D7 A9 66 B6 04 01 00 00 1E 57 39 5F 07 67 1E 7B [12:19:01]CommunicateWithHost err = 0 [12:19:01]CheckOFDResponse [12:19:01]1017 (14) - 77093643461234 [12:19:01]1041 (16) - 0000000002094248 [12:19:01]1040 (4) - 2634 [12:19:01]1012 (4) - 31.07.2024 06:18 [12:19:01]1206 (1) - 0 [12:19:01]OFD Sender: Remove packet 2634 [12:19:01]ProducePacketName [12:19:01]name=ofd_packets/00002634 [12:19:01]NVStorageDeleteData [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:10]accept exits with 8 [12:19:10]New connection [12:19:10]New thread 3066781028 created [12:19:10]Waiting for new connection... [12:19:10] Sock 8.Parse request [12:19:10]Sock 8.Check first char [12:19:10]Sock 8.First char is OK [12:19:10]request: POST /json_proto HTTP/1.0 [12:19:10]Method: POST [12:19:10]URL: /json_proto [12:19:10]Method is POST - this is cgi request [12:19:10]url: /json_proto [12:19:10]query_string will be loaded in cgi processing [12:19:10]execute_cgi json_proto POST (null) [12:19:10]execute_cgi path=json_proto method=POST [12:19:10]POST find Content-Length [12:19:10]Host: 172.17.45.132:8080 [12:19:10]Content-Length: 215 [12:19:10]Content-Type: application/json [12:19:10] [12:19:10]POST finish read [12:19:10]Found Content-Length = 215 [12:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:10]execute_script... [12:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:10]POST & json_proto [12:19:10]process_json_proto [12:19:10]json parsed OK: [12:19:10]protocol is kg_v1.0 [12:19:10]action value=get_value [12:19:10]process_action get_value [12:19:10]cmd_get_value [12:19:10]process_action get_value done [12:19:10]requested_data is exist [12:19:10]produce_requested_data [12:19:10]requested_item kkm.sn is exist - process it [12:19:10]requested_item kkm.ver is exist - process it [12:19:10]requested_item fm.sn is exist - process it [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 11 00 00 [12:19:10]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DA [12:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:10]wFMCommunicate OK [12:19:10]requested_item fd.num is exist - process it [12:19:10]SAM_PROTO_GetFieldsCounters [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 00 00 [12:19:10]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 62 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 0A 00 00 0E 04 04 00 11 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 21 [12:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 0A 00 00 0E 04 04 00 11 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 [12:19:10]wFMCommunicate OK [12:19:10]SAM_PROTO_GetFieldsCounters done [12:19:10]requested_item shift.num is exist - process it [12:19:10]requested_item shift.opened is exist - process it [12:19:10]req_shift_opened [12:19:10]FM_GetShiftState [12:19:10]SAM_PROTO_GetShiftState [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 01 00 [12:19:10]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 0E 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 5C [12:19:10]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:10]wFMCommunicate OK [12:19:10]SAM_PROTO_GetShiftState done [12:19:10]FM_GetShiftState done [12:19:10]req_shift_opened done [12:19:10]requested_item shift.open_date is exist - process it [12:19:10]req_shift_open_date [12:19:10]req_shift_open_date done [12:19:10]produce_requested_data done [12:19:10]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2634,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:19:10]process_action_free get_value [12:19:10]json_value_free [12:19:10]json_value_free done [12:19:10]process_json_proto returns [12:19:10]Send response to host [12:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2634,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:19:10]free response buf [12:19:10]execute_script done [12:19:10]execute_script returns [12:19:10]free content buf [12:19:10]Sock 8.Close socket [12:19:10]Sock 8.Thread stoped [12:19:10]accept exits with 10 [12:19:10]New connection [12:19:10]New thread 3066637668 created [12:19:10]Thread 3066781028 joined [12:19:10]Waiting for new connection... [12:19:10] Sock 10.Parse request [12:19:10]Sock 10.Check first char [12:19:10]Sock 10.First char is OK [12:19:10]request: POST /json_proto HTTP/1.0 [12:19:10]Method: POST [12:19:10]URL: /json_proto [12:19:10]Method is POST - this is cgi request [12:19:10]url: /json_proto [12:19:10]query_string will be loaded in cgi processing [12:19:10]execute_cgi json_proto POST (null) [12:19:10]execute_cgi path=json_proto method=POST [12:19:10]POST find Content-Length [12:19:10]Host: 172.17.45.132:8080 [12:19:10]Content-Length: 331 [12:19:10]Content-Type: application/json [12:19:10] [12:19:10]POST finish read [12:19:10]Found Content-Length = 331 [12:19: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" ] } } [12:19:10]execute_script... [12:19: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" ] } } [12:19:11]POST & json_proto [12:19:11]process_json_proto [12:19:11]json parsed OK: [12:19:11]protocol is kg_v1.0 [12:19:11]action value=get_value [12:19:11]process_action get_value [12:19:11]cmd_get_value [12:19:11]process_action get_value done [12:19:11]requested_data is exist [12:19:11]produce_requested_data [12:19:11]requested_item fm.sale.total is exist - process it [12:19:11]SAM_PROTO_GetFMData [12:19:11]wFMCommunicate request_size=4 [12:19:11]MH_SAM_APDU [12:19:11]CAPDU: 80 13 03 00 [12:19:11]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:19:11]Write i2c OK [12:19:11]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 FD 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 FD 00 13 00 00 C0 04 85 04 BC 04 6E 04 04 00 28 0A 00 00 69 04 9F 00 6F 04 04 00 15 0A 00 00 B1 04 04 00 A6 17 96 06 70 04 04 00 34 04 55 04 72 04 04 00 72 13 41 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 12 B3 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 28 EB 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 A0 [12:19:11]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 28 0A 00 00 69 04 9F 00 6F 04 04 00 15 0A 00 00 B1 04 04 00 A6 17 96 06 70 04 04 00 34 04 55 04 72 04 04 00 72 13 41 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 12 B3 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 28 EB 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [12:19:11]wFMCommunicate OK [12:19:11]wFMCommunicate request_size=4 [12:19:11]MH_SAM_APDU [12:19:11]CAPDU: 80 17 00 00 [12:19:11]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:19:11]Write i2c OK [12:19:11]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 FD 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [12:19:11]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:19:11]wFMCommunicate OK [12:19:11]wFMCommunicate request_size=4 [12:19:11]MH_SAM_APDU [12:19:11]CAPDU: 80 17 00 00 [12:19:11]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:19:11]Write i2c OK [12:19:11]MH_I2C_Read... [12:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 FD 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 FD 00 15 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 38 [12:19:12]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [12:19:12]wFMCommunicate OK [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 17 00 00 [12:19:12]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]OFD Sender: No OFD packet to send [12:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 FD 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 FD 00 16 00 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [12:19:12]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:19:12]wFMCommunicate OK [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 17 00 00 [12:19:12]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 DD 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 DD 00 17 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [12:19:12]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:19:12]wFMCommunicate OK [12:19:12]SAM_PROTO_GetFMData done [12:19:12]requested_item fm.sale_refund.total is exist - process it [12:19:12]requested_item fm.buy.total is exist - process it [12:19:12]requested_item shift.sale.total is exist - process it [12:19:12]SAM_PROTO_GetShiftData [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 13 02 00 [12:19:12]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 18 00 00 B5 04 AA 04 B1 04 6E 04 04 00 57 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 D0 E4 3C 70 04 03 00 E4 58 36 72 04 03 00 EC 8B 06 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 8C 77 06 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 F0 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 6D [12:19:13]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 57 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 D0 E4 3C 70 04 03 00 E4 58 36 72 04 03 00 EC 8B 06 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 8C 77 06 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 F0 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 17 00 00 [12:19:13]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [12:19:13]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 17 00 00 [12:19:13]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 FD 00 1A 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [12:19:13]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 17 00 00 [12:19:13]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 FD 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [12:19:14]RAPDU: 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 90 00 [12:19:14]wFMCommunicate OK [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 17 00 00 [12:19:14]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 D2 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 D2 00 1C 00 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [12:19:14]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:19:14]wFMCommunicate OK [12:19:14]SAM_PROTO_GetShiftData done [12:19:14]requested_item shift.sale.total_cash is exist - process it [12:19:14]requested_item shift.sale_refund.total is exist - process it [12:19:14]requested_item shift.sale_refund.total_cash is exist - process it [12:19:14]requested_item shift.buy.total is exist - process it [12:19:14]requested_item shift.buy.total_cash is exist - process it [12:19:14]produce_requested_data done [12:19:14]produce_requested_data return {"fm.sale.total":1104997.50,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":39907.36,"shift.sale.total_cash":35617.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:19:14]process_action_free get_value [12:19:14]json_value_free [12:19:14]json_value_free done [12:19:14]process_json_proto returns [12:19:14]Send response to host [12:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1104997.50,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":39907.36,"shift.sale.total_cash":35617.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:19:14]free response buf [12:19:14]execute_script done [12:19:14]execute_script returns [12:19:14]free content buf [12:19:14]Sock 10.Close socket [12:19:14]Sock 10.Thread stoped [12:19:16]accept exits with 8 [12:19:16]New connection [12:19:16]New thread 3066781028 created [12:19:16]Thread 3066637668 joined [12:19:16]Waiting for new connection... [12:19:16] Sock 8.Parse request [12:19:16]Sock 8.Check first char [12:19:16]Sock 8.First char is OK [12:19:16]request: POST /json_proto HTTP/1.0 [12:19:16]Method: POST [12:19:16]URL: /json_proto [12:19:16]Method is POST - this is cgi request [12:19:16]url: /json_proto [12:19:16]query_string will be loaded in cgi processing [12:19:16]execute_cgi json_proto POST (null) [12:19:16]execute_cgi path=json_proto method=POST [12:19:16]POST find Content-Length [12:19:16]Host: 172.17.45.132:8080 [12:19:16]Content-Length: 1821 [12:19:16]Content-Type: application/json [12:19:16] [12:19:16]POST finish read [12:19:16]Found Content-Length = 1821 [12:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126808", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 349.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:16]execute_script... [12:19:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126808", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 349.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:17]POST & json_proto [12:19:17]process_json_proto [12:19:17]json parsed OK: [12:19:17]protocol is kg_v1.0 [12:19:17]action value=close_receipt [12:19:17]process_action close_receipt [12:19:17]cmd_close_receipt [12:19:17]MH_GetDate [12:19:17]Write to MH i2c: F0 00 00 1D 00 0C [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: F0 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: F0 09 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: F0 09 00 1D 00 00 C5 2B AA 66 E3 0B 90 66 F9 [12:19:17]GetLastDocTimeStamp 1722426521 [12:19:17]current date 1722428357 [12:19:17]FM_GetShiftState [12:19:17]SAM_PROTO_GetShiftState [12:19:17]wFMCommunicate request_size=4 [12:19:17]MH_SAM_APDU [12:19:17]CAPDU: 80 13 01 00 [12:19:17]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:17]Read from MH i2c: E2 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 0E 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 68 [12:19:17]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:17]wFMCommunicate OK [12:19:17]SAM_PROTO_GetShiftState done [12:19:17]FM_GetShiftState done [12:19:17]opened in 1722384689 [12:19:17]opened+sec_in_day 1722471089 [12:19:17]quantity*price = 14000 [12:19:17]sum+1 = 14001 [12:19:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 349.00 НСП 1% : 3.08 НДС 12% : 37.06 Наличными: 0.00 Безнал.: 349.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 88 31.07.2024 12:19 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2635 ФПД: 237010659800538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T121917&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2635&fm=237010659800538&tin=02508201610067®Number=0000000000189667&sum=34900 0 [12:19:18]StoreToDocumentArchive [12:19:18]shift 17 fd 2635 [12:19:18]save to /storage/0017/doc_00002635 [12:19:18]save last doc name /storage/0017/doc_00002635 to /storage/kkm_last_doc_name [12:19:18]save OK [12:19:18]Clear old archive folders... [12:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=696 [12:19:18]tlvbuf is 00EC2B60 [12:19:18]SAM_PROTO_ClearQueue [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 09 00 00 [12:19:18]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:19:18]RAPDU: 90 00 [12:19:18]wFMCommunicate OK [12:19:18]SAM_PROTO_ClearQueue done [12:19:18]KKMCreateOFDPacket [12:19:18]OFDProtocolAddRootSTLVToBuf [12:19:18]FM_MakeSignedData [12:19:18]FM_MakeSignedData [12:19:18]SAM_PROTO_SignData [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 0D 01 02 [12:19:18]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:19:18]RAPDU: 90 00 [12:19:18]wFMCommunicate OK [12:19:18]wFMCommunicate request_size=255 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 0D 02 02 FA 03 00 B8 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD [12:19:18]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 B8 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 00 00 8C [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:19:18]RAPDU: 90 00 [12:19:18]wFMCommunicate OK [12:19:18]wFMCommunicate request_size=255 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 0D 02 02 FA 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 [12:19:18]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 00 00 83 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:19:19]RAPDU: 90 00 [12:19:19]wFMCommunicate OK [12:19:19]wFMCommunicate request_size=205 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 0D 02 02 C8 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 0A 00 00 35 04 06 00 D7 8F 58 2F 75 DA [12:19:19]Write to MH i2c: E2 D0 00 2F 00 80 0D 02 02 C8 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 0A 00 00 35 04 06 00 D7 8F 58 2F 75 DA 00 00 4F [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [12:19:19]RAPDU: 90 00 [12:19:19]wFMCommunicate OK [12:19:19]wFMCommunicate request_size=4 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 0D 03 02 [12:19:19]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 0B 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 0B 00 30 00 00 45 AD 1A A5 8C 88 48 4E 90 00 07 [12:19:19]RAPDU: 45 AD 1A A5 8C 88 48 4E 90 00 [12:19:19]wFMCommunicate OK [12:19:19]SAM_PROTO_SignData done [12:19:19]FM_MakeSignedData done [12:19:19]CreateOFDProtocolMessage [12:19:19]wFMCommunicate request_size=4 [12:19:19]MH_SAM_APDU [12:19:19]CAPDU: 80 11 00 00 [12:19:19]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:19]Read from MH i2c: E2 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 17 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [12:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:19]wFMCommunicate OK [12:19:19]CreateOFDProtocolMessage done [12:19:19]OFDSenderStorePacket 2635 [12:19:19]StoreOFDPacket docnum=2635 [12:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CC 02 00 00 0E 6A C4 02 B6 20 5A 03 01 00 03 00 B8 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 0A 00 00 35 04 06 00 D7 8F 58 2F 75 DA 45 AD 1A A5 8C 88 48 4E [12:19:19]CheckFolder [12:19:19]dirname=/storage/ofd_packets [12:19:19]CheckFolder done [12:19:19]ProducePacketName [12:19:19]name=ofd_packets/00002635 [12:19:19]NVStorageSaveData ofd_packets/00002635 [12:19:19]File name is /storage/ofd_packets/00002635 [12:19:19]Write 746 bytes [12:19:19]NVStorageSaveData done [12:19:19]OFDSenderStorePacket done [12:19:19]KKMCreateOFDPacket done [12:19:19]NVStorageSaveData kkm_last_timestamp [12:19:19]File name is /storage/kkm_last_timestamp [12:19:19]Write 4 bytes [12:19:19]NVStorageSaveData done [12:19:19]ExternCall_PrintAddStr [12:19:19]wPrintStart [12:19:19]Write to MH i2c: 01 00 00 32 00 32 [12:19:19]Write i2c OK [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: 01 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: 01 07 00 [12:19:19]MH_I2C_Read... [12:19:19]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [12:19:19]RasterBufferAndPrint [12:19:19]line Счет N : (3)126808 [12:19:19]line ИНН: 02508201610067 [12:19:19]line Контрольно-Кассовый Чек [12:19:19]line ПРОДАЖА [12:19:19]line Товар: 48743587 [12:19:19]line Сигареты Winston XStyle Silver [12:19:19]line 1.000 * 140.00 [12:19:19]line = 140.00 [12:19:19]line НДС 12% НСП 1% [12:19:19]line > о реализуемом товаре [12:19:19]line Товар: 4700000160358 [12:19:19]line Вода Легенда 1л [12:19:19]line 1.000 * 50.00 [12:19:19]line = 50.00 [12:19:19]line НДС 12% НСП 1% [12:19:19]line > о реализуемом товаре [12:19:19]line Товар: 4650243871828 [12:19:19]line Gorilla эн нап манго-кокос 0,45 ж/б [12:19:19]line 1.000 * 110.00 [12:19:19]line = 110.00 [12:19:19]line НДС 12% НСП 1% [12:19:19]line > о реализуемом товаре [12:19:19]line Товар: 2000031750019 [12:19:19]line Пакет Партнер Нефть [12:19:19]line 1.000 * 4.00 [12:19:19]line = 4.00 [12:19:19]line НДС 12% НСП 1% [12:19:19]line > о реализуемом товаре [12:19:19]line Товар: 42113270 [12:19:19]line Жев Orbit арбуз [12:19:19]line 1.000 * 45.00 [12:19:19]line = 45.00 [12:19:19]line НДС 12% НСП 1% [12:19:19]line > о реализуемом товаре [12:19:19]line ИТОГО: 349.00 [12:19:19]line НСП 1% : 3.08 [12:19:19]line НДС 12% : 37.06 [12:19:19]line Наличными: 0.00 [12:19:19]line Безнал.: 349.00 [12:19:19]line Место: АЗС № 127 "Партнер Нефть" [12:19:19]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:19:19]line СНО: Общий режим [12:19:19]line Чек 88 31.07.2024 12:19 [12:19:19]line Смена: 17 ФФД: 1.0 [12:19:19]line ЗНМ: 0300000161 [12:19:19]line РНМ: 0000000000189667 [12:19:19]line Версия ККМ: v1.0 [12:19:19]line Платежная система: O! деньги [12:19:19]line ФМ: 0000000002094248 [12:19:19]line ФД: 2635 [12:19:19]line ФПД: 237010659800538 [12:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T121917&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2635&fm=237010659800538&tin=02508201610067®Number=0000000000189667&sum=34900 [12:19:20]OFD Sender: Processing packet 2635 [packets to send 1, broken 0] [12:19:20]ProducePacketName [12:19:20]name=ofd_packets/00002635 [12:19:20]OFD Sender: To server: pG, [12:19:20]CommunicateWithHost lk.salyk.kg:30040 [12:19:20]ConnectInit lk.salyk.kg [12:19:20]line 0 [12:19:20]written 0, free lines is 4095 [12:19:20]Connected sock=10 [12:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CC 02 00 00 0E 6A C4 02 B6 20 5A 03 01 00 03 00 B8 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 0A 00 00 35 04 06 00 D7 8F 58 2F 75 DA 45 AD 1A A5 8C 88 48 4E [12:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 67 05 47 00 B5 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 32 30 39 34 32 34 38 10 04 04 00 4B 0A 00 00 F4 03 04 00 2C D7 A9 66 B6 04 01 00 00 AE D5 3A 89 CB 8F 44 2A [12:19:20]CommunicateWithHost err = 0 [12:19:20]CheckOFDResponse [12:19:20]1017 (14) - 77093643461234 [12:19:20]1041 (16) - 0000000002094248 [12:19:20]1040 (4) - 2635 [12:19:20]1012 (4) - 31.07.2024 06:18 [12:19:20]1206 (1) - 0 [12:19:20]OFD Sender: Remove packet 2635 [12:19:20]ProducePacketName [12:19:20]name=ofd_packets/00002635 [12:19:20]NVStorageDeleteData [12:19:20]Write to MH i2c: 01 00 00 76 00 76 [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: 01 07 00 76 00 00 00 00 00 00 A5 0B 2D [12:19:20]RasterBufferAndPrint [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]line [12:19:20]written 0, free lines is 3006 [12:19:20]MH_Cut [12:19:20]Write to MH i2c: D1 01 00 7D 00 01 4F [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: D1 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: D1 01 00 [12:19:20]MH_I2C_Read... [12:19:20]Read from MH i2c: D1 01 00 7D 00 00 4E [12:19:20]Write to MH i2c: 01 00 00 7E 00 7E [12:19:20]Write i2c OK [12:19:20]MH_I2C_Read... [12:19:21]OFD Sender: No OFD packet to send [12:19:21]*** Cut start [12:19:21]*** Partial cut [12:19:21]*** CUTSNS_PIN = 1 [12:19:21]*** CUTSNS_PIN = 0 [12:19:22]*** Brake cut motor [12:19:22]Read from MH i2c: 01 [12:19:22]MH_I2C_Read... [12:19:22]*** Stop cut motor [12:19:22]*** Cut end [12:19:22]Read from MH i2c: 01 07 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 FF 0F 93 [12:19:22]process_action close_receipt done [12:19:22]requested_data is exist [12:19:22]produce_requested_data [12:19:22]requested_item fm.sn is exist - process it [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 11 00 00 [12:19:22]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 17 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 49 [12:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:22]wFMCommunicate OK [12:19:22]requested_item fd.num is exist - process it [12:19:22]SAM_PROTO_GetFieldsCounters [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 13 00 00 [12:19:22]Write to MH i2c: E2 08 00 80 00 80 13 00 00 00 00 00 00 FC [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 62 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 62 00 80 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 0A 00 00 0E 04 04 00 11 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 94 [12:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 0A 00 00 0E 04 04 00 11 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 [12:19:22]wFMCommunicate OK [12:19:22]SAM_PROTO_GetFieldsCounters done [12:19:22]requested_item shift.num is exist - process it [12:19:22]requested_item shift.opened is exist - process it [12:19:22]req_shift_opened [12:19:22]FM_GetShiftState [12:19:22]SAM_PROTO_GetShiftState [12:19:22]wFMCommunicate request_size=4 [12:19:22]MH_SAM_APDU [12:19:22]CAPDU: 80 13 01 00 [12:19:22]Write to MH i2c: E2 08 00 81 00 80 13 01 00 00 00 00 00 FE [12:19:22]Write i2c OK [12:19:22]MH_I2C_Read... [12:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:22]Read from MH i2c: E2 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 [12:19:22]MH_I2C_Read... [12:19:22]Read from MH i2c: E2 0E 00 81 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 CB [12:19:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:22]wFMCommunicate OK [12:19:22]SAM_PROTO_GetShiftState done [12:19:22]FM_GetShiftState done [12:19:22]req_shift_opened done [12:19:22]requested_item shift.open_date is exist - process it [12:19:22]req_shift_open_date [12:19:22]req_shift_open_date done [12:19:22]produce_requested_data done [12:19:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2635,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:19:22]process_action_free close_receipt [12:19:22]json_value_free [12:19:22]json_value_free done [12:19:22]process_json_proto returns [12:19:22]Send response to host [12:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2635,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:19:22]free response buf [12:19:22]execute_script done [12:19:22]execute_script returns [12:19:22]free content buf [12:19:22]Sock 8.Close socket [12:19:22]Sock 8.Thread stoped [12:19:26]OFD Sender: No OFD packet to send [12:19:29]accept exits with 9 [12:19:29]New connection [12:19:29]New thread 3066637668 created [12:19:29]Thread 3066781028 joined [12:19:29]Waiting for new connection... [12:19:29] Sock 9.Parse request [12:19:29]Sock 9.Check first char [12:19:29]Sock 9.First char is OK [12:19:29]request: POST /json_proto HTTP/1.0 [12:19:29]Method: POST [12:19:29]URL: /json_proto [12:19:29]Method is POST - this is cgi request [12:19:29]url: /json_proto [12:19:29]query_string will be loaded in cgi processing [12:19:29]execute_cgi json_proto POST (null) [12:19:29]execute_cgi path=json_proto method=POST [12:19:29]POST find Content-Length [12:19:29]Host: 172.17.45.132:8080 [12:19:29]Content-Length: 813 [12:19:29]Content-Type: application/json [12:19:29] [12:19:29]POST finish read [12:19:29]Found Content-Length = 813 [12:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126809", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:29]execute_script... [12:19: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 : (3)126809", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:29]POST & json_proto [12:19:29]process_json_proto [12:19:29]json parsed OK: [12:19:29]protocol is kg_v1.0 [12:19:29]action value=close_receipt [12:19:29]process_action close_receipt [12:19:29]cmd_close_receipt [12:19:29]MH_GetDate [12:19:29]Write to MH i2c: F0 00 00 82 00 71 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 09 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 09 00 82 00 00 D2 2B AA 66 E3 0B 90 66 6B [12:19:29]GetLastDocTimeStamp 1722428357 [12:19:29]current date 1722428370 [12:19:29]FM_GetShiftState [12:19:29]SAM_PROTO_GetShiftState [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 01 00 [12:19:29]Write to MH i2c: E2 08 00 83 00 80 13 01 00 00 00 00 00 00 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 83 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 CD [12:19:29]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetShiftState done [12:19:29]FM_GetShiftState done [12:19:29]opened in 1722384689 [12:19:29]opened+sec_in_day 1722471089 [12:19:29]quantity*price = 12500 [12:19:29]sum+1 = 12501 [12:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 89 31.07.2024 12:19 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2636 ФПД: 116152538686207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T121930&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2636&fm=116152538686207&tin=02508201610067®Number=0000000000189667&sum=12500 0 [12:19:30]StoreToDocumentArchive [12:19:30]shift 17 fd 2636 [12:19:30]save to /storage/0017/doc_00002636 [12:19:30]save last doc name /storage/0017/doc_00002636 to /storage/kkm_last_doc_name [12:19:30]save OK [12:19:30]Clear old archive folders... [12:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:19:30]tlvbuf is 00E9D460 [12:19:30]SAM_PROTO_ClearQueue [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 09 00 00 [12:19:30]Write to MH i2c: E2 08 00 90 00 80 09 00 00 00 00 00 00 02 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 90 00 00 90 00 04 [12:19:31]RAPDU: 90 00 [12:19:31]wFMCommunicate OK [12:19:31]SAM_PROTO_ClearQueue done [12:19:31]KKMCreateOFDPacket [12:19:31]OFDProtocolAddRootSTLVToBuf [12:19:31]FM_MakeSignedData [12:19:31]FM_MakeSignedData [12:19:31]SAM_PROTO_SignData [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 0D 01 02 [12:19:31]Write to MH i2c: E2 08 00 91 00 80 0D 01 02 00 00 00 00 0A [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 91 00 00 90 00 05 [12:19:31]RAPDU: 90 00 [12:19:31]wFMCommunicate OK [12:19:31]wFMCommunicate request_size=255 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D2 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [12:19:31]Write to MH i2c: E2 02 01 92 00 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D2 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 2F [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]OFD Sender: No OFD packet to send [12:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 92 00 00 90 00 06 [12:19:31]RAPDU: 90 00 [12:19:31]wFMCommunicate OK [12:19:31]wFMCommunicate request_size=43 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 0A 00 00 35 04 06 00 69 A3 DE CE E2 FF [12:19:31]Write to MH i2c: E2 2E 00 93 00 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 0A 00 00 35 04 06 00 69 A3 DE CE E2 FF 00 00 E1 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 03 00 93 00 00 90 00 07 [12:19:31]RAPDU: 90 00 [12:19:31]wFMCommunicate OK [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 0D 03 02 [12:19:31]Write to MH i2c: E2 08 00 94 00 80 0D 03 02 00 00 00 00 0F [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0B 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0B 00 94 00 00 3B 10 33 B9 8F 22 29 B3 90 00 D4 [12:19:31]RAPDU: 3B 10 33 B9 8F 22 29 B3 90 00 [12:19:31]wFMCommunicate OK [12:19:31]SAM_PROTO_SignData done [12:19:31]FM_MakeSignedData done [12:19:31]CreateOFDProtocolMessage [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 11 00 00 [12:19:31]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 17 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5F [12:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:31]wFMCommunicate OK [12:19:31]CreateOFDProtocolMessage done [12:19:31]OFDSenderStorePacket 2636 [12:19:31]StoreOFDPacket docnum=2636 [12:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 14 49 28 01 65 E9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D2 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 0A 00 00 35 04 06 00 69 A3 DE CE E2 FF 3B 10 33 B9 8F 22 29 B3 [12:19:31]CheckFolder [12:19:31]dirname=/storage/ofd_packets [12:19:31]CheckFolder done [12:19:31]ProducePacketName [12:19:31]name=ofd_packets/00002636 [12:19:31]NVStorageSaveData ofd_packets/00002636 [12:19:31]File name is /storage/ofd_packets/00002636 [12:19:31]Write 334 bytes [12:19:31]NVStorageSaveData done [12:19:31]OFDSenderStorePacket done [12:19:31]KKMCreateOFDPacket done [12:19:31]NVStorageSaveData kkm_last_timestamp [12:19:31]File name is /storage/kkm_last_timestamp [12:19:31]Write 4 bytes [12:19:31]NVStorageSaveData done [12:19:31]ExternCall_PrintAddStr [12:19:31]wPrintStart [12:19:31]Write to MH i2c: 01 00 00 96 00 96 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [12:19:31]RasterBufferAndPrint [12:19:31]line Счет N : (3)126809 [12:19:31]line ИНН: 02508201610067 [12:19:31]line Контрольно-Кассовый Чек [12:19:31]line ПРОДАЖА [12:19:31]line Товар: 2000036190018 [12:19:31]line Кофе Американо XL(GABB TRADE) [12:19:31]line 1.000 * 125.00 [12:19:31]line = 125.00 [12:19:31]line НДС 12% НСП 1% [12:19:31]line > о реализуемом товаре [12:19:31]line ИТОГО: 125.00 [12:19:31]line НСП 1% : 1.11 [12:19:31]line НДС 12% : 13.27 [12:19:31]line Наличными: 0.00 [12:19:31]line Безнал.: 125.00 [12:19:31]line Место: АЗС № 127 "Партнер Нефть" [12:19:31]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:19:31]line СНО: Общий режим [12:19:31]line Чек 89 31.07.2024 12:19 [12:19:31]line Смена: 17 ФФД: 1.0 [12:19:31]line ЗНМ: 0300000161 [12:19:31]line РНМ: 0000000000189667 [12:19:31]line Версия ККМ: v1.0 [12:19:31]line Платежная система: O! деньги [12:19:31]line ФМ: 0000000002094248 [12:19:31]line ФД: 2636 [12:19:31]line ФПД: 116152538686207 [12:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T121930&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2636&fm=116152538686207&tin=02508201610067®Number=0000000000189667&sum=12500 [12:19:31]line 0 [12:19:31]written 0, free lines is 4095 [12:19:31]OFD Sender: Processing packet 2636 [packets to send 1, broken 0] [12:19:31]ProducePacketName [12:19:31]name=ofd_packets/00002636 [12:19:31]OFD Sender: To server: pG, [12:19:31]CommunicateWithHost lk.salyk.kg:30040 [12:19:31]ConnectInit lk.salyk.kg [12:19:31]Connected sock=10 [12:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 14 49 28 01 65 E9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D2 2B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 0A 00 00 35 04 06 00 69 A3 DE CE E2 FF 3B 10 33 B9 8F 22 29 B3 [12:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C4 78 47 00 25 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 0A 00 00 F4 03 04 00 38 D7 A9 66 B6 04 01 00 00 46 D7 B4 55 59 F7 A8 34 [12:19:32]CommunicateWithHost err = 0 [12:19:32]CheckOFDResponse [12:19:32]1017 (14) - 77093643461234 [12:19:32]1041 (16) - 0000000002094248 [12:19:32]1040 (4) - 2636 [12:19:32]1012 (4) - 31.07.2024 06:18 [12:19:32]1206 (1) - 0 [12:19:32]OFD Sender: Remove packet 2636 [12:19:32]ProducePacketName [12:19:32]name=ofd_packets/00002636 [12:19:32]NVStorageDeleteData [12:19:32]Write to MH i2c: 01 00 00 C1 00 C1 [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: 01 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: 01 07 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 57 0D 2C [12:19:32]RasterBufferAndPrint [12:19:32]line [12:19:32]line [12:19:32]line [12:19:32]line [12:19:32]line [12:19:32]written 0, free lines is 3436 [12:19:32]MH_Cut [12:19:32]Write to MH i2c: D1 01 00 C8 00 01 9A [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: D1 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: D1 01 00 [12:19:32]MH_I2C_Read... [12:19:32]Read from MH i2c: D1 01 00 C8 00 00 99 [12:19:32]Write to MH i2c: 01 00 00 C9 00 C9 [12:19:32]Write i2c OK [12:19:32]MH_I2C_Read... [12:19:32]OFD Sender: No OFD packet to send [12:19:32]*** Cut start [12:19:32]*** Partial cut [12:19:32]*** CUTSNS_PIN = 1 [12:19:32]*** CUTSNS_PIN = 0 [12:19:33]*** Brake cut motor [12:19:33]Read from MH i2c: 01 [12:19:33]MH_I2C_Read... [12:19:33]*** Stop cut motor [12:19:33]*** Cut end [12:19:33]Read from MH i2c: 01 07 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [12:19:33]process_action close_receipt done [12:19:33]requested_data is exist [12:19:33]produce_requested_data [12:19:33]requested_item fm.sn is exist - process it [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 11 00 00 [12:19:33]Write to MH i2c: E2 08 00 CA 00 80 11 00 00 00 00 00 00 44 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 CA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 94 [12:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:33]wFMCommunicate OK [12:19:33]requested_item fd.num is exist - process it [12:19:33]SAM_PROTO_GetFieldsCounters [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 00 00 [12:19:33]Write to MH i2c: E2 08 00 CB 00 80 13 00 00 00 00 00 00 47 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 62 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 62 00 CB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 0A 00 00 0E 04 04 00 11 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 E3 [12:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 0A 00 00 0E 04 04 00 11 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 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetFieldsCounters done [12:19:33]requested_item shift.num is exist - process it [12:19:33]requested_item shift.opened is exist - process it [12:19:33]req_shift_opened [12:19:33]FM_GetShiftState [12:19:33]SAM_PROTO_GetShiftState [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 01 00 [12:19:33]Write to MH i2c: E2 08 00 CC 00 80 13 01 00 00 00 00 00 49 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 CC 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 16 [12:19:33]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetShiftState done [12:19:33]FM_GetShiftState done [12:19:33]req_shift_opened done [12:19:33]requested_item shift.open_date is exist - process it [12:19:33]req_shift_open_date [12:19:33]req_shift_open_date done [12:19:33]produce_requested_data done [12:19:33]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2636,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:19:33]process_action_free close_receipt [12:19:33]json_value_free [12:19:33]json_value_free done [12:19:33]process_json_proto returns [12:19:33]Send response to host [12:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2636,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:19:33]free response buf [12:19:33]execute_script done [12:19:33]execute_script returns [12:19:33]free content buf [12:19:33]Sock 9.Close socket [12:19:33]Sock 9.Thread stoped [12:19:37]OFD Sender: No OFD packet to send [12:19:40]accept exits with 8 [12:19:40]New connection [12:19:40]New thread 3066781028 created [12:19:40]Thread 3066637668 joined [12:19:40]Waiting for new connection... [12:19:40] Sock 8.Parse request [12:19:40]Sock 8.Check first char [12:19:40]Sock 8.First char is OK [12:19:40]request: POST /json_proto HTTP/1.0 [12:19:40]Method: POST [12:19:40]URL: /json_proto [12:19:40]Method is POST - this is cgi request [12:19:40]url: /json_proto [12:19:40]query_string will be loaded in cgi processing [12:19:40]execute_cgi json_proto POST (null) [12:19:40]execute_cgi path=json_proto method=POST [12:19:40]POST find Content-Length [12:19:40]Host: 172.17.45.132:8080 [12:19:40]Content-Length: 1174 [12:19:40]Content-Type: application/json [12:19:40] [12:19:40]POST finish read [12:19:40]Found Content-Length = 1174 [12:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611102\u000A31.07.2024 12:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A93306\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]execute_script... [12:19:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611102\u000A31.07.2024 12:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A93306\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]POST & json_proto [12:19:40]process_json_proto [12:19:40]json parsed OK: [12:19:40]protocol is kg_v1.0 [12:19:40]action value=print_text [12:19:40]process_action print_text [12:19:40]cmd_print_text [12:19:40]ExternCall_PrintAddStr [12:19:40]wPrintStart [12:19:40]Write to MH i2c: 01 00 00 CD 00 CD [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 FF 0F E2 [12:19:40]RasterBufferAndPrint [12:19:40]line *****ТОВАРНЫЙ ЧЕК***** [12:19:40]line АЗС 127 [12:19:40]line Партнер нефть [12:19:40]line 02508201610067 [12:19:40]line Кассир : Аятов Д. [12:19:40]line Счет N : (1)611102 [12:19:40]line 31.07.2024 12:08 [12:19:40]line ПРОДАЖА [12:19:40]line ТРК (МРК, ГНК): 2 [12:19:40]line Вид ГСМ : 2710194210 [12:19:40]line ДТ-К-2 [12:19:40]line 100.000 x 75.70 [12:19:40]line ИТОГ: 7570.00 [12:19:40]line Тип оплаты: Талоны: Топливная Карта [12:19:40]line 93306 [12:19:40]line ______________________ [12:19:40]line (подпись) [12:19:40]written 0, free lines is 4095 [12:19:40]Write to MH i2c: 01 00 00 E1 00 E1 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 0E 0E 04 [12:19:40]RasterBufferAndPrint [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]written 0, free lines is 3607 [12:19:40]MH_Cut [12:19:40]Write to MH i2c: D1 01 00 E8 00 01 BA [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 E8 00 00 B9 [12:19:40]Write to MH i2c: 01 00 00 E9 00 E9 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:41]*** Cut start [12:19:41]*** Partial cut [12:19:41]*** CUTSNS_PIN = 1 [12:19:41]*** CUTSNS_PIN = 0 [12:19:41]*** Brake cut motor [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]*** Stop cut motor [12:19:41]*** Cut end [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [12:19:41]process_action print_text done [12:19:41]requested_data is exist [12:19:41]produce_requested_data [12:19:41]requested_item fm.sn is exist - process it [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 11 00 00 [12:19:41]Write to MH i2c: E2 08 00 EA 00 80 11 00 00 00 00 00 00 64 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B4 [12:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:19:41]wFMCommunicate OK [12:19:41]requested_item fd.num is exist - process it [12:19:41]SAM_PROTO_GetFieldsCounters [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 13 00 00 [12:19:41]Write to MH i2c: E2 08 00 EB 00 80 13 00 00 00 00 00 00 67 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 EB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 0A 00 00 0E 04 04 00 11 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 03 [12:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 0A 00 00 0E 04 04 00 11 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 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetFieldsCounters done [12:19:42]requested_item shift.num is exist - process it [12:19:42]requested_item shift.opened is exist - process it [12:19:42]req_shift_opened [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 36 [12:19:42]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetShiftState done [12:19:42]FM_GetShiftState done [12:19:42]req_shift_opened done [12:19:42]requested_item shift.open_date is exist - process it [12:19:42]req_shift_open_date [12:19:42]req_shift_open_date done [12:19:42]produce_requested_data done [12:19:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2636,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:19:42]process_action_free print_text [12:19:42]json_value_free [12:19:42]json_value_free done [12:19:42]process_json_proto returns [12:19:42]Send response to host [12:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2636,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:19:42]free response buf [12:19:42]execute_script done [12:19:42]execute_script returns [12:19:42]free content buf [12:19:42]Sock 8.Close socket [12:19:42]Sock 8.Thread stoped [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]accept exits with 9 [12:22:52]New connection [12:22:52]New thread 3066637668 created [12:22:52]Thread 3066781028 joined [12:22:52]Waiting for new connection... [12:22:52] Sock 9.Parse request [12:22:52]Sock 9.Check first char [12:22:52]Sock 9.First char is OK [12:22:52]request: POST /json_proto HTTP/1.0 [12:22:52]Method: POST [12:22:52]URL: /json_proto [12:22:52]Method is POST - this is cgi request [12:22:52]url: /json_proto [12:22:52]query_string will be loaded in cgi processing [12:22:52]execute_cgi json_proto POST (null) [12:22:52]execute_cgi path=json_proto method=POST [12:22:52]POST find Content-Length [12:22:52]Host: 172.17.45.132:8080 [12:22:52]Content-Length: 620 [12:22:52]Content-Type: application/json [12:22:52] [12:22:52]POST finish read [12:22:52]Found Content-Length = 620 [12:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126810", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:52]execute_script... [12:22:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126810", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:52]POST & json_proto [12:22:52]process_json_proto [12:22:52]json parsed OK: [12:22:52]protocol is kg_v1.0 [12:22:52]action value=close_receipt [12:22:52]process_action close_receipt [12:22:52]cmd_close_receipt [12:22:52]MH_GetDate [12:22:52]Write to MH i2c: F0 00 00 ED 00 DC [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: F0 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: F0 09 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: F0 09 00 ED 00 00 9C 2C AA 66 E3 0B 90 66 A1 [12:22:52]GetLastDocTimeStamp 1722428370 [12:22:52]current date 1722428572 [12:22:52]FM_GetShiftState [12:22:52]SAM_PROTO_GetShiftState [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 13 01 00 [12:22:52]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 38 [12:22:52]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetShiftState done [12:22:52]FM_GetShiftState done [12:22:52]opened in 1722384689 [12:22:52]opened+sec_in_day 1722471089 [12:22:52]quantity*price = 4900 [12:22:52]sum+1 = 4901 [12:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 90 31.07.2024 12:22 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2637 ФПД: 174248846388438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2637&fm=174248846388438&tin=02508201610067®Number=0000000000189667&sum=4900 0 [12:22:53]StoreToDocumentArchive [12:22:53]shift 17 fd 2637 [12:22:53]save to /storage/0017/doc_00002637 [12:22:53]save last doc name /storage/0017/doc_00002637 to /storage/kkm_last_doc_name [12:22:53]save OK [12:22:53]Clear old archive folders... [12:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:22:53]tlvbuf is 00F112E0 [12:22:53]SAM_PROTO_ClearQueue [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 09 00 00 [12:22:53]Write to MH i2c: E2 08 00 FB 00 80 09 00 00 00 00 00 00 6D [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:53]Read from MH i2c: E2 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 03 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [12:22:53]RAPDU: 90 00 [12:22:53]wFMCommunicate OK [12:22:53]SAM_PROTO_ClearQueue done [12:22:53]KKMCreateOFDPacket [12:22:53]OFDProtocolAddRootSTLVToBuf [12:22:53]FM_MakeSignedData [12:22:53]FM_MakeSignedData [12:22:53]SAM_PROTO_SignData [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 0D 01 02 [12:22:53]Write to MH i2c: E2 08 00 FC 00 80 0D 01 02 00 00 00 00 75 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:53]Read from MH i2c: E2 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 03 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [12:22:53]RAPDU: 90 00 [12:22:53]wFMCommunicate OK [12:22:53]wFMCommunicate request_size=255 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9C 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 [12:22:53]Write to MH i2c: E2 02 01 FD 00 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9C 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 00 00 0C [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [12:22:54]RAPDU: 90 00 [12:22:54]wFMCommunicate OK [12:22:54]wFMCommunicate request_size=38 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 0A 00 00 35 04 06 00 9E 7A 78 97 6C D6 [12:22:54]Write to MH i2c: E2 29 00 FE 00 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 0A 00 00 35 04 06 00 9E 7A 78 97 6C D6 00 00 BE [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [12:22:54]RAPDU: 90 00 [12:22:54]wFMCommunicate OK [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 0D 03 02 [12:22:54]Write to MH i2c: E2 08 00 FF 00 80 0D 03 02 00 00 00 00 7A [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 0B 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 0B 00 FF 00 00 6C 38 A3 70 6E CB ED E4 90 00 3C [12:22:54]RAPDU: 6C 38 A3 70 6E CB ED E4 90 00 [12:22:54]wFMCommunicate OK [12:22:54]SAM_PROTO_SignData done [12:22:54]FM_MakeSignedData done [12:22:54]CreateOFDProtocolMessage [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 11 00 00 [12:22:54]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 17 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CB [12:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:22:54]wFMCommunicate OK [12:22:54]CreateOFDProtocolMessage done [12:22:54]OFDSenderStorePacket 2637 [12:22:54]StoreOFDPacket docnum=2637 [12:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 1F B4 23 01 18 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9C 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 0A 00 00 35 04 06 00 9E 7A 78 97 6C D6 6C 38 A3 70 6E CB ED E4 [12:22:54]CheckFolder [12:22:54]dirname=/storage/ofd_packets [12:22:54]CheckFolder done [12:22:54]ProducePacketName [12:22:54]name=ofd_packets/00002637 [12:22:54]NVStorageSaveData ofd_packets/00002637 [12:22:54]File name is /storage/ofd_packets/00002637 [12:22:54]Write 329 bytes [12:22:54]NVStorageSaveData done [12:22:54]OFDSenderStorePacket done [12:22:54]KKMCreateOFDPacket done [12:22:54]NVStorageSaveData kkm_last_timestamp [12:22:54]File name is /storage/kkm_last_timestamp [12:22:54]Write 4 bytes [12:22:54]NVStorageSaveData done [12:22:54]ExternCall_PrintAddStr [12:22:54]wPrintStart [12:22:54]Write to MH i2c: 01 00 00 01 01 02 [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: 01 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: 01 07 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [12:22:54]RasterBufferAndPrint [12:22:54]line Счет N : (3)126810 [12:22:54]line ИНН: 02508201610067 [12:22:54]line Контрольно-Кассовый Чек [12:22:54]line ПРОДАЖА [12:22:54]line Товар: 46214645 [12:22:54]line Р/ж mentos pure white клуб 16/15,5г [12:22:54]line 1.000 * 49.00 [12:22:54]line = 49.00 [12:22:54]line НДС 12% НСП 1% [12:22:54]line > о реализуемом товаре [12:22:54]line ИТОГО: 49.00 [12:22:54]line НСП 1% : 0.43 [12:22:54]line НДС 12% : 5.20 [12:22:54]line Наличными: 49.00 [12:22:54]line Безнал.: 0.00 [12:22:54]line Место: АЗС № 127 "Партнер Нефть" [12:22:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:22:54]line СНО: Общий режим [12:22:54]line Чек 90 31.07.2024 12:22 [12:22:54]line Смена: 17 ФФД: 1.0 [12:22:54]line ЗНМ: 0300000161 [12:22:54]line РНМ: 0000000000189667 [12:22:54]line Версия ККМ: v1.0 [12:22:54]line ФМ: 0000000002094248 [12:22:54]line ФД: 2637 [12:22:54]line ФПД: 174248846388438 [12:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2637&fm=174248846388438&tin=02508201610067®Number=0000000000189667&sum=4900 [12:22:54]line 0 [12:22:54]OFD Sender: Processing packet 2637 [packets to send 1, broken 0] [12:22:54]ProducePacketName [12:22:54]name=ofd_packets/00002637 [12:22:54]OFD Sender: To server: pG, [12:22:54]CommunicateWithHost lk.salyk.kg:30040 [12:22:54]ConnectInit lk.salyk.kg [12:22:54]written 0, free lines is 4095 [12:22:54]Connected sock=11 [12:22:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 1F B4 23 01 18 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9C 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 0A 00 00 35 04 06 00 9E 7A 78 97 6C D6 6C 38 A3 70 6E CB ED E4 [12:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C4 A5 47 00 F9 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 32 30 39 34 32 34 38 10 04 04 00 4D 0A 00 00 F4 03 04 00 03 D8 A9 66 B6 04 01 00 00 26 99 18 F0 3E 24 86 AC [12:22:55]CommunicateWithHost err = 0 [12:22:55]CheckOFDResponse [12:22:55]1017 (14) - 77093643461234 [12:22:55]1041 (16) - 0000000002094248 [12:22:55]1040 (4) - 2637 [12:22:55]1012 (4) - 31.07.2024 06:21 [12:22:55]1206 (1) - 0 [12:22:55]OFD Sender: Remove packet 2637 [12:22:55]ProducePacketName [12:22:55]name=ofd_packets/00002637 [12:22:55]NVStorageDeleteData [12:22:55]Write to MH i2c: 01 00 00 2A 01 2B [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 06 0D 45 [12:22:55]RasterBufferAndPrint [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]written 0, free lines is 3341 [12:22:55]MH_Cut [12:22:55]Write to MH i2c: D1 01 00 31 01 01 04 [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: D1 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: D1 01 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: D1 01 00 31 01 00 03 [12:22:55]Write to MH i2c: 01 00 00 32 01 33 [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]OFD Sender: No OFD packet to send [12:22:55]*** Cut start [12:22:55]*** Partial cut [12:22:55]*** CUTSNS_PIN = 1 [12:22:55]*** CUTSNS_PIN = 0 [12:22:56]*** Brake cut motor [12:22:56]Read from MH i2c: 01 [12:22:56]MH_I2C_Read... [12:22:56]*** Stop cut motor [12:22:56]*** Cut end [12:22:56]Read from MH i2c: 01 07 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [12:22:56]process_action close_receipt done [12:22:56]requested_data is exist [12:22:56]produce_requested_data [12:22:56]requested_item fm.sn is exist - process it [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 11 00 00 [12:22:56]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 17 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FE [12:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:22:56]wFMCommunicate OK [12:22:56]requested_item fd.num is exist - process it [12:22:56]SAM_PROTO_GetFieldsCounters [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 13 00 00 [12:22:56]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 62 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 62 00 34 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 0A 00 00 0E 04 04 00 11 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 51 [12:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 0A 00 00 0E 04 04 00 11 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 [12:22:56]wFMCommunicate OK [12:22:56]SAM_PROTO_GetFieldsCounters done [12:22:56]requested_item shift.num is exist - process it [12:22:56]requested_item shift.opened is exist - process it [12:22:56]req_shift_opened [12:22:56]FM_GetShiftState [12:22:56]SAM_PROTO_GetShiftState [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 13 01 00 [12:22:56]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 0E 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 80 [12:22:56]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:22:56]wFMCommunicate OK [12:22:56]SAM_PROTO_GetShiftState done [12:22:56]FM_GetShiftState done [12:22:56]req_shift_opened done [12:22:56]requested_item shift.open_date is exist - process it [12:22:56]req_shift_open_date [12:22:56]req_shift_open_date done [12:22:56]produce_requested_data done [12:22:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2637,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:22:56]process_action_free close_receipt [12:22:56]json_value_free [12:22:56]json_value_free done [12:22:56]process_json_proto returns [12:22:56]Send response to host [12:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2637,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:22:56]free response buf [12:22:56]execute_script done [12:22:56]execute_script returns [12:22:56]free content buf [12:22:56]Sock 9.Close socket [12:22:56]Sock 9.Thread stoped [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:18]accept exits with 8 [12:23:18]New connection [12:23:18]New thread 3066781028 created [12:23:18]Thread 3066637668 joined [12:23:18]Waiting for new connection... [12:23:18] Sock 8.Parse request [12:23:18]Sock 8.Check first char [12:23:18]Sock 8.First char is OK [12:23:18]request: POST /json_proto HTTP/1.0 [12:23:18]Method: POST [12:23:18]URL: /json_proto [12:23:18]Method is POST - this is cgi request [12:23:18]url: /json_proto [12:23:18]query_string will be loaded in cgi processing [12:23:18]execute_cgi json_proto POST (null) [12:23:18]execute_cgi path=json_proto method=POST [12:23:18]POST find Content-Length [12:23:18]Host: 172.17.45.132:8080 [12:23:18]Content-Length: 655 [12:23:18]Content-Type: application/json [12:23:18] [12:23:18]POST finish read [12:23:18]Found Content-Length = 655 [12:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126811", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:18]execute_script... [12: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 : (3)126811", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:18]POST & json_proto [12:23:18]process_json_proto [12:23:18]json parsed OK: [12:23:18]protocol is kg_v1.0 [12:23:18]action value=close_receipt [12:23:18]process_action close_receipt [12:23:18]cmd_close_receipt [12:23:18]MH_GetDate [12:23:18]Write to MH i2c: F0 00 00 36 01 26 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: F0 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: F0 09 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: F0 09 00 36 01 00 B6 2C AA 66 E3 0B 90 66 05 [12:23:18]GetLastDocTimeStamp 1722428572 [12:23:18]current date 1722428598 [12:23:18]FM_GetShiftState [12:23:18]SAM_PROTO_GetShiftState [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 13 01 00 [12:23:18]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:18]Read from MH i2c: E2 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 0E 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 82 [12:23:18]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:23:18]wFMCommunicate OK [12:23:18]SAM_PROTO_GetShiftState done [12:23:18]FM_GetShiftState done [12:23:18]opened in 1722384689 [12:23:18]opened+sec_in_day 1722471089 [12:23:18]quantity*price = 9000 [12:23:18]sum+1 = 9001 [12:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 91 31.07.2024 12:23 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2638 ФПД: 211698447897974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2638&fm=211698447897974&tin=02508201610067®Number=0000000000189667&sum=9000 0 [12:23:19]StoreToDocumentArchive [12:23:19]shift 17 fd 2638 [12:23:19]save to /storage/0017/doc_00002638 [12:23:19]save last doc name /storage/0017/doc_00002638 to /storage/kkm_last_doc_name [12:23:19]save OK [12:23:19]Clear old archive folders... [12:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:23:19]tlvbuf is 00F01390 [12:23:19]SAM_PROTO_ClearQueue [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 09 00 00 [12:23:19]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 03 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [12:23:19]RAPDU: 90 00 [12:23:19]wFMCommunicate OK [12:23:19]SAM_PROTO_ClearQueue done [12:23:19]KKMCreateOFDPacket [12:23:19]OFDProtocolAddRootSTLVToBuf [12:23:19]FM_MakeSignedData [12:23:19]FM_MakeSignedData [12:23:19]SAM_PROTO_SignData [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 0D 01 02 [12:23:19]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [12:23:20]RAPDU: 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=255 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B6 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [12:23:20]Write to MH i2c: E2 02 01 46 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B6 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 F4 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [12:23:20]RAPDU: 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=41 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 0A 00 00 35 04 06 00 C0 89 E2 C9 55 76 [12:23:20]Write to MH i2c: E2 2C 00 47 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 0A 00 00 35 04 06 00 C0 89 E2 C9 55 76 00 00 A5 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [12:23:20]RAPDU: 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 0D 03 02 [12:23:20]Write to MH i2c: E2 08 00 48 01 80 0D 03 02 00 00 00 00 C4 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0B 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0B 00 48 01 00 F9 EF FD 49 56 9B 13 0B 90 00 02 [12:23:20]RAPDU: F9 EF FD 49 56 9B 13 0B 90 00 [12:23:20]wFMCommunicate OK [12:23:20]SAM_PROTO_SignData done [12:23:20]FM_MakeSignedData done [12:23:20]CreateOFDProtocolMessage [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 11 00 00 [12:23:20]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 17 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [12:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:23:20]wFMCommunicate OK [12:23:20]CreateOFDProtocolMessage done [12:23:20]OFDSenderStorePacket 2638 [12:23:20]StoreOFDPacket docnum=2638 [12:23:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 84 52 26 01 1E 40 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B6 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 0A 00 00 35 04 06 00 C0 89 E2 C9 55 76 F9 EF FD 49 56 9B 13 0B [12:23:20]CheckFolder [12:23:20]dirname=/storage/ofd_packets [12:23:20]CheckFolder done [12:23:20]ProducePacketName [12:23:20]name=ofd_packets/00002638 [12:23:20]NVStorageSaveData ofd_packets/00002638 [12:23:20]File name is /storage/ofd_packets/00002638 [12:23:20]Write 332 bytes [12:23:20]NVStorageSaveData done [12:23:20]OFDSenderStorePacket done [12:23:20]KKMCreateOFDPacket done [12:23:20]NVStorageSaveData kkm_last_timestamp [12:23:20]File name is /storage/kkm_last_timestamp [12:23:20]Write 4 bytes [12:23:20]NVStorageSaveData done [12:23:20]ExternCall_PrintAddStr [12:23:20]wPrintStart [12:23:20]Write to MH i2c: 01 00 00 4A 01 4B [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: 01 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: 01 07 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [12:23:20]RasterBufferAndPrint [12:23:20]line Счет N : (3)126811 [12:23:20]line ИНН: 02508201610067 [12:23:20]line Контрольно-Кассовый Чек [12:23:20]line ПРОДАЖА [12:23:20]line Товар: 4870001159955 [12:23:20]line Вода ASU пит н.газ ПЭТ 1л [12:23:20]line 2.000 * 45.00 [12:23:20]line = 90.00 [12:23:20]line НДС 12% НСП 1% [12:23:20]line > о реализуемом товаре [12:23:20]line ИТОГО: 90.00 [12:23:20]line НСП 1% : 0.80 [12:23:20]line НДС 12% : 9.56 [12:23:20]line Наличными: 90.00 [12:23:20]line Безнал.: 0.00 [12:23:20]line Место: АЗС № 127 "Партнер Нефть" [12:23:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:23:20]line СНО: Общий режим [12:23:20]line Чек 91 31.07.2024 12:23 [12:23:20]line Смена: 17 ФФД: 1.0 [12:23:20]line ЗНМ: 0300000161 [12:23:20]line РНМ: 0000000000189667 [12:23:20]line Версия ККМ: v1.0 [12:23:20]line ФМ: 0000000002094248 [12:23:20]line ФД: 2638 [12:23:20]line ФПД: 211698447897974 [12:23:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2638&fm=211698447897974&tin=02508201610067®Number=0000000000189667&sum=9000 [12:23:20]line 0 [12:23:20]OFD Sender: Processing packet 2638 [packets to send 1, broken 0] [12:23:20]ProducePacketName [12:23:20]name=ofd_packets/00002638 [12:23:20]OFD Sender: To server: pG, [12:23:20]CommunicateWithHost lk.salyk.kg:30040 [12:23:20]ConnectInit lk.salyk.kg [12:23:20]written 0, free lines is 4095 [12:23:20]Connected sock=10 [12:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 84 52 26 01 1E 40 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B6 2C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 0A 00 00 35 04 06 00 C0 89 E2 C9 55 76 F9 EF FD 49 56 9B 13 0B [12:23:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EC 9F 47 00 B4 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 0A 00 00 F4 03 04 00 1D D8 A9 66 B6 04 01 00 00 AD 62 1B 46 89 8A 23 CE [12:23:21]CommunicateWithHost err = 0 [12:23:21]CheckOFDResponse [12:23:21]1017 (14) - 77093643461234 [12:23:21]1041 (16) - 0000000002094248 [12:23:21]1040 (4) - 2638 [12:23:21]1012 (4) - 31.07.2024 06:22 [12:23:21]1206 (1) - 0 [12:23:21]OFD Sender: Remove packet 2638 [12:23:21]ProducePacketName [12:23:21]name=ofd_packets/00002638 [12:23:21]NVStorageDeleteData [12:23:21]Write to MH i2c: 01 00 00 72 01 73 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 0F 0D 96 [12:23:21]RasterBufferAndPrint [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]written 0, free lines is 3349 [12:23:21]MH_Cut [12:23:21]Write to MH i2c: D1 01 00 79 01 01 4C [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 01 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 01 00 79 01 00 4B [12:23:21]Write to MH i2c: 01 00 00 7A 01 7B [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]OFD Sender: No OFD packet to send [12:23:21]*** Cut start [12:23:21]*** Partial cut [12:23:21]*** CUTSNS_PIN = 1 [12:23:21]*** CUTSNS_PIN = 0 [12:23:22]*** Brake cut motor [12:23:22]Read from MH i2c: 01 [12:23:22]MH_I2C_Read... [12:23:22]*** Stop cut motor [12:23:22]*** Cut end [12:23:22]Read from MH i2c: 01 07 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [12:23:22]process_action close_receipt done [12:23:22]requested_data is exist [12:23:22]produce_requested_data [12:23:22]requested_item fm.sn is exist - process it [12:23:22]wFMCommunicate request_size=4 [12:23:22]MH_SAM_APDU [12:23:22]CAPDU: 80 11 00 00 [12:23:22]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:22]Read from MH i2c: E2 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 17 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 46 [12:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:23:22]wFMCommunicate OK [12:23:22]requested_item fd.num is exist - process it [12:23:22]SAM_PROTO_GetFieldsCounters [12:23:22]wFMCommunicate request_size=4 [12:23:22]MH_SAM_APDU [12:23:22]CAPDU: 80 13 00 00 [12:23:22]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:22]Read from MH i2c: E2 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 62 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 62 00 7C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 0A 00 00 0E 04 04 00 11 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 9D [12:23:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 0A 00 00 0E 04 04 00 11 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 [12:23:22]wFMCommunicate OK [12:23:22]SAM_PROTO_GetFieldsCounters done [12:23:22]requested_item shift.num is exist - process it [12:23:22]requested_item shift.opened is exist - process it [12:23:22]req_shift_opened [12:23:22]FM_GetShiftState [12:23:22]SAM_PROTO_GetShiftState [12:23:22]wFMCommunicate request_size=4 [12:23:22]MH_SAM_APDU [12:23:22]CAPDU: 80 13 01 00 [12:23:22]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:22]Read from MH i2c: E2 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 0E 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C8 [12:23:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:23:22]wFMCommunicate OK [12:23:22]SAM_PROTO_GetShiftState done [12:23:22]FM_GetShiftState done [12:23:22]req_shift_opened done [12:23:22]requested_item shift.open_date is exist - process it [12:23:22]req_shift_open_date [12:23:22]req_shift_open_date done [12:23:22]produce_requested_data done [12:23:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2638,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:23:22]process_action_free close_receipt [12:23:22]json_value_free [12:23:22]json_value_free done [12:23:22]process_json_proto returns [12:23:22]Send response to host [12:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2638,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:23:22]free response buf [12:23:22]execute_script done [12:23:22]execute_script returns [12:23:22]free content buf [12:23:22]Sock 8.Close socket [12:23:22]Sock 8.Thread stoped [12:23:26]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:25:59]accept exits with 9 [12:25:59]New connection [12:25:59]New thread 3066637668 created [12:25:59]Thread 3066781028 joined [12:25:59]Waiting for new connection... [12:25:59] Sock 9.Parse request [12:25:59]Sock 9.Check first char [12:25:59]Sock 9.First char is OK [12:25:59]request: POST /json_proto HTTP/1.0 [12:25:59]Method: POST [12:25:59]URL: /json_proto [12:25:59]Method is POST - this is cgi request [12:25:59]url: /json_proto [12:25:59]query_string will be loaded in cgi processing [12:25:59]execute_cgi json_proto POST (null) [12:25:59]execute_cgi path=json_proto method=POST [12:25:59]POST find Content-Length [12:25:59]Host: 172.17.45.132:8080 [12:25:59]Content-Length: 629 [12:25:59]Content-Type: application/json [12:25:59] [12:25:59]POST finish read [12:25:59]Found Content-Length = 629 [12:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126812", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]execute_script... [12:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126812", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]POST & json_proto [12:25:59]process_json_proto [12:25:59]json parsed OK: [12:25:59]protocol is kg_v1.0 [12:25:59]action value=close_receipt [12:25:59]process_action close_receipt [12:25:59]cmd_close_receipt [12:25:59]MH_GetDate [12:25:59]Write to MH i2c: F0 00 00 7E 01 6E [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 7E 01 00 57 2D AA 66 E3 0B 90 66 EF [12:25:59]GetLastDocTimeStamp 1722428598 [12:25:59]current date 1722428759 [12:25:59]FM_GetShiftState [12:25:59]SAM_PROTO_GetShiftState [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 01 00 [12:25:59]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 CA [12:25:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetShiftState done [12:25:59]FM_GetShiftState done [12:25:59]opened in 1722384689 [12:25:59]opened+sec_in_day 1722471089 [12:25:59]quantity*price = 23000 [12:25:59]sum+1 = 23001 [12:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 92 31.07.2024 12:26 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2639 ФПД: 65005807726962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122600&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2639&fm=65005807726962&tin=02508201610067®Number=0000000000189667&sum=23000 0 [12:26:00]StoreToDocumentArchive [12:26:00]shift 17 fd 2639 [12:26:00]save to /storage/0017/doc_00002639 [12:26:00]save last doc name /storage/0017/doc_00002639 to /storage/kkm_last_doc_name [12:26:00]save OK [12:26:00]Clear old archive folders... [12:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:26:01]tlvbuf is 00F037F0 [12:26:01]SAM_PROTO_ClearQueue [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 09 00 00 [12:26:01]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]SAM_PROTO_ClearQueue done [12:26:01]KKMCreateOFDPacket [12:26:01]OFDProtocolAddRootSTLVToBuf [12:26:01]FM_MakeSignedData [12:26:01]FM_MakeSignedData [12:26:01]SAM_PROTO_SignData [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 01 02 [12:26:01]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=255 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 58 2D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [12:26:01]Write to MH i2c: E2 02 01 8E 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 58 2D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 2D [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=28 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 4F 0A 00 00 35 04 06 00 3B 1F 58 13 F1 72 [12:26:01]Write to MH i2c: E2 1F 00 8F 01 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 4F 0A 00 00 35 04 06 00 3B 1F 58 13 F1 72 00 00 1B [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 03 02 [12:26:01]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 0B 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 0B 00 90 01 00 F3 55 EC 4F E3 53 2E 6E 90 00 62 [12:26:01]RAPDU: F3 55 EC 4F E3 53 2E 6E 90 00 [12:26:01]wFMCommunicate OK [12:26:01]SAM_PROTO_SignData done [12:26:01]FM_MakeSignedData done [12:26:01]CreateOFDProtocolMessage [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 11 00 00 [12:26:01]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 17 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5C [12:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:26:01]wFMCommunicate OK [12:26:01]CreateOFDProtocolMessage done [12:26:01]OFDSenderStorePacket 2639 [12:26:01]StoreOFDPacket docnum=2639 [12:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 97 18 19 01 95 44 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 58 2D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 0A 00 00 35 04 06 00 3B 1F 58 13 F1 72 F3 55 EC 4F E3 53 2E 6E [12:26:01]CheckFolder [12:26:01]dirname=/storage/ofd_packets [12:26:01]CheckFolder done [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00002639 [12:26:01]NVStorageSaveData ofd_packets/00002639 [12:26:01]File name is /storage/ofd_packets/00002639 [12:26:01]Write 319 bytes [12:26:01]NVStorageSaveData done [12:26:01]OFDSenderStorePacket done [12:26:01]KKMCreateOFDPacket done [12:26:01]NVStorageSaveData kkm_last_timestamp [12:26:01]File name is /storage/kkm_last_timestamp [12:26:01]Write 4 bytes [12:26:01]NVStorageSaveData done [12:26:01]ExternCall_PrintAddStr [12:26:01]wPrintStart [12:26:01]Write to MH i2c: 01 00 00 92 01 93 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 07 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [12:26:01]RasterBufferAndPrint [12:26:01]line Счет N : (3)126812 [12:26:01]line ИНН: 02508201610067 [12:26:01]line Контрольно-Кассовый Чек [12:26:01]line ПРОДАЖА [12:26:01]line Товар: 4700003610553 [12:26:01]line Вода Энесай 10л. [12:26:01]line 2.000 * 115.00 [12:26:01]line = 230.00 [12:26:01]line НДС 12% НСП 1% [12:26:01]line > о реализуемом товаре [12:26:01]line ИТОГО: 230.00 [12:26:01]line НСП 1% : 2.03 [12:26:01]line НДС 12% : 24.42 [12:26:01]line Наличными: 230.00 [12:26:01]line Безнал.: 0.00 [12:26:01]line Место: АЗС № 127 "Партнер Нефть" [12:26:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:26:01]line СНО: Общий режим [12:26:01]line Чек 92 31.07.2024 12:26 [12:26:01]line Смена: 17 ФФД: 1.0 [12:26:01]line ЗНМ: 0300000161 [12:26:01]line РНМ: 0000000000189667 [12:26:01]line Версия ККМ: v1.0 [12:26:01]line ФМ: 0000000002094248 [12:26:01]line ФД: 2639 [12:26:01]line ФПД: 65005807726962 [12:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T122600&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2639&fm=65005807726962&tin=02508201610067®Number=0000000000189667&sum=23000 [12:26:01]line 0 [12:26:01]OFD Sender: Processing packet 2639 [packets to send 1, broken 0] [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00002639 [12:26:01]OFD Sender: To server: pG, [12:26:01]CommunicateWithHost lk.salyk.kg:30040 [12:26:01]ConnectInit lk.salyk.kg [12:26:01]written 0, free lines is 4095 [12:26:02]Connected sock=10 [12:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 97 18 19 01 95 44 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 58 2D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 0A 00 00 35 04 06 00 3B 1F 58 13 F1 72 F3 55 EC 4F E3 53 2E 6E [12:26:02]Write to MH i2c: 01 00 00 BA 01 BB [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 07 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 09 0D D8 [12:26:02]RasterBufferAndPrint [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]written 0, free lines is 3343 [12:26:02]MH_Cut [12:26:02]Write to MH i2c: D1 01 00 C1 01 01 94 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 01 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 01 00 C1 01 00 93 [12:26:02]Write to MH i2c: 01 00 00 C2 01 C3 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2C 2E 47 00 F3 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 32 30 39 34 32 34 38 10 04 04 00 4F 0A 00 00 F4 03 04 00 BE D8 A9 66 B6 04 01 00 00 67 ED 02 DB EB 17 BB AC [12:26:02]CommunicateWithHost err = 0 [12:26:02]CheckOFDResponse [12:26:02]1017 (14) - 77093643461234 [12:26:02]1041 (16) - 0000000002094248 [12:26:02]1040 (4) - 2639 [12:26:02]1012 (4) - 31.07.2024 06:25 [12:26:02]1206 (1) - 0 [12:26:02]OFD Sender: Remove packet 2639 [12:26:02]ProducePacketName [12:26:02]name=ofd_packets/00002639 [12:26:02]NVStorageDeleteData [12:26:02]*** Cut start [12:26:02]*** Partial cut [12:26:02]*** CUTSNS_PIN = 1 [12:26:03]OFD Sender: No OFD packet to send [12:26:03]*** CUTSNS_PIN = 0 [12:26:03]*** Brake cut motor [12:26:03]Read from MH i2c: 01 [12:26:03]MH_I2C_Read... [12:26:03]*** Stop cut motor [12:26:03]*** Cut end [12:26:03]Read from MH i2c: 01 07 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [12:26:03]process_action close_receipt done [12:26:03]requested_data is exist [12:26:03]produce_requested_data [12:26:03]requested_item fm.sn is exist - process it [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 11 00 00 [12:26:03]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 17 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [12:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:26:03]wFMCommunicate OK [12:26:03]requested_item fd.num is exist - process it [12:26:03]SAM_PROTO_GetFieldsCounters [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 13 00 00 [12:26:03]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 62 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 62 00 C4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 0A 00 00 0E 04 04 00 11 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 E9 [12:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 0A 00 00 0E 04 04 00 11 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 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetFieldsCounters done [12:26:03]requested_item shift.num is exist - process it [12:26:03]requested_item shift.opened is exist - process it [12:26:03]req_shift_opened [12:26:03]FM_GetShiftState [12:26:03]SAM_PROTO_GetShiftState [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 13 01 00 [12:26:03]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 10 [12:26:03]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetShiftState done [12:26:03]FM_GetShiftState done [12:26:03]req_shift_opened done [12:26:03]requested_item shift.open_date is exist - process it [12:26:03]req_shift_open_date [12:26:03]req_shift_open_date done [12:26:03]produce_requested_data done [12:26:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2639,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:26:03]process_action_free close_receipt [12:26:03]json_value_free [12:26:03]json_value_free done [12:26:03]process_json_proto returns [12:26:03]Send response to host [12:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2639,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:26:03]free response buf [12:26:03]execute_script done [12:26:03]execute_script returns [12:26:03]free content buf [12:26:03]Sock 9.Close socket [12:26:03]Sock 9.Thread stoped [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:44]accept exits with 8 [12:37:44]New connection [12:37:44]New thread 3066781028 created [12:37:44]Thread 3066637668 joined [12:37:44]Waiting for new connection... [12:37:44] Sock 8.Parse request [12:37:44]Sock 8.Check first char [12:37:44]Sock 8.First char is OK [12:37:44]request: POST /json_proto HTTP/1.0 [12:37:44]Method: POST [12:37:44]URL: /json_proto [12:37:44]Method is POST - this is cgi request [12:37:44]url: /json_proto [12:37:44]query_string will be loaded in cgi processing [12:37:44]execute_cgi json_proto POST (null) [12:37:44]execute_cgi path=json_proto method=POST [12:37:44]POST find Content-Length [12:37:44]Host: 172.17.45.132:8080 [12:37:44]Content-Length: 630 [12:37:44]Content-Type: application/json [12:37:44] [12:37:44]POST finish read [12:37:44]Found Content-Length = 630 [12:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126813", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:44]execute_script... [12:37: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 : (3)126813", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:44]POST & json_proto [12:37:44]process_json_proto [12:37:44]json parsed OK: [12:37:44]protocol is kg_v1.0 [12:37:44]action value=close_receipt [12:37:44]process_action close_receipt [12:37:44]cmd_close_receipt [12:37:44]MH_GetDate [12:37:44]Write to MH i2c: F0 00 00 C6 01 B6 [12:37:44]Write i2c OK [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: F0 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: F0 09 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: F0 09 00 C6 01 00 18 30 AA 66 E3 0B 90 66 FB [12:37:44]GetLastDocTimeStamp 1722428760 [12:37:44]current date 1722429464 [12:37:44]FM_GetShiftState [12:37:44]SAM_PROTO_GetShiftState [12:37:44]wFMCommunicate request_size=4 [12:37:44]MH_SAM_APDU [12:37:44]CAPDU: 80 13 01 00 [12:37:44]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [12:37:44]Write i2c OK [12:37:44]MH_I2C_Read... [12:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:44]Read from MH i2c: E2 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 0E 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 12 [12:37:44]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:37:44]wFMCommunicate OK [12:37:44]SAM_PROTO_GetShiftState done [12:37:44]FM_GetShiftState done [12:37:44]opened in 1722384689 [12:37:44]opened+sec_in_day 1722471089 [12:37:44]quantity*price = 10000 [12:37:44]sum+1 = 10001 [12:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 93 31.07.2024 12:37 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2640 ФПД: 271981280026276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T123744&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2640&fm=271981280026276&tin=02508201610067®Number=0000000000189667&sum=10000 0 [12:37:45]StoreToDocumentArchive [12:37:45]shift 17 fd 2640 [12:37:45]save to /storage/0017/doc_00002640 [12:37:45]save last doc name /storage/0017/doc_00002640 to /storage/kkm_last_doc_name [12:37:45]save OK [12:37:45]Clear old archive folders... [12:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=270 [12:37:45]tlvbuf is 00F09050 [12:37:45]SAM_PROTO_ClearQueue [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 09 00 00 [12:37:45]Write to MH i2c: E2 08 00 D4 01 80 09 00 00 00 00 00 00 47 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:45]Read from MH i2c: E2 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 03 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [12:37:45]RAPDU: 90 00 [12:37:45]wFMCommunicate OK [12:37:45]SAM_PROTO_ClearQueue done [12:37:45]KKMCreateOFDPacket [12:37:45]OFDProtocolAddRootSTLVToBuf [12:37:45]FM_MakeSignedData [12:37:45]FM_MakeSignedData [12:37:45]SAM_PROTO_SignData [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 0D 01 02 [12:37:45]Write to MH i2c: E2 08 00 D5 01 80 0D 01 02 00 00 00 00 4F [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=255 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 5D 00 00 00 F4 03 04 00 18 30 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [12:37:46]Write to MH i2c: E2 02 01 D6 01 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 5D 00 00 00 F4 03 04 00 18 30 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 5F [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=29 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 50 0A 00 00 35 04 06 00 F7 5D 93 94 DE A4 [12:37:46]Write to MH i2c: E2 20 00 D7 01 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 50 0A 00 00 35 04 06 00 F7 5D 93 94 DE A4 00 00 6B [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [12:37:46]RAPDU: 90 00 [12:37:46]wFMCommunicate OK [12:37:46]wFMCommunicate request_size=4 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 0D 03 02 [12:37:46]Write to MH i2c: E2 08 00 D8 01 80 0D 03 02 00 00 00 00 54 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 0B 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 0B 00 D8 01 00 C1 FF E9 2B A1 FB A6 B3 90 00 1E [12:37:46]RAPDU: C1 FF E9 2B A1 FB A6 B3 90 00 [12:37:46]wFMCommunicate OK [12:37:46]SAM_PROTO_SignData done [12:37:46]FM_MakeSignedData done [12:37:46]CreateOFDProtocolMessage [12:37:46]wFMCommunicate request_size=4 [12:37:46]MH_SAM_APDU [12:37:46]CAPDU: 80 11 00 00 [12:37:46]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 17 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [12:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:37:46]wFMCommunicate OK [12:37:46]CreateOFDProtocolMessage done [12:37:46]OFDSenderStorePacket 2640 [12:37:46]StoreOFDPacket docnum=2640 [12:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 A7 C5 1A 01 D4 AC 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 5D 00 00 00 F4 03 04 00 18 30 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 0A 00 00 35 04 06 00 F7 5D 93 94 DE A4 C1 FF E9 2B A1 FB A6 B3 [12:37:46]CheckFolder [12:37:46]dirname=/storage/ofd_packets [12:37:46]CheckFolder done [12:37:46]ProducePacketName [12:37:46]name=ofd_packets/00002640 [12:37:46]NVStorageSaveData ofd_packets/00002640 [12:37:46]File name is /storage/ofd_packets/00002640 [12:37:46]Write 320 bytes [12:37:46]NVStorageSaveData done [12:37:46]OFDSenderStorePacket done [12:37:46]KKMCreateOFDPacket done [12:37:46]NVStorageSaveData kkm_last_timestamp [12:37:46]File name is /storage/kkm_last_timestamp [12:37:46]Write 4 bytes [12:37:46]NVStorageSaveData done [12:37:46]ExternCall_PrintAddStr [12:37:46]wPrintStart [12:37:46]Write to MH i2c: 01 00 00 DA 01 DB [12:37:46]Write i2c OK [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: 01 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: 01 07 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [12:37:46]RasterBufferAndPrint [12:37:46]line Счет N : (3)126813 [12:37:46]line ИНН: 02508201610067 [12:37:46]line Контрольно-Кассовый Чек [12:37:46]line ПРОДАЖА [12:37:46]line Товар: 4700000480814 [12:37:46]line Пиво Живое 0,5 ст [12:37:46]line 1.000 * 100.00 [12:37:46]line = 100.00 [12:37:46]line НДС 12% НСП 1% [12:37:46]line > о реализуемом товаре [12:37:46]line ИТОГО: 100.00 [12:37:46]line НСП 1% : 0.88 [12:37:46]line НДС 12% : 10.62 [12:37:46]line Наличными: 100.00 [12:37:46]line Безнал.: 0.00 [12:37:46]line Место: АЗС № 127 "Партнер Нефть" [12:37:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:37:46]line СНО: Общий режим [12:37:46]line Чек 93 31.07.2024 12:37 [12:37:46]line Смена: 17 ФФД: 1.0 [12:37:46]line ЗНМ: 0300000161 [12:37:46]line РНМ: 0000000000189667 [12:37:46]line Версия ККМ: v1.0 [12:37:46]line ФМ: 0000000002094248 [12:37:46]line ФД: 2640 [12:37:46]line ФПД: 271981280026276 [12:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T123744&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2640&fm=271981280026276&tin=02508201610067®Number=0000000000189667&sum=10000 [12:37:46]line 0 [12:37:46]OFD Sender: Processing packet 2640 [packets to send 1, broken 0] [12:37:46]ProducePacketName [12:37:46]name=ofd_packets/00002640 [12:37:46]OFD Sender: To server: pG, [12:37:46]CommunicateWithHost lk.salyk.kg:30040 [12:37:46]ConnectInit lk.salyk.kg [12:37:46]written 0, free lines is 4095 [12:37:47]Write to MH i2c: 01 00 00 02 02 04 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 07 0D 1F [12:37:47]RasterBufferAndPrint [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]line [12:37:47]written 0, free lines is 3341 [12:37:47]MH_Cut [12:37:47]Write to MH i2c: D1 01 00 09 02 01 DD [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 01 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: D1 01 00 09 02 00 DC [12:37:47]Write to MH i2c: 01 00 00 0A 02 0C [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** Cut start [12:37:47]*** Partial cut [12:37:47]*** CUTSNS_PIN = 1 [12:37:47]*** CUTSNS_PIN = 0 [12:37:48]*** Brake cut motor [12:37:48]Read from MH i2c: 01 [12:37:48]MH_I2C_Read... [12:37:48]*** Stop cut motor [12:37:48]Read from MH i2c: 01 07 00 [12:37:48]MH_I2C_Read... [12:37:48]*** Cut end [12:37:48]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [12:37:48]process_action close_receipt done [12:37:48]requested_data is exist [12:37:48]produce_requested_data [12:37:48]requested_item fm.sn is exist - process it [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 11 00 00 [12:37:48]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 17 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 17 00 0B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [12:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:37:48]wFMCommunicate OK [12:37:48]requested_item fd.num is exist - process it [12:37:48]SAM_PROTO_GetFieldsCounters [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 13 00 00 [12:37:48]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 62 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 62 00 0C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 50 0A 00 00 0E 04 04 00 11 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 36 [12:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 50 0A 00 00 0E 04 04 00 11 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 [12:37:48]wFMCommunicate OK [12:37:48]SAM_PROTO_GetFieldsCounters done [12:37:48]requested_item shift.num is exist - process it [12:37:48]requested_item shift.opened is exist - process it [12:37:48]req_shift_opened [12:37:48]FM_GetShiftState [12:37:48]SAM_PROTO_GetShiftState [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 13 01 00 [12:37:48]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0E 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 59 [12:37:48]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:37:48]wFMCommunicate OK [12:37:48]SAM_PROTO_GetShiftState done [12:37:48]FM_GetShiftState done [12:37:48]req_shift_opened done [12:37:48]requested_item shift.open_date is exist - process it [12:37:48]req_shift_open_date [12:37:48]req_shift_open_date done [12:37:48]produce_requested_data done [12:37:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2640,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:37:48]process_action_free close_receipt [12:37:48]json_value_free [12:37:48]json_value_free done [12:37:48]process_json_proto returns [12:37:48]Send response to host [12:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2640,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:37:48]free response buf [12:37:48]execute_script done [12:37:48]execute_script returns [12:37:48]free content buf [12:37:48]Sock 8.Close socket [12:37:48]Sock 8.Thread stoped [12:39:59]ConnectInit Can't connect to host [12:39:59]CommunicateWithHost connect error [12:39:59]CommunicateWithHost err = -1 [12:39:59]OFD Sender: Server communicate error [12:40:04]OFD Sender: Processing packet 2640 [packets to send 1, broken 0] [12:40:04]ProducePacketName [12:40:04]name=ofd_packets/00002640 [12:40:04]OFD Sender: To server: pG, [12:40:04]CommunicateWithHost lk.salyk.kg:30040 [12:40:04]ConnectInit lk.salyk.kg [12:40:04]Connected sock=8 [12:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 A7 C5 1A 01 D4 AC 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 5D 00 00 00 F4 03 04 00 18 30 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 0A 00 00 35 04 06 00 F7 5D 93 94 DE A4 C1 FF E9 2B A1 FB A6 B3 [12:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 54 18 47 00 00 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 0A 00 00 F4 03 04 00 09 DC A9 66 B6 04 01 00 00 C3 14 84 8E 72 DF 50 0B [12:40:05]CommunicateWithHost err = 0 [12:40:05]CheckOFDResponse [12:40:05]1017 (14) - 77093643461234 [12:40:05]1041 (16) - 0000000002094248 [12:40:05]1040 (4) - 2640 [12:40:05]1012 (4) - 31.07.2024 06:39 [12:40:05]1206 (1) - 0 [12:40:05]OFD Sender: Remove packet 2640 [12:40:05]ProducePacketName [12:40:05]name=ofd_packets/00002640 [12:40:05]NVStorageDeleteData [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:46]accept exits with 9 [12:46:46]New connection [12:46:46]New thread 3066637668 created [12:46:46]Thread 3066781028 joined [12:46:46]Waiting for new connection... [12:46:46] Sock 9.Parse request [12:46:46]Sock 9.Check first char [12:46:46]Sock 9.First char is OK [12:46:46]request: POST /json_proto HTTP/1.0 [12:46:46]Method: POST [12:46:46]URL: /json_proto [12:46:46]Method is POST - this is cgi request [12:46:46]url: /json_proto [12:46:46]query_string will be loaded in cgi processing [12:46:46]execute_cgi json_proto POST (null) [12:46:46]execute_cgi path=json_proto method=POST [12:46:46]POST find Content-Length [12:46:46]Host: 172.17.45.132:8080 [12:46:46]Content-Length: 815 [12:46:46]Content-Type: application/json [12:46:46] [12:46:46]POST finish read [12:46:46]Found Content-Length = 815 [12:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126814", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:46]execute_script... [12:46:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126814", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:46]POST & json_proto [12:46:46]process_json_proto [12:46:46]json parsed OK: [12:46:46]protocol is kg_v1.0 [12:46:46]action value=close_receipt [12:46:46]process_action close_receipt [12:46:46]cmd_close_receipt [12:46:46]MH_GetDate [12:46:46]Write to MH i2c: F0 00 00 0E 02 FF [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: F0 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: F0 09 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: F0 09 00 0E 02 00 36 32 AA 66 E3 0B 90 66 64 [12:46:46]GetLastDocTimeStamp 1722429464 [12:46:46]current date 1722430006 [12:46:46]FM_GetShiftState [12:46:46]SAM_PROTO_GetShiftState [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 13 01 00 [12:46:46]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 5B [12:46:46]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_GetShiftState done [12:46:46]FM_GetShiftState done [12:46:46]opened in 1722384689 [12:46:46]opened+sec_in_day 1722471089 [12:46:46]quantity*price = 9500 [12:46:46]sum+1 = 9501 [12:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 94 31.07.2024 12:46 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2641 ФПД: 170549750131187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T124646&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2641&fm=170549750131187&tin=02508201610067®Number=0000000000189667&sum=9500 0 [12:46:47]StoreToDocumentArchive [12:46:47]shift 17 fd 2641 [12:46:47]save to /storage/0017/doc_00002641 [12:46:47]save last doc name /storage/0017/doc_00002641 to /storage/kkm_last_doc_name [12:46:47]save OK [12:46:47]Clear old archive folders... [12:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:46:47]tlvbuf is 00EFEC90 [12:46:47]SAM_PROTO_ClearQueue [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 09 00 00 [12:46:47]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [12:46:47]RAPDU: 90 00 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_ClearQueue done [12:46:47]KKMCreateOFDPacket [12:46:47]OFDProtocolAddRootSTLVToBuf [12:46:47]FM_MakeSignedData [12:46:47]FM_MakeSignedData [12:46:47]SAM_PROTO_SignData [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 0D 01 02 [12:46:47]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [12:46:47]RAPDU: 90 00 [12:46:47]wFMCommunicate OK [12:46:47]wFMCommunicate request_size=255 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 36 32 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:46:48]Write to MH i2c: E2 02 01 1E 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 36 32 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 1F [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 03 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [12:46:48]RAPDU: 90 00 [12:46:48]wFMCommunicate OK [12:46:48]wFMCommunicate request_size=52 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 0A 00 00 35 04 06 00 9B 1D 35 45 E9 F3 [12:46:48]Write to MH i2c: E2 37 00 1F 02 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 0A 00 00 35 04 06 00 9B 1D 35 45 E9 F3 00 00 D0 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 03 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [12:46:48]RAPDU: 90 00 [12:46:48]wFMCommunicate OK [12:46:48]wFMCommunicate request_size=4 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 0D 03 02 [12:46:48]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 0B 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 0B 00 20 02 00 4B 7E BA 26 BA 8D 8B 18 90 00 31 [12:46:48]RAPDU: 4B 7E BA 26 BA 8D 8B 18 90 00 [12:46:48]wFMCommunicate OK [12:46:48]SAM_PROTO_SignData done [12:46:48]FM_MakeSignedData done [12:46:48]CreateOFDProtocolMessage [12:46:48]wFMCommunicate request_size=4 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 11 00 00 [12:46:48]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 17 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 ED [12:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:46:48]wFMCommunicate OK [12:46:48]CreateOFDProtocolMessage done [12:46:48]OFDSenderStorePacket 2641 [12:46:48]StoreOFDPacket docnum=2641 [12:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 39 DA 31 01 70 E3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 36 32 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 0A 00 00 35 04 06 00 9B 1D 35 45 E9 F3 4B 7E BA 26 BA 8D 8B 18 [12:46:48]CheckFolder [12:46:48]dirname=/storage/ofd_packets [12:46:48]CheckFolder done [12:46:48]ProducePacketName [12:46:48]name=ofd_packets/00002641 [12:46:48]NVStorageSaveData ofd_packets/00002641 [12:46:48]File name is /storage/ofd_packets/00002641 [12:46:48]Write 343 bytes [12:46:48]NVStorageSaveData done [12:46:48]OFDSenderStorePacket done [12:46:48]KKMCreateOFDPacket done [12:46:48]NVStorageSaveData kkm_last_timestamp [12:46:48]File name is /storage/kkm_last_timestamp [12:46:48]Write 4 bytes [12:46:48]NVStorageSaveData done [12:46:48]ExternCall_PrintAddStr [12:46:48]wPrintStart [12:46:48]Write to MH i2c: 01 00 00 22 02 24 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 07 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [12:46:48]RasterBufferAndPrint [12:46:48]line Счет N : (3)126814 [12:46:48]line ИНН: 02508201610067 [12:46:48]line Контрольно-Кассовый Чек [12:46:48]line ПРОДАЖА [12:46:48]line Товар: 4700000480050 [12:46:48]line Напиток Nitro Energy эн green ж/б 0,45л [12:46:48]line 1.000 * 95.00 [12:46:48]line = 95.00 [12:46:48]line НДС 12% НСП 1% [12:46:48]line > о реализуемом товаре [12:46:48]line ИТОГО: 95.00 [12:46:48]line НСП 1% : 0.84 [12:46:48]line НДС 12% : 10.09 [12:46:48]line Наличными: 0.00 [12:46:48]line Безнал.: 95.00 [12:46:48]line Место: АЗС № 127 "Партнер Нефть" [12:46:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:46:48]line СНО: Общий режим [12:46:48]line Чек 94 31.07.2024 12:46 [12:46:48]line Смена: 17 ФФД: 1.0 [12:46:48]line ЗНМ: 0300000161 [12:46:48]line РНМ: 0000000000189667 [12:46:48]line Версия ККМ: v1.0 [12:46:48]line Платежная система: O! деньги [12:46:48]line ФМ: 0000000002094248 [12:46:48]line ФД: 2641 [12:46:48]line ФПД: 170549750131187 [12:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T124646&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2641&fm=170549750131187&tin=02508201610067®Number=0000000000189667&sum=9500 [12:46:48]line 0 [12:46:48]OFD Sender: Processing packet 2641 [packets to send 1, broken 0] [12:46:48]ProducePacketName [12:46:48]name=ofd_packets/00002641 [12:46:48]OFD Sender: To server: pG, [12:46:48]CommunicateWithHost lk.salyk.kg:30040 [12:46:48]ConnectInit lk.salyk.kg [12:46:48]written 0, free lines is 4095 [12:46:49]Connected sock=10 [12:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 39 DA 31 01 70 E3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 36 32 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 0A 00 00 35 04 06 00 9B 1D 35 45 E9 F3 4B 7E BA 26 BA 8D 8B 18 [12:46:49]Write to MH i2c: 01 00 00 4D 02 4F [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 07 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 EC 0C 4E [12:46:49]RasterBufferAndPrint [12:46:49]line [12:46:49]line [12:46:49]line [12:46:49]line [12:46:49]line [12:46:49]written 0, free lines is 3314 [12:46:49]MH_Cut [12:46:49]Write to MH i2c: D1 01 00 54 02 01 28 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: D1 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: D1 01 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: D1 01 00 54 02 00 27 [12:46:49]Write to MH i2c: 01 00 00 55 02 57 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE 06 47 00 47 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 0A 00 00 F4 03 04 00 9D DD A9 66 B6 04 01 00 00 30 72 A9 33 67 06 3F CA [12:46:49]CommunicateWithHost err = 0 [12:46:49]CheckOFDResponse [12:46:49]1017 (14) - 77093643461234 [12:46:49]1041 (16) - 0000000002094248 [12:46:49]1040 (4) - 2641 [12:46:49]1012 (4) - 31.07.2024 06:45 [12:46:49]1206 (1) - 0 [12:46:49]OFD Sender: Remove packet 2641 [12:46:49]ProducePacketName [12:46:49]name=ofd_packets/00002641 [12:46:49]NVStorageDeleteData [12:46:49]OFD Sender: No OFD packet to send [12:46:49]*** Cut start [12:46:49]*** Partial cut [12:46:49]*** CUTSNS_PIN = 1 [12:46:49]*** CUTSNS_PIN = 0 [12:46:50]*** Brake cut motor [12:46:50]Read from MH i2c: 01 [12:46:50]MH_I2C_Read... [12:46:50]*** Stop cut motor [12:46:50]*** Cut end [12:46:50]Read from MH i2c: 01 07 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [12:46:50]process_action close_receipt done [12:46:50]requested_data is exist [12:46:50]produce_requested_data [12:46:50]requested_item fm.sn is exist - process it [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 11 00 00 [12:46:50]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 17 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 22 [12:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:46:50]wFMCommunicate OK [12:46:50]requested_item fd.num is exist - process it [12:46:50]SAM_PROTO_GetFieldsCounters [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 00 00 [12:46:50]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 62 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 0A 00 00 0E 04 04 00 11 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 85 [12:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 0A 00 00 0E 04 04 00 11 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 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetFieldsCounters done [12:46:50]requested_item shift.num is exist - process it [12:46:50]requested_item shift.opened is exist - process it [12:46:50]req_shift_opened [12:46:50]FM_GetShiftState [12:46:50]SAM_PROTO_GetShiftState [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 01 00 [12:46:50]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A4 [12:46:50]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetShiftState done [12:46:50]FM_GetShiftState done [12:46:50]req_shift_opened done [12:46:50]requested_item shift.open_date is exist - process it [12:46:50]req_shift_open_date [12:46:50]req_shift_open_date done [12:46:50]produce_requested_data done [12:46:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2641,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [12:46:50]process_action_free close_receipt [12:46:50]json_value_free [12:46:50]json_value_free done [12:46:50]process_json_proto returns [12:46:50]Send response to host [12:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2641,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [12:46:50]free response buf [12:46:50]execute_script done [12:46:50]execute_script returns [12:46:50]free content buf [12:46:50]Sock 9.Close socket [12:46:50]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:27]ConnectInit Can't connect to host [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56: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:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:55]accept exits with 8 [13:15:55]New connection [13:15:55]New thread 3066781028 created [13:15:55]Thread 3066637668 joined [13:15:55]Waiting for new connection... [13:15:55] Sock 8.Parse request [13:15:55]Sock 8.Check first char [13:15:55]Sock 8.First char is OK [13:15:55]request: POST /json_proto HTTP/1.0 [13:15:55]Method: POST [13:15:55]URL: /json_proto [13:15:55]Method is POST - this is cgi request [13:15:55]url: /json_proto [13:15:55]query_string will be loaded in cgi processing [13:15:55]execute_cgi json_proto POST (null) [13:15:55]execute_cgi path=json_proto method=POST [13:15:55]POST find Content-Length [13:15:55]Host: 172.17.45.132:8080 [13:15:55]Content-Length: 676 [13:15:55]Content-Type: application/json [13:15:55] [13:15:55]POST finish read [13:15:55]Found Content-Length = 676 [13:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126815", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:55]execute_script... [13:15: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 : (3)126815", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:55]POST & json_proto [13:15:55]process_json_proto [13:15:55]json parsed OK: [13:15:55]protocol is kg_v1.0 [13:15:55]action value=close_receipt [13:15:55]process_action close_receipt [13:15:55]cmd_close_receipt [13:15:55]MH_GetDate [13:15:55]Write to MH i2c: F0 00 00 59 02 4A [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: F0 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: F0 09 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: F0 09 00 59 02 00 0B 39 AA 66 E3 0B 90 66 8B [13:15:55]GetLastDocTimeStamp 1722430006 [13:15:55]current date 1722431755 [13:15:55]FM_GetShiftState [13:15:55]SAM_PROTO_GetShiftState [13:15:55]wFMCommunicate request_size=4 [13:15:55]MH_SAM_APDU [13:15:55]CAPDU: 80 13 01 00 [13:15:55]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0E 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A6 [13:15:55]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:15:55]wFMCommunicate OK [13:15:55]SAM_PROTO_GetShiftState done [13:15:55]FM_GetShiftState done [13:15:55]opened in 1722384689 [13:15:55]opened+sec_in_day 1722471089 [13:15:55]quantity*price = 20500 [13:15:55]sum+1 = 20501 [13:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 95 31.07.2024 13:15 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2642 ФПД: 106327182718187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2642&fm=106327182718187&tin=02508201610067®Number=0000000000189667&sum=20500 0 [13:15:56]StoreToDocumentArchive [13:15:56]shift 17 fd 2642 [13:15:56]save to /storage/0017/doc_00002642 [13:15:56]save last doc name /storage/0017/doc_00002642 to /storage/kkm_last_doc_name [13:15:56]save OK [13:15:56]Clear old archive folders... [13:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=284 [13:15:56]tlvbuf is 00F147E0 [13:15:56]SAM_PROTO_ClearQueue [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 09 00 00 [13:15:56]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:56]Read from MH i2c: E2 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 03 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [13:15:56]RAPDU: 90 00 [13:15:56]wFMCommunicate OK [13:15:56]SAM_PROTO_ClearQueue done [13:15:56]KKMCreateOFDPacket [13:15:56]OFDProtocolAddRootSTLVToBuf [13:15:56]FM_MakeSignedData [13:15:56]FM_MakeSignedData [13:15:56]SAM_PROTO_SignData [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 0D 01 02 [13:15:56]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:56]Read from MH i2c: E2 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 03 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [13:15:56]RAPDU: 90 00 [13:15:56]wFMCommunicate OK [13:15:56]wFMCommunicate request_size=255 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 0C 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [13:15:56]Write to MH i2c: E2 02 01 69 02 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 0C 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 A3 [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 03 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [13:15:57]RAPDU: 90 00 [13:15:57]wFMCommunicate OK [13:15:57]wFMCommunicate request_size=43 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 0A 00 00 35 04 06 00 60 B4 39 F4 B4 EB [13:15:57]Write to MH i2c: E2 2E 00 6A 02 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 0A 00 00 35 04 06 00 60 B4 39 F4 B4 EB 00 00 07 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 03 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [13:15:57]RAPDU: 90 00 [13:15:57]wFMCommunicate OK [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 0D 03 02 [13:15:57]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0B 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0B 00 6B 02 00 F7 6A 93 FE 3A 1B 4C EC 90 00 68 [13:15:57]RAPDU: F7 6A 93 FE 3A 1B 4C EC 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_SignData done [13:15:57]FM_MakeSignedData done [13:15:57]CreateOFDProtocolMessage [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 11 00 00 [13:15:57]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [13:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:15:57]wFMCommunicate OK [13:15:57]CreateOFDProtocolMessage done [13:15:57]OFDSenderStorePacket 2642 [13:15:57]StoreOFDPacket docnum=2642 [13:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 8D EA 28 01 D9 84 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 0C 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 0A 00 00 35 04 06 00 60 B4 39 F4 B4 EB F7 6A 93 FE 3A 1B 4C EC [13:15:57]CheckFolder [13:15:57]dirname=/storage/ofd_packets [13:15:57]CheckFolder done [13:15:57]ProducePacketName [13:15:57]name=ofd_packets/00002642 [13:15:57]NVStorageSaveData ofd_packets/00002642 [13:15:57]File name is /storage/ofd_packets/00002642 [13:15:57]Write 334 bytes [13:15:57]NVStorageSaveData done [13:15:57]OFDSenderStorePacket done [13:15:57]KKMCreateOFDPacket done [13:15:57]NVStorageSaveData kkm_last_timestamp [13:15:57]File name is /storage/kkm_last_timestamp [13:15:57]Write 4 bytes [13:15:57]NVStorageSaveData done [13:15:57]ExternCall_PrintAddStr [13:15:57]wPrintStart [13:15:57]Write to MH i2c: 01 00 00 6D 02 6F [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: 01 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: 01 07 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [13:15:57]RasterBufferAndPrint [13:15:57]line Счет N : (3)126815 [13:15:57]line ИНН: 02508201610067 [13:15:57]line Контрольно-Кассовый Чек [13:15:57]line ПРОДАЖА [13:15:57]line Товар: 4602441000081 [13:15:57]line Напитк Тархун 1л стекло [13:15:57]line 1.000 * 205.00 [13:15:57]line = 205.00 [13:15:57]line НДС 12% НСП 1% [13:15:57]line > о реализуемом товаре [13:15:57]line ИТОГО: 205.00 [13:15:57]line НСП 1% : 1.81 [13:15:57]line НДС 12% : 21.77 [13:15:57]line Наличными: 205.00 [13:15:57]line Безнал.: 0.00 [13:15:57]line Место: АЗС № 127 "Партнер Нефть" [13:15:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:15:57]line СНО: Общий режим [13:15:57]line Чек 95 31.07.2024 13:15 [13:15:57]line Смена: 17 ФФД: 1.0 [13:15:57]line ЗНМ: 0300000161 [13:15:57]line РНМ: 0000000000189667 [13:15:57]line Версия ККМ: v1.0 [13:15:57]line ФМ: 0000000002094248 [13:15:57]line ФД: 2642 [13:15:57]line ФПД: 106327182718187 [13:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2642&fm=106327182718187&tin=02508201610067®Number=0000000000189667&sum=20500 [13:15:57]line 0 [13:15:57]OFD Sender: Processing packet 2642 [packets to send 1, broken 0] [13:15:57]ProducePacketName [13:15:57]name=ofd_packets/00002642 [13:15:57]OFD Sender: To server: pG, [13:15:57]CommunicateWithHost lk.salyk.kg:30040 [13:15:57]ConnectInit lk.salyk.kg [13:15:57]written 0, free lines is 4095 [13:15:58]Write to MH i2c: 01 00 00 95 02 97 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 07 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 11 0D BC [13:15:58]RasterBufferAndPrint [13:15:58]line [13:15:58]line [13:15:58]line [13:15:58]line [13:15:58]line [13:15:58]written 0, free lines is 3351 [13:15:58]MH_Cut [13:15:58]Write to MH i2c: D1 01 00 9C 02 01 70 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: D1 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: D1 01 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: D1 01 00 9C 02 00 6F [13:15:58]Write to MH i2c: 01 00 00 9D 02 9F [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** Cut start [13:15:58]*** Partial cut [13:15:58]*** CUTSNS_PIN = 1 [13:15:58]*** CUTSNS_PIN = 0 [13:15:58]Connected sock=11 [13:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 8D EA 28 01 D9 84 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 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 0C 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 0A 00 00 35 04 06 00 60 B4 39 F4 B4 EB F7 6A 93 FE 3A 1B 4C EC [13:15:59]*** Brake cut motor [13:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7D 04 47 00 C8 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 32 30 39 34 32 34 38 10 04 04 00 52 0A 00 00 F4 03 04 00 73 E4 A9 66 B6 04 01 00 00 00 80 49 68 49 93 F4 B2 [13:15:59]CommunicateWithHost err = 0 [13:15:59]CheckOFDResponse [13:15:59]1017 (14) - 77093643461234 [13:15:59]1041 (16) - 0000000002094248 [13:15:59]1040 (4) - 2642 [13:15:59]1012 (4) - 31.07.2024 07:14 [13:15:59]1206 (1) - 0 [13:15:59]OFD Sender: Remove packet 2642 [13:15:59]ProducePacketName [13:15:59]name=ofd_packets/00002642 [13:15:59]NVStorageDeleteData [13:15:59]Read from MH i2c: 01 [13:15:59]MH_I2C_Read... [13:15:59]*** Stop cut motor [13:15:59]*** Cut end [13:15:59]Read from MH i2c: 01 07 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 FF 0F B4 [13:15:59]process_action close_receipt done [13:15:59]requested_data is exist [13:15:59]produce_requested_data [13:15:59]requested_item fm.sn is exist - process it [13:15:59]wFMCommunicate request_size=4 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 11 00 00 [13:15:59]Write to MH i2c: E2 08 00 9E 02 80 11 00 00 00 00 00 00 1A [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 17 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 17 00 9E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6A [13:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:15:59]wFMCommunicate OK [13:15:59]requested_item fd.num is exist - process it [13:15:59]SAM_PROTO_GetFieldsCounters [13:15:59]wFMCommunicate request_size=4 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 13 00 00 [13:15:59]Write to MH i2c: E2 08 00 9F 02 80 13 00 00 00 00 00 00 1D [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 62 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 62 00 9F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 0A 00 00 0E 04 04 00 11 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 D1 [13:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 0A 00 00 0E 04 04 00 11 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 [13:15:59]wFMCommunicate OK [13:15:59]SAM_PROTO_GetFieldsCounters done [13:15:59]requested_item shift.num is exist - process it [13:15:59]requested_item shift.opened is exist - process it [13:15:59]req_shift_opened [13:15:59]FM_GetShiftState [13:15:59]SAM_PROTO_GetShiftState [13:15:59]wFMCommunicate request_size=4 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 13 01 00 [13:15:59]Write to MH i2c: E2 08 00 A0 02 80 13 01 00 00 00 00 00 1F [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 0E 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 0E 00 A0 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 EC [13:15:59]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:15:59]wFMCommunicate OK [13:15:59]SAM_PROTO_GetShiftState done [13:15:59]FM_GetShiftState done [13:15:59]req_shift_opened done [13:15:59]requested_item shift.open_date is exist - process it [13:15:59]req_shift_open_date [13:15:59]req_shift_open_date done [13:15:59]produce_requested_data done [13:15:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2642,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [13:15:59]process_action_free close_receipt [13:15:59]json_value_free [13:15:59]json_value_free done [13:15:59]process_json_proto returns [13:15:59]Send response to host [13:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2642,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [13:15:59]free response buf [13:15:59]execute_script done [13:15:59]execute_script returns [13:15:59]free content buf [13:15:59]Sock 8.Close socket [13:15:59]Sock 8.Thread stoped [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:15]accept exits with 9 [13:16:15]New connection [13:16:15]New thread 3066637668 created [13:16:15]Thread 3066781028 joined [13:16:15]Waiting for new connection... [13:16:15] Sock 9.Parse request [13:16:15]Sock 9.Check first char [13:16:15]Sock 9.First char is OK [13:16:15]request: POST /json_proto HTTP/1.0 [13:16:15]Method: POST [13:16:15]URL: /json_proto [13:16:15]Method is POST - this is cgi request [13:16:15]url: /json_proto [13:16:15]query_string will be loaded in cgi processing [13:16:15]execute_cgi json_proto POST (null) [13:16:15]execute_cgi path=json_proto method=POST [13:16:15]POST find Content-Length [13:16:15]Host: 172.17.45.132:8080 [13:16:15]Content-Length: 620 [13:16:15]Content-Type: application/json [13:16:15] [13:16:15]POST finish read [13:16:15]Found Content-Length = 620 [13:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126816", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:15]execute_script... [13:16:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126816", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:15]POST & json_proto [13:16:15]process_json_proto [13:16:15]json parsed OK: [13:16:15]protocol is kg_v1.0 [13:16:15]action value=close_receipt [13:16:15]process_action close_receipt [13:16:15]cmd_close_receipt [13:16:15]MH_GetDate [13:16:15]Write to MH i2c: F0 00 00 A1 02 92 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: F0 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: F0 09 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: F0 09 00 A1 02 00 20 39 AA 66 E3 0B 90 66 E8 [13:16:15]GetLastDocTimeStamp 1722431756 [13:16:15]current date 1722431776 [13:16:15]FM_GetShiftState [13:16:15]SAM_PROTO_GetShiftState [13:16:15]wFMCommunicate request_size=4 [13:16:15]MH_SAM_APDU [13:16:15]CAPDU: 80 13 01 00 [13:16:15]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:15]Read from MH i2c: E2 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 0E 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 EE [13:16:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:16:15]wFMCommunicate OK [13:16:15]SAM_PROTO_GetShiftState done [13:16:15]FM_GetShiftState done [13:16:15]opened in 1722384689 [13:16:15]opened+sec_in_day 1722471089 [13:16:15]quantity*price = 13500 [13:16:15]sum+1 = 13501 [13:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 96 31.07.2024 13:16 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2643 ФПД: 54296140440226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2643&fm=54296140440226&tin=02508201610067®Number=0000000000189667&sum=13500 0 [13:16:16]StoreToDocumentArchive [13:16:16]shift 17 fd 2643 [13:16:16]save to /storage/0017/doc_00002643 [13:16:16]save last doc name /storage/0017/doc_00002643 to /storage/kkm_last_doc_name [13:16:16]save OK [13:16:16]Clear old archive folders... [13:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:16:16]tlvbuf is 00F14790 [13:16:16]SAM_PROTO_ClearQueue [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 09 00 00 [13:16:16]Write to MH i2c: E2 08 00 AF 02 80 09 00 00 00 00 00 00 23 [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [13:16:17]RAPDU: 90 00 [13:16:17]wFMCommunicate OK [13:16:17]SAM_PROTO_ClearQueue done [13:16:17]KKMCreateOFDPacket [13:16:17]OFDProtocolAddRootSTLVToBuf [13:16:17]FM_MakeSignedData [13:16:17]FM_MakeSignedData [13:16:17]SAM_PROTO_SignData [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 0D 01 02 [13:16:17]Write to MH i2c: E2 08 00 B0 02 80 0D 01 02 00 00 00 00 2B [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [13:16:17]RAPDU: 90 00 [13:16:17]wFMCommunicate OK [13:16:17]wFMCommunicate request_size=255 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 20 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [13:16:17]Write to MH i2c: E2 02 01 B1 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 20 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 CC [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [13:16:17]RAPDU: 90 00 [13:16:17]wFMCommunicate OK [13:16:17]wFMCommunicate request_size=31 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 53 0A 00 00 35 04 06 00 31 61 CE 29 E2 A2 [13:16:17]Write to MH i2c: E2 22 00 B2 02 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 53 0A 00 00 35 04 06 00 31 61 CE 29 E2 A2 00 00 C0 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [13:16:17]RAPDU: 90 00 [13:16:17]wFMCommunicate OK [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 0D 03 02 [13:16:17]Write to MH i2c: E2 08 00 B3 02 80 0D 03 02 00 00 00 00 30 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 0B 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 0B 00 B3 02 00 56 FC E4 A6 2B 3C 1B CE 90 00 5D [13:16:17]RAPDU: 56 FC E4 A6 2B 3C 1B CE 90 00 [13:16:17]wFMCommunicate OK [13:16:17]SAM_PROTO_SignData done [13:16:17]FM_MakeSignedData done [13:16:17]CreateOFDProtocolMessage [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 11 00 00 [13:16:17]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 17 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [13:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:16:17]wFMCommunicate OK [13:16:17]CreateOFDProtocolMessage done [13:16:17]OFDSenderStorePacket 2643 [13:16:17]StoreOFDPacket docnum=2643 [13:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 5A BC 1C 01 5D ED 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 20 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 0A 00 00 35 04 06 00 31 61 CE 29 E2 A2 56 FC E4 A6 2B 3C 1B CE [13:16:17]CheckFolder [13:16:17]dirname=/storage/ofd_packets [13:16:17]CheckFolder done [13:16:17]ProducePacketName [13:16:17]name=ofd_packets/00002643 [13:16:17]NVStorageSaveData ofd_packets/00002643 [13:16:17]File name is /storage/ofd_packets/00002643 [13:16:17]Write 322 bytes [13:16:17]NVStorageSaveData done [13:16:17]OFDSenderStorePacket done [13:16:17]KKMCreateOFDPacket done [13:16:17]NVStorageSaveData kkm_last_timestamp [13:16:17]File name is /storage/kkm_last_timestamp [13:16:17]Write 4 bytes [13:16:17]NVStorageSaveData done [13:16:17]ExternCall_PrintAddStr [13:16:17]wPrintStart [13:16:17]Write to MH i2c: 01 00 00 B5 02 B7 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [13:16:17]RasterBufferAndPrint [13:16:17]line Счет N : (3)126816 [13:16:17]line ИНН: 02508201610067 [13:16:17]line Контрольно-Кассовый Чек [13:16:17]line ПРОДАЖА [13:16:17]line Товар: 48745000 [13:16:17]line Сигареты Winston Purple Mix [13:16:17]line 1.000 * 135.00 [13:16:17]line = 135.00 [13:16:17]line НДС 12% НСП 1% [13:16:17]line > о реализуемом товаре [13:16:17]line ИТОГО: 135.00 [13:16:17]line НСП 1% : 1.19 [13:16:17]line НДС 12% : 14.34 [13:16:17]line Наличными: 135.00 [13:16:17]line Безнал.: 0.00 [13:16:17]line Место: АЗС № 127 "Партнер Нефть" [13:16:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:16:17]line СНО: Общий режим [13:16:17]line Чек 96 31.07.2024 13:16 [13:16:17]line Смена: 17 ФФД: 1.0 [13:16:17]line ЗНМ: 0300000161 [13:16:17]line РНМ: 0000000000189667 [13:16:17]line Версия ККМ: v1.0 [13:16:17]line ФМ: 0000000002094248 [13:16:17]line ФД: 2643 [13:16:17]line ФПД: 54296140440226 [13:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2643&fm=54296140440226&tin=02508201610067®Number=0000000000189667&sum=13500 [13:16:17]line 0 [13:16:17]OFD Sender: Processing packet 2643 [packets to send 1, broken 0] [13:16:17]ProducePacketName [13:16:17]name=ofd_packets/00002643 [13:16:17]OFD Sender: To server: pG, [13:16:17]CommunicateWithHost lk.salyk.kg:30040 [13:16:17]ConnectInit lk.salyk.kg [13:16:17]written 0, free lines is 4095 [13:16:18]Connected sock=10 [13:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 5A BC 1C 01 5D ED 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 20 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 0A 00 00 35 04 06 00 31 61 CE 29 E2 A2 56 FC E4 A6 2B 3C 1B CE [13:16:18]Write to MH i2c: 01 00 00 DD 02 DF [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: 01 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: 01 07 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 14 0D 07 [13:16:18]RasterBufferAndPrint [13:16:18]line [13:16:18]line [13:16:18]line [13:16:18]line [13:16:18]line [13:16:18]written 0, free lines is 3354 [13:16:18]MH_Cut [13:16:18]Write to MH i2c: D1 01 00 E4 02 01 B8 [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: D1 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: D1 01 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: D1 01 00 E4 02 00 B7 [13:16:18]Write to MH i2c: 01 00 00 E5 02 E7 [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** Cut start [13:16:18]*** Partial cut [13:16:18]*** CUTSNS_PIN = 1 [13:16:18]*** CUTSNS_PIN = 0 [13:16:19]*** Brake cut motor [13:16:19]Read from MH i2c: 01 [13:16:19]MH_I2C_Read... [13:16:19]*** Stop cut motor [13:16:19]*** Cut end [13:16:19]Read from MH i2c: 01 07 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [13:16:19]process_action close_receipt done [13:16:19]requested_data is exist [13:16:19]produce_requested_data [13:16:19]requested_item fm.sn is exist - process it [13:16:19]wFMCommunicate request_size=4 [13:16:19]MH_SAM_APDU [13:16:19]CAPDU: 80 11 00 00 [13:16:19]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:19]Read from MH i2c: E2 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 17 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [13:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:16:19]wFMCommunicate OK [13:16:19]requested_item fd.num is exist - process it [13:16:19]SAM_PROTO_GetFieldsCounters [13:16:19]wFMCommunicate request_size=4 [13:16:19]MH_SAM_APDU [13:16:19]CAPDU: 80 13 00 00 [13:16:19]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:19]Read from MH i2c: E2 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 62 00 [13:16:19]MH_I2C_Read... [13:16:19]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 0A 00 00 0E 04 04 00 11 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 1D [13:16:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 0A 00 00 0E 04 04 00 11 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 [13:16:19]wFMCommunicate OK [13:16:19]SAM_PROTO_GetFieldsCounters done [13:16:19]requested_item shift.num is exist - process it [13:16:19]requested_item shift.opened is exist - process it [13:16:19]req_shift_opened [13:16:19]FM_GetShiftState [13:16:19]SAM_PROTO_GetShiftState [13:16:19]wFMCommunicate request_size=4 [13:16:19]MH_SAM_APDU [13:16:19]CAPDU: 80 13 01 00 [13:16:19]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:19]Read from MH i2c: E2 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 34 [13:16:19]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:16:19]wFMCommunicate OK [13:16:19]SAM_PROTO_GetShiftState done [13:16:19]FM_GetShiftState done [13:16:19]req_shift_opened done [13:16:19]requested_item shift.open_date is exist - process it [13:16:19]req_shift_open_date [13:16:19]req_shift_open_date done [13:16:19]produce_requested_data done [13:16:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2643,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [13:16:19]process_action_free close_receipt [13:16:19]json_value_free [13:16:19]json_value_free done [13:16:19]process_json_proto returns [13:16:19]Send response to host [13:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2643,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [13:16:19]free response buf [13:16:19]execute_script done [13:16:19]execute_script returns [13:16:19]free content buf [13:16:19]Sock 9.Close socket [13:16:19]Sock 9.Thread stoped [13:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CC 8C 47 00 EE CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 0A 00 00 F4 03 04 00 86 E4 A9 66 B6 04 01 00 00 C2 BC 0F 82 9B B9 95 38 [13:16:20]CommunicateWithHost err = 0 [13:16:20]CheckOFDResponse [13:16:20]1017 (14) - 77093643461234 [13:16:20]1041 (16) - 0000000002094248 [13:16:20]1040 (4) - 2643 [13:16:20]1012 (4) - 31.07.2024 07:15 [13:16:20]1206 (1) - 0 [13:16:20]OFD Sender: Remove packet 2643 [13:16:20]ProducePacketName [13:16:20]name=ofd_packets/00002643 [13:16:20]NVStorageDeleteData [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]recv_with_timeout no data received [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:02]accept exits with 8 [13:17:02]New connection [13:17:02]New thread 3066781028 created [13:17:02]Thread 3066637668 joined [13:17:02]Waiting for new connection... [13:17:02] Sock 8.Parse request [13:17:02]Sock 8.Check first char [13:17:02]Sock 8.First char is OK [13:17:02]request: POST /json_proto HTTP/1.0 [13:17:02]Method: POST [13:17:02]URL: /json_proto [13:17:02]Method is POST - this is cgi request [13:17:02]url: /json_proto [13:17:02]query_string will be loaded in cgi processing [13:17:02]execute_cgi json_proto POST (null) [13:17:02]execute_cgi path=json_proto method=POST [13:17:02]POST find Content-Length [13:17:02]Host: 172.17.45.132:8080 [13:17:02]Content-Length: 654 [13:17:02]Content-Type: application/json [13:17:02] [13:17:02]POST finish read [13:17:02]Found Content-Length = 654 [13:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126817", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:02]execute_script... [13:17:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126817", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:02]POST & json_proto [13:17:02]process_json_proto [13:17:02]json parsed OK: [13:17:02]protocol is kg_v1.0 [13:17:02]action value=close_receipt [13:17:02]process_action close_receipt [13:17:02]cmd_close_receipt [13:17:02]MH_GetDate [13:17:02]Write to MH i2c: F0 00 00 E9 02 DA [13:17:02]Write i2c OK [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 09 00 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 09 00 E9 02 00 4F 39 AA 66 E3 0B 90 66 5F [13:17:02]GetLastDocTimeStamp 1722431776 [13:17:02]current date 1722431823 [13:17:02]FM_GetShiftState [13:17:02]SAM_PROTO_GetShiftState [13:17:02]wFMCommunicate request_size=4 [13:17:02]MH_SAM_APDU [13:17:02]CAPDU: 80 13 01 00 [13:17:02]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [13:17:02]Write i2c OK [13:17:02]MH_I2C_Read... [13:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:02]Read from MH i2c: E2 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: E2 0E 00 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 36 [13:17:02]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:17:02]wFMCommunicate OK [13:17:02]SAM_PROTO_GetShiftState done [13:17:02]FM_GetShiftState done [13:17:02]opened in 1722384689 [13:17:02]opened+sec_in_day 1722471089 [13:17:02]quantity*price = 9500 [13:17:02]sum+1 = 9501 [13:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 97 31.07.2024 13:17 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2644 ФПД: 172718464255493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131703&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2644&fm=172718464255493&tin=02508201610067®Number=0000000000189667&sum=9500 0 [13:17:03]StoreToDocumentArchive [13:17:03]shift 17 fd 2644 [13:17:03]save to /storage/0017/doc_00002644 [13:17:03]save last doc name /storage/0017/doc_00002644 to /storage/kkm_last_doc_name [13:17:03]save OK [13:17:03]Clear old archive folders... [13:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:17:03]tlvbuf is 00F07B30 [13:17:03]SAM_PROTO_ClearQueue [13:17:03]wFMCommunicate request_size=4 [13:17:03]MH_SAM_APDU [13:17:03]CAPDU: 80 09 00 00 [13:17:03]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [13:17:04]RAPDU: 90 00 [13:17:04]wFMCommunicate OK [13:17:04]SAM_PROTO_ClearQueue done [13:17:04]KKMCreateOFDPacket [13:17:04]OFDProtocolAddRootSTLVToBuf [13:17:04]FM_MakeSignedData [13:17:04]FM_MakeSignedData [13:17:04]SAM_PROTO_SignData [13:17:04]wFMCommunicate request_size=4 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 0D 01 02 [13:17:04]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [13:17:04]RAPDU: 90 00 [13:17:04]wFMCommunicate OK [13:17:04]wFMCommunicate request_size=255 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4F 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:17:04]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4F 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 1D [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [13:17:04]RAPDU: 90 00 [13:17:04]wFMCommunicate OK [13:17:04]wFMCommunicate request_size=52 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 0A 00 00 35 04 06 00 9D 16 26 B5 46 05 [13:17:04]Write to MH i2c: E2 37 00 FA 02 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 0A 00 00 35 04 06 00 9D 16 26 B5 46 05 00 00 79 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [13:17:04]RAPDU: 90 00 [13:17:04]wFMCommunicate OK [13:17:04]wFMCommunicate request_size=4 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 0D 03 02 [13:17:04]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 0B 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 0B 00 FB 02 00 99 2F 44 D3 DB D1 6B 7D 90 00 EC [13:17:04]RAPDU: 99 2F 44 D3 DB D1 6B 7D 90 00 [13:17:04]wFMCommunicate OK [13:17:04]SAM_PROTO_SignData done [13:17:04]FM_MakeSignedData done [13:17:04]CreateOFDProtocolMessage [13:17:04]wFMCommunicate request_size=4 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 11 00 00 [13:17:04]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 17 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C8 [13:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:17:04]wFMCommunicate OK [13:17:04]CreateOFDProtocolMessage done [13:17:04]OFDSenderStorePacket 2644 [13:17:04]StoreOFDPacket docnum=2644 [13:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 68 71 31 01 96 21 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4F 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 0A 00 00 35 04 06 00 9D 16 26 B5 46 05 99 2F 44 D3 DB D1 6B 7D [13:17:04]CheckFolder [13:17:04]dirname=/storage/ofd_packets [13:17:04]CheckFolder done [13:17:04]ProducePacketName [13:17:04]name=ofd_packets/00002644 [13:17:04]NVStorageSaveData ofd_packets/00002644 [13:17:04]File name is /storage/ofd_packets/00002644 [13:17:04]Write 343 bytes [13:17:04]NVStorageSaveData done [13:17:04]OFDSenderStorePacket done [13:17:04]KKMCreateOFDPacket done [13:17:04]NVStorageSaveData kkm_last_timestamp [13:17:04]File name is /storage/kkm_last_timestamp [13:17:04]Write 4 bytes [13:17:04]NVStorageSaveData done [13:17:04]ExternCall_PrintAddStr [13:17:04]wPrintStart [13:17:04]Write to MH i2c: 01 00 00 FD 02 FF [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [13:17:04]RasterBufferAndPrint [13:17:04]line Счет N : (3)126817 [13:17:04]line ИНН: 02508201610067 [13:17:04]line Контрольно-Кассовый Чек [13:17:04]line ПРОДАЖА [13:17:04]line Товар: 4700000480050 [13:17:04]line Напиток Nitro Energy эн green ж/б 0,45л [13:17:04]line 1.000 * 95.00 [13:17:04]line = 95.00 [13:17:04]line НДС 12% НСП 1% [13:17:04]line > о реализуемом товаре [13:17:04]line ИТОГО: 95.00 [13:17:04]line НСП 1% : 0.84 [13:17:04]line НДС 12% : 10.09 [13:17:04]line Наличными: 95.00 [13:17:04]line Безнал.: 0.00 [13:17:04]line Место: АЗС № 127 "Партнер Нефть" [13:17:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:17:04]line СНО: Общий режим [13:17:04]line Чек 97 31.07.2024 13:17 [13:17:04]line Смена: 17 ФФД: 1.0 [13:17:04]line ЗНМ: 0300000161 [13:17:04]line РНМ: 0000000000189667 [13:17:04]line Версия ККМ: v1.0 [13:17:04]line ФМ: 0000000002094248 [13:17:04]line ФД: 2644 [13:17:04]line ФПД: 172718464255493 [13:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T131703&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2644&fm=172718464255493&tin=02508201610067®Number=0000000000189667&sum=9500 [13:17:04]line 0 [13:17:04]OFD Sender: Processing packet 2644 [packets to send 1, broken 0] [13:17:04]ProducePacketName [13:17:04]name=ofd_packets/00002644 [13:17:04]OFD Sender: To server: pG, [13:17:04]CommunicateWithHost lk.salyk.kg:30040 [13:17:04]ConnectInit lk.salyk.kg [13:17:04]written 0, free lines is 4095 [13:17:05]Connected sock=11 [13:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 68 71 31 01 96 21 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4F 39 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 0A 00 00 35 04 06 00 9D 16 26 B5 46 05 99 2F 44 D3 DB D1 6B 7D [13:17:05]Write to MH i2c: 01 00 00 26 03 29 [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: 01 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: 01 07 00 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 05 0D 42 [13:17:05]RasterBufferAndPrint [13:17:05]line [13:17:05]line [13:17:05]line [13:17:05]line [13:17:05]line [13:17:05]written 0, free lines is 3339 [13:17:05]MH_Cut [13:17:05]Write to MH i2c: D1 01 00 2D 03 01 02 [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: D1 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: D1 01 00 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: D1 01 00 2D 03 00 01 [13:17:05]Write to MH i2c: 01 00 00 2E 03 31 [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FD 42 47 00 FC 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 32 30 39 34 32 34 38 10 04 04 00 54 0A 00 00 F4 03 04 00 B5 E4 A9 66 B6 04 01 00 00 AE 70 72 C2 D2 C7 95 C9 [13:17:05]CommunicateWithHost err = 0 [13:17:05]CheckOFDResponse [13:17:05]1017 (14) - 77093643461234 [13:17:05]1041 (16) - 0000000002094248 [13:17:05]1040 (4) - 2644 [13:17:05]1012 (4) - 31.07.2024 07:16 [13:17:05]1206 (1) - 0 [13:17:05]OFD Sender: Remove packet 2644 [13:17:05]ProducePacketName [13:17:05]name=ofd_packets/00002644 [13:17:05]NVStorageDeleteData [13:17:06]*** Cut start [13:17:06]*** Partial cut [13:17:06]*** CUTSNS_PIN = 1 [13:17:06]OFD Sender: No OFD packet to send [13:17:06]*** CUTSNS_PIN = 0 [13:17:06]*** Brake cut motor [13:17:06]Read from MH i2c: 01 [13:17:06]MH_I2C_Read... [13:17:06]*** Stop cut motor [13:17:06]*** Cut end [13:17:06]Read from MH i2c: 01 07 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [13:17:06]process_action close_receipt done [13:17:06]requested_data is exist [13:17:06]produce_requested_data [13:17:06]requested_item fm.sn is exist - process it [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 11 00 00 [13:17:06]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [13:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:17:06]wFMCommunicate OK [13:17:06]requested_item fd.num is exist - process it [13:17:06]SAM_PROTO_GetFieldsCounters [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 13 00 00 [13:17:06]Write to MH i2c: E2 08 00 30 03 80 13 00 00 00 00 00 00 AF [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 62 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 62 00 30 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 0A 00 00 0E 04 04 00 11 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 6B [13:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 0A 00 00 0E 04 04 00 11 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 [13:17:06]wFMCommunicate OK [13:17:06]SAM_PROTO_GetFieldsCounters done [13:17:06]requested_item shift.num is exist - process it [13:17:06]requested_item shift.opened is exist - process it [13:17:06]req_shift_opened [13:17:06]FM_GetShiftState [13:17:06]SAM_PROTO_GetShiftState [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 13 01 00 [13:17:06]Write to MH i2c: E2 08 00 31 03 80 13 01 00 00 00 00 00 B1 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0E 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0E 00 31 03 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7E [13:17:06]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:17:06]wFMCommunicate OK [13:17:06]SAM_PROTO_GetShiftState done [13:17:06]FM_GetShiftState done [13:17:06]req_shift_opened done [13:17:06]requested_item shift.open_date is exist - process it [13:17:06]req_shift_open_date [13:17:06]req_shift_open_date done [13:17:06]produce_requested_data done [13:17:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2644,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [13:17:06]process_action_free close_receipt [13:17:06]json_value_free [13:17:06]json_value_free done [13:17:06]process_json_proto returns [13:17:06]Send response to host [13:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2644,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [13:17:06]free response buf [13:17:06]execute_script done [13:17:06]execute_script returns [13:17:06]free content buf [13:17:06]Sock 8.Close socket [13:17:06]Sock 8.Thread stoped [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]accept exits with 9 [13:20:41]New connection [13:20:41]New thread 3066637668 created [13:20:41]Thread 3066781028 joined [13:20:41]Waiting for new connection... [13:20:41] Sock 9.Parse request [13:20:41]Sock 9.Check first char [13:20:41]Sock 9.First char is OK [13:20:41]request: POST /json_proto HTTP/1.0 [13:20:41]Method: POST [13:20:41]URL: /json_proto [13:20:41]Method is POST - this is cgi request [13:20:41]url: /json_proto [13:20:41]query_string will be loaded in cgi processing [13:20:41]execute_cgi json_proto POST (null) [13:20:41]execute_cgi path=json_proto method=POST [13:20:41]POST find Content-Length [13:20:41]Host: 172.17.45.132:8080 [13:20:41]Content-Length: 677 [13:20:41]Content-Type: application/json [13:20:41] [13:20:41]POST finish read [13:20:41]Found Content-Length = 677 [13:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]execute_script... [13:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]POST & json_proto [13:20:41]process_json_proto [13:20:41]json parsed OK: [13:20:41]protocol is kg_v1.0 [13:20:41]action value=close_receipt [13:20:41]process_action close_receipt [13:20:41]cmd_close_receipt [13:20:41]MH_GetDate [13:20:41]Write to MH i2c: F0 00 00 32 03 24 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 32 03 00 29 3A AA 66 E3 0B 90 66 84 [13:20:41]GetLastDocTimeStamp 1722431823 [13:20:41]current date 1722432041 [13:20:41]FM_GetShiftState [13:20:41]SAM_PROTO_GetShiftState [13:20:41]wFMCommunicate request_size=4 [13:20:41]MH_SAM_APDU [13:20:41]CAPDU: 80 13 01 00 [13:20:41]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:41]Read from MH i2c: E2 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: E2 0E 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 80 [13:20:41]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:20:41]wFMCommunicate OK [13:20:41]SAM_PROTO_GetShiftState done [13:20:41]FM_GetShiftState done [13:20:41]opened in 1722384689 [13:20:41]opened+sec_in_day 1722471089 [13:20:41]quantity*price = 30035 [13:20:41]sum+1 = 30036 [13:20:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 99 31.07.2024 13:21 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2646 ФПД: 174468157259745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T132134&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2646&fm=174468157259745&tin=02508201610067®Number=0000000000189667&sum=100000 [13:21:35]StoreToDocumentArchive [13:21:35]shift 17 fd 2646 [13:21:35]save to /storage/0017/doc_00002646 [13:21:35]save last doc name /storage/0017/doc_00002646 to /storage/kkm_last_doc_name [13:21:35]save OK [13:21:35]Clear old archive folders... [13:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:35]tlvbuf is 00E8F340 [13:21:35]SAM_PROTO_ClearQueue [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 09 00 00 [13:21:35]Write to MH i2c: E2 08 00 8B 03 80 09 00 00 00 00 00 00 00 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 03 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [13:21:35]RAPDU: 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_ClearQueue done [13:21:35]KKMCreateOFDPacket [13:21:35]OFDProtocolAddRootSTLVToBuf [13:21:35]FM_MakeSignedData [13:21:35]FM_MakeSignedData [13:21:35]SAM_PROTO_SignData [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 0D 01 02 [13:21:35]Write to MH i2c: E2 08 00 8C 03 80 0D 01 02 00 00 00 00 08 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 03 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [13:21:35]RAPDU: 90 00 [13:21:35]wFMCommunicate OK [13:21:35]wFMCommunicate request_size=255 [13:21:35]MH_SAM_APDU [13:21: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 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 5E 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 0A 00 00 35 04 06 00 9E AD 88 89 [13:21:35]Write to MH i2c: E2 02 01 8D 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 5E 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 0A 00 00 35 04 06 00 9E AD 88 89 00 00 50 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 03 00 [13:21:35]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [13:21:36]RAPDU: 90 00 [13:21:36]wFMCommunicate OK [13:21:36]wFMCommunicate request_size=7 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 0D 02 02 02 BF E1 [13:21:36]Write to MH i2c: E2 0A 00 8E 03 80 0D 02 02 02 00 BF E1 00 00 AF [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:36]Read from MH i2c: E2 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [13:21:36]RAPDU: 90 00 [13:21:36]wFMCommunicate OK [13:21:36]wFMCommunicate request_size=4 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 0D 03 02 [13:21:36]Write to MH i2c: E2 08 00 8F 03 80 0D 03 02 00 00 00 00 0D [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:36]Read from MH i2c: E2 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 0B 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 0B 00 8F 03 00 4B 6A 8C 02 D7 A7 A3 F3 90 00 65 [13:21:36]RAPDU: 4B 6A 8C 02 D7 A7 A3 F3 90 00 [13:21:36]wFMCommunicate OK [13:21:36]SAM_PROTO_SignData done [13:21:36]FM_MakeSignedData done [13:21:36]CreateOFDProtocolMessage [13:21:36]wFMCommunicate request_size=4 [13:21:36]MH_SAM_APDU [13:21:36]CAPDU: 80 11 00 00 [13:21:36]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:36]Read from MH i2c: E2 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 17 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [13:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:21:36]wFMCommunicate OK [13:21:36]CreateOFDProtocolMessage done [13:21:36]OFDSenderStorePacket 2646 [13:21:36]StoreOFDPacket docnum=2646 [13:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 4A E7 04 01 FD B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 5E 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 0A 00 00 35 04 06 00 9E AD 88 89 BF E1 4B 6A 8C 02 D7 A7 A3 F3 [13:21:36]CheckFolder [13:21:36]dirname=/storage/ofd_packets [13:21:36]CheckFolder done [13:21:36]ProducePacketName [13:21:36]name=ofd_packets/00002646 [13:21:36]NVStorageSaveData ofd_packets/00002646 [13:21:36]File name is /storage/ofd_packets/00002646 [13:21:36]Write 298 bytes [13:21:36]NVStorageSaveData done [13:21:36]OFDSenderStorePacket done [13:21:36]KKMCreateOFDPacket done [13:21:36]NVStorageSaveData kkm_last_timestamp [13:21:36]File name is /storage/kkm_last_timestamp [13:21:36]Write 4 bytes [13:21:36]NVStorageSaveData done [13:21:36]ExternCall_PrintAddStr [13:21:36]wPrintStart [13:21:36]Write to MH i2c: 01 00 00 91 03 94 [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 07 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [13:21:36]RasterBufferAndPrint [13:21:36]line Счет N : (1)611144 [13:21:36]line ИНН: 02508201610067 [13:21:36]line Контрольно-Кассовый Чек [13:21:36]line ПРОДАЖА [13:21:36]line ТРК (МРК, ГНК) : 2 [13:21:36]line Товар: 2710194210 [13:21:36]line ДТ-К-2 [13:21:36]line 13.210 * 75.70 [13:21:36]line = 1000.00 [13:21:36]line НДС 12% НСП 1% [13:21:36]line > о реализуемом товаре [13:21:36]line ИТОГО: 1000.00 [13:21:36]line НСП 1% : 8.85 [13:21:36]line НДС 12% : 106.19 [13:21:36]line Наличными: 1000.00 [13:21:36]line Безнал.: 0.00 [13:21:36]line Место: АЗС № 127 "Партнер Нефть" [13:21:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:21:36]line СНО: Общий режим [13:21:36]line Чек 99 31.07.2024 13:21 [13:21:36]line Смена: 17 ФФД: 1.0 [13:21:36]line ЗНМ: 0300000161 [13:21:36]line РНМ: 0000000000189667 [13:21:36]line Версия ККМ: v1.0 [13:21:36]line ФМ: 0000000002094248 [13:21:36]line ФД: 2646 [13:21:36]line ФПД: 174468157259745 [13:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T132134&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2646&fm=174468157259745&tin=02508201610067®Number=0000000000189667&sum=100000 [13:21:36]written 0, free lines is 4095 [13:21:36]OFD Sender: Processing packet 2646 [packets to send 1, broken 0] [13:21:36]ProducePacketName [13:21:36]name=ofd_packets/00002646 [13:21:36]OFD Sender: To server: pG, [13:21:36]CommunicateWithHost lk.salyk.kg:30040 [13:21:36]ConnectInit lk.salyk.kg [13:21:36]Connected sock=9 [13:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 4A E7 04 01 FD B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 5E 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 0A 00 00 35 04 06 00 9E AD 88 89 BF E1 4B 6A 8C 02 D7 A7 A3 F3 [13:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AA FB 47 00 7F 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 0A 00 00 F4 03 04 00 C4 E5 A9 66 B6 04 01 00 00 4D 9E 43 2F 6C 7F BF 82 [13:21:36]CommunicateWithHost err = 0 [13:21:36]CheckOFDResponse [13:21:36]1017 (14) - 77093643461234 [13:21:36]1041 (16) - 0000000002094248 [13:21:36]1040 (4) - 2646 [13:21:36]1012 (4) - 31.07.2024 07:20 [13:21:36]1206 (1) - 0 [13:21:36]OFD Sender: Remove packet 2646 [13:21:36]ProducePacketName [13:21:36]name=ofd_packets/00002646 [13:21:36]NVStorageDeleteData [13:21:36]Write to MH i2c: 01 00 00 B9 03 BC [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 07 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 3A 0D 0A [13:21:36]RasterBufferAndPrint [13:21:36]line [13:21:36]line [13:21:36]line [13:21:36]line [13:21:36]line [13:21:36]written 0, free lines is 3397 [13:21:36]MH_Cut [13:21:36]Write to MH i2c: D1 01 00 C0 03 01 95 [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: D1 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: D1 01 00 [13:21:36]MH_I2C_Read... [13:21:36]Read from MH i2c: D1 01 00 C0 03 00 94 [13:21:36]Write to MH i2c: 01 00 00 C1 03 C4 [13:21:36]Write i2c OK [13:21:36]MH_I2C_Read... [13:21:37]OFD Sender: No OFD packet to send [13:21:37]*** Cut start [13:21:37]*** Partial cut [13:21:37]*** CUTSNS_PIN = 1 [13:21:37]*** CUTSNS_PIN = 0 [13:21:37]*** Brake cut motor [13:21:37]Read from MH i2c: 01 [13:21:37]MH_I2C_Read... [13:21:37]*** Stop cut motor [13:21:37]*** Cut end [13:21:37]Read from MH i2c: 01 07 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [13:21:37]process_action close_receipt done [13:21:37]requested_data is exist [13:21:37]produce_requested_data [13:21:37]requested_item fm.sn is exist - process it [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 11 00 00 [13:21:37]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8F [13:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:21:37]wFMCommunicate OK [13:21:37]requested_item fd.num is exist - process it [13:21:37]SAM_PROTO_GetFieldsCounters [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 13 00 00 [13:21:37]Write to MH i2c: E2 08 00 C3 03 80 13 00 00 00 00 00 00 42 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 62 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 62 00 C3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 0A 00 00 0E 04 04 00 11 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 06 [13:21:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 0A 00 00 0E 04 04 00 11 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 [13:21:38]wFMCommunicate OK [13:21:38]SAM_PROTO_GetFieldsCounters done [13:21:38]requested_item shift.num is exist - process it [13:21:38]requested_item shift.opened is exist - process it [13:21:38]req_shift_opened [13:21:38]FM_GetShiftState [13:21:38]SAM_PROTO_GetShiftState [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 13 01 00 [13:21:38]Write to MH i2c: E2 08 00 C4 03 80 13 01 00 00 00 00 00 44 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 0E 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 0E 00 C4 03 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 11 [13:21:38]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:21:38]wFMCommunicate OK [13:21:38]SAM_PROTO_GetShiftState done [13:21:38]FM_GetShiftState done [13:21:38]req_shift_opened done [13:21:38]requested_item shift.open_date is exist - process it [13:21:38]req_shift_open_date [13:21:38]req_shift_open_date done [13:21:38]produce_requested_data done [13:21:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2646,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [13:21:38]process_action_free close_receipt [13:21:38]json_value_free [13:21:38]json_value_free done [13:21:38]process_json_proto returns [13:21:38]Send response to host [13:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2646,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [13:21:38]free response buf [13:21:38]execute_script done [13:21:38]execute_script returns [13:21:38]free content buf [13:21:38]Sock 10.Close socket [13:21:38]Sock 10.Thread stoped [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:08]accept exits with 8 [13:22:08]New connection [13:22:08]New thread 3066637668 created [13:22:08]Thread 3066781028 joined [13:22:08]Waiting for new connection... [13:22:08] Sock 8.Parse request [13:22:08]Sock 8.Check first char [13:22:08]Sock 8.First char is OK [13:22:08]request: POST /json_proto HTTP/1.0 [13:22:08]Method: POST [13:22:08]URL: /json_proto [13:22:08]Method is POST - this is cgi request [13:22:08]url: /json_proto [13:22:08]query_string will be loaded in cgi processing [13:22:08]execute_cgi json_proto POST (null) [13:22:08]execute_cgi path=json_proto method=POST [13:22:08]POST find Content-Length [13:22:08]Host: 172.17.45.132:8080 [13:22:08]Content-Length: 677 [13:22:08]Content-Type: application/json [13:22:08] [13:22:08]POST finish read [13:22:08]Found Content-Length = 677 [13:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:08]execute_script... [13: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)611145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:08]POST & json_proto [13:22:08]process_json_proto [13:22:08]json parsed OK: [13:22:08]protocol is kg_v1.0 [13:22:08]action value=close_receipt [13:22:08]process_action close_receipt [13:22:08]cmd_close_receipt [13:22:08]MH_GetDate [13:22:08]Write to MH i2c: F0 00 00 C5 03 B7 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 C5 03 00 81 3A AA 66 E3 0B 90 66 6F [13:22:08]GetLastDocTimeStamp 1722432094 [13:22:08]current date 1722432129 [13:22:08]FM_GetShiftState [13:22:08]SAM_PROTO_GetShiftState [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 13 01 00 [13:22:08]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 13 [13:22:08]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_GetShiftState done [13:22:08]FM_GetShiftState done [13:22:08]opened in 1722384689 [13:22:08]opened+sec_in_day 1722471089 [13:22:08]quantity*price = 50036 [13:22:08]sum+1 = 50037 [13:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 100 31.07.2024 13:22 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2647 ФПД: 268603479424868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T132209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2647&fm=268603479424868&tin=02508201610067®Number=0000000000189667&sum=50000 [13:22:09]StoreToDocumentArchive [13:22:09]shift 17 fd 2647 [13:22:09]save to /storage/0017/doc_00002647 [13:22:09]save last doc name /storage/0017/doc_00002647 to /storage/kkm_last_doc_name [13:22:09]save OK [13:22:09]Clear old archive folders... [13:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:09]tlvbuf is 00F08640 [13:22:09]SAM_PROTO_ClearQueue [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 09 00 00 [13:22:09]Write to MH i2c: E2 08 00 D3 03 80 09 00 00 00 00 00 00 48 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]SAM_PROTO_ClearQueue done [13:22:09]KKMCreateOFDPacket [13:22:09]OFDProtocolAddRootSTLVToBuf [13:22:09]FM_MakeSignedData [13:22:09]FM_MakeSignedData [13:22:09]SAM_PROTO_SignData [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 01 02 [13:22:09]Write to MH i2c: E2 08 00 D4 03 80 0D 01 02 00 00 00 00 50 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]wFMCommunicate request_size=255 [13:22:09]MH_SAM_APDU [13:22: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 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 81 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 0A 00 00 35 04 06 00 F4 [13:22:09]Write to MH i2c: E2 02 01 D5 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 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 81 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 0A 00 00 35 04 06 00 F4 00 00 6A [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=10 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 02 02 05 4B 1E F9 FF 64 [13:22:10]Write to MH i2c: E2 0D 00 D6 03 80 0D 02 02 05 00 4B 1E F9 FF 64 00 00 22 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 03 02 [13:22:10]Write to MH i2c: E2 08 00 D7 03 80 0D 03 02 00 00 00 00 55 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 D7 03 00 D3 9D 7D 7E B8 DB 3B B6 90 00 45 [13:22:10]RAPDU: D3 9D 7D 7E B8 DB 3B B6 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_SignData done [13:22:10]FM_MakeSignedData done [13:22:10]CreateOFDProtocolMessage [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 11 00 00 [13:22:10]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A5 [13:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:22:10]wFMCommunicate OK [13:22:10]CreateOFDProtocolMessage done [13:22:10]OFDSenderStorePacket 2647 [13:22:10]StoreOFDPacket docnum=2647 [13:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 7A E1 07 01 ED 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 81 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 0A 00 00 35 04 06 00 F4 4B 1E F9 FF 64 D3 9D 7D 7E B8 DB 3B B6 [13:22:10]CheckFolder [13:22:10]dirname=/storage/ofd_packets [13:22:10]CheckFolder done [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00002647 [13:22:10]NVStorageSaveData ofd_packets/00002647 [13:22:10]File name is /storage/ofd_packets/00002647 [13:22:10]Write 301 bytes [13:22:10]NVStorageSaveData done [13:22:10]OFDSenderStorePacket done [13:22:10]KKMCreateOFDPacket done [13:22:10]NVStorageSaveData kkm_last_timestamp [13:22:10]File name is /storage/kkm_last_timestamp [13:22:10]Write 4 bytes [13:22:10]NVStorageSaveData done [13:22:10]ExternCall_PrintAddStr [13:22:10]wPrintStart [13:22:10]Write to MH i2c: 01 00 00 D9 03 DC [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [13:22:10]RasterBufferAndPrint [13:22:10]line Счет N : (1)611145 [13:22:10]line ИНН: 02508201610067 [13:22:10]line Контрольно-Кассовый Чек [13:22:10]line ПРОДАЖА [13:22:10]line ТРК (МРК, ГНК) : 52 [13:22:10]line Товар: 2710124130 [13:22:10]line Аи-92-К-2 [13:22:10]line 7.380 * 67.80 [13:22:10]line = 500.36 [13:22:10]line НДС 12% НСП 1% [13:22:10]line > о реализуемом товаре [13:22:10]line ОКРУГЛЕНИЕ: -0.36 [13:22:10]line ИТОГО: 500.00 [13:22:10]line Внесено: 500.00 [13:22:10]line СДАЧА: 0.00 [13:22:10]line НСП 1% : 4.43 [13:22:10]line НДС 12% : 53.14 [13:22:10]line Наличными: 500.00 [13:22:10]line Безнал.: 0.00 [13:22:10]line Место: АЗС № 127 "Партнер Нефть" [13:22:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:22:10]line СНО: Общий режим [13:22:10]line Чек 100 31.07.2024 13:22 [13:22:10]line Смена: 17 ФФД: 1.0 [13:22:10]line ЗНМ: 0300000161 [13:22:10]line РНМ: 0000000000189667 [13:22:10]line Версия ККМ: v1.0 [13:22:10]line ФМ: 0000000002094248 [13:22:10]line ФД: 2647 [13:22:10]line ФПД: 268603479424868 [13:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T132209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2647&fm=268603479424868&tin=02508201610067®Number=0000000000189667&sum=50000 [13:22:10]OFD Sender: Processing packet 2647 [packets to send 1, broken 0] [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00002647 [13:22:10]OFD Sender: To server: pG, [13:22:10]CommunicateWithHost lk.salyk.kg:30040 [13:22:10]ConnectInit lk.salyk.kg [13:22:10]written 0, free lines is 4095 [13:22:11]Write to MH i2c: 01 00 00 04 04 08 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 07 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 F5 0C 10 [13:22:11]RasterBufferAndPrint [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]written 0, free lines is 3338 [13:22:11]MH_Cut [13:22:11]Write to MH i2c: D1 01 00 0B 04 01 E1 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: D1 [13:22:11]MH_I2C_Read... [13:22:11]ConnectInit Can't connect to host [13:22:11]Read from MH i2c: D1 01 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: D1 01 00 0B 04 00 E0 [13:22:11]Write to MH i2c: 01 00 00 0C 04 10 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]*** Cut start [13:22:11]*** Partial cut [13:22:11]*** CUTSNS_PIN = 1 [13:22:11]*** CUTSNS_PIN = 0 [13:22:12]*** Brake cut motor [13:22:12]Read from MH i2c: 01 [13:22:12]MH_I2C_Read... [13:22:12]*** Stop cut motor [13:22:12]*** Cut end [13:22:12]Read from MH i2c: 01 07 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [13:22:12]process_action close_receipt done [13:22:12]requested_data is exist [13:22:12]produce_requested_data [13:22:12]requested_item fm.sn is exist - process it [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 11 00 00 [13:22:12]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DB [13:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:22:12]wFMCommunicate OK [13:22:12]requested_item fd.num is exist - process it [13:22:12]SAM_PROTO_GetFieldsCounters [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 13 00 00 [13:22:12]Write to MH i2c: E2 08 00 0E 04 80 13 00 00 00 00 00 00 8E [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 62 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 62 00 0E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 0A 00 00 0E 04 04 00 11 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 56 [13:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 0A 00 00 0E 04 04 00 11 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 [13:22:12]wFMCommunicate OK [13:22:12]SAM_PROTO_GetFieldsCounters done [13:22:12]requested_item shift.num is exist - process it [13:22:12]requested_item shift.opened is exist - process it [13:22:12]req_shift_opened [13:22:12]FM_GetShiftState [13:22:12]SAM_PROTO_GetShiftState [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 13 01 00 [13:22:12]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0E 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 5D [13:22:12]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [13:22:12]wFMCommunicate OK [13:22:12]SAM_PROTO_GetShiftState done [13:22:12]FM_GetShiftState done [13:22:12]req_shift_opened done [13:22:12]requested_item shift.open_date is exist - process it [13:22:12]req_shift_open_date [13:22:12]req_shift_open_date done [13:22:12]produce_requested_data done [13:22:12]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2647,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [13:22:12]process_action_free close_receipt [13:22:12]json_value_free [13:22:12]json_value_free done [13:22:12]process_json_proto returns [13:22:12]Send response to host [13:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2647,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [13:22:12]free response buf [13:22:12]execute_script done [13:22:12]execute_script returns [13:22:12]free content buf [13:22:12]Sock 8.Close socket [13:22:12]Sock 8.Thread stoped [13:22:15]ConnectInit Can't take IP for lk.salyk.kg [13:22:15]CommunicateWithHost connect error [13:22:15]CommunicateWithHost err = -1 [13:22:15]OFD Sender: Server communicate error [13:22:16]ConnectInit Can't connect to host [13:22:20]OFD Sender: Processing packet 2647 [packets to send 1, broken 0] [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00002647 [13:22:20]OFD Sender: To server: pG, [13:22:20]CommunicateWithHost lk.salyk.kg:30040 [13:22:20]ConnectInit lk.salyk.kg [13:24:32]ConnectInit Can't connect to host [13:24:32]CommunicateWithHost connect error [13:24:32]CommunicateWithHost err = -1 [13:24:32]OFD Sender: Server communicate error [13:24:37]OFD Sender: Processing packet 2647 [packets to send 1, broken 0] [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00002647 [13:24:37]OFD Sender: To server: pG, [13:24:37]CommunicateWithHost lk.salyk.kg:30040 [13:24:37]ConnectInit lk.salyk.kg [13:24:37]Connected sock=8 [13:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 7A E1 07 01 ED 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 81 3A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 0A 00 00 35 04 06 00 F4 4B 1E F9 FF 64 D3 9D 7D 7E B8 DB 3B B6 [13:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 51 CC 47 00 37 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 0A 00 00 F4 03 04 00 7A E6 A9 66 B6 04 01 00 00 92 A3 71 2A 22 F6 63 55 [13:24:37]CommunicateWithHost err = 0 [13:24:37]CheckOFDResponse [13:24:37]1017 (14) - 77093643461234 [13:24:37]1041 (16) - 0000000002094248 [13:24:37]1040 (4) - 2647 [13:24:37]1012 (4) - 31.07.2024 07:23 [13:24:37]1206 (1) - 0 [13:24:37]OFD Sender: Remove packet 2647 [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00002647 [13:24:37]NVStorageDeleteData [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:34:11]ConnectInit Can't connect to host [13:34:12]ConnectInit Can't take IP for lk.salyk.kg [13:34:12]CommunicateWithHost connect error [13:34:12]CommunicateWithHost err = -1 [13:34:12]OFD Sender: Server communicate error [13:34:17]OFD Sender: Processing packet 2648 [packets to send 1, broken 0] [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00002648 [13:34:17]OFD Sender: To server: pG, [13:34:17]CommunicateWithHost lk.salyk.kg:30040 [13:34:17]ConnectInit lk.salyk.kg [13:34:17]Connected sock=9 [13:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 53 01 00 00 CC F7 4B 01 C6 FB 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 03 3C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 0A 00 00 35 04 06 00 11 D8 5B 33 42 E0 CF FE 33 D0 FC 3C 72 18 [13:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F4 2E 47 00 61 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 0A 00 00 F4 03 04 00 BD E8 A9 66 B6 04 01 00 00 7D 0F A0 02 8F 9D ED F5 [13:34:17]CommunicateWithHost err = 0 [13:34:17]CheckOFDResponse [13:34:17]1017 (14) - 77093643461234 [13:34:17]1041 (16) - 0000000002094248 [13:34:17]1040 (4) - 2648 [13:34:17]1012 (4) - 31.07.2024 07:33 [13:34:17]1206 (1) - 0 [13:34:17]OFD Sender: Remove packet 2648 [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00002648 [13:34:17]NVStorageDeleteData [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35: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:44]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:50:49]ConnectInit Can't connect to host [13:50:49]ConnectInit Can't take IP for lk.salyk.kg [13:50:49]CommunicateWithHost connect error [13:50:49]CommunicateWithHost err = -1 [13:50:49]OFD Sender: Server communicate error [13:50:54]OFD Sender: Processing packet 2649 [packets to send 2, broken 0] [13:50:54]ProducePacketName [13:50:54]name=ofd_packets/00002649 [13:50:54]OFD Sender: To server: pG, [13:50:54]CommunicateWithHost lk.salyk.kg:30040 [13:50:54]ConnectInit lk.salyk.kg [13:50:55]Connected sock=9 [13:50:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 A4 1A 1B 01 66 3E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 66 00 00 00 F4 03 04 00 28 40 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 0A 00 00 35 04 06 00 44 B7 E6 BD 88 59 5C 19 D1 48 73 80 55 EA [13:50:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 26 D4 47 00 05 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 32 30 39 34 32 34 38 10 04 04 00 59 0A 00 00 F4 03 04 00 A3 EC A9 66 B6 04 01 00 00 C6 00 33 34 9E AF B7 12 [13:50:55]CommunicateWithHost err = 0 [13:50:55]CheckOFDResponse [13:50:55]1017 (14) - 77093643461234 [13:50:55]1041 (16) - 0000000002094248 [13:50:55]1040 (4) - 2649 [13:50:55]1012 (4) - 31.07.2024 07:49 [13:50:55]1206 (1) - 0 [13:50:55]OFD Sender: Remove packet 2649 [13:50:55]ProducePacketName [13:50:55]name=ofd_packets/00002649 [13:50:55]NVStorageDeleteData [13:50:55]OFD Sender: Processing packet 2650 [packets to send 1, broken 0] [13:50:55]ProducePacketName [13:50:55]name=ofd_packets/00002650 [13:50:55]OFD Sender: To server: pG, [13:50:55]CommunicateWithHost lk.salyk.kg:30040 [13:50:55]ConnectInit lk.salyk.kg [13:50:56]Connected sock=8 [13:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 D3 F0 1F 01 58 BC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 ED 40 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 0A 00 00 35 04 06 00 32 09 66 E6 39 92 70 1C 83 9B 04 DA 4A A4 [13:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 45 17 47 00 58 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 32 30 39 34 32 34 38 10 04 04 00 5A 0A 00 00 F4 03 04 00 A4 EC A9 66 B6 04 01 00 00 36 9B 02 A9 E6 0F 5E AA [13:50:56]CommunicateWithHost err = 0 [13:50:56]CheckOFDResponse [13:50:56]1017 (14) - 77093643461234 [13:50:56]1041 (16) - 0000000002094248 [13:50:56]1040 (4) - 2650 [13:50:56]1012 (4) - 31.07.2024 07:49 [13:50:56]1206 (1) - 0 [13:50:56]OFD Sender: Remove packet 2650 [13:50:56]ProducePacketName [13:50:56]name=ofd_packets/00002650 [13:50:56]NVStorageDeleteData [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:15]recv_with_timeout no data received [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:58:05]ConnectInit Can't connect to host [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:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:38]accept exits with 11 [14:00:38]New connection [14:00:38]New thread 3066637668 created [14:00:38]Thread 3066781028 joined [14:00:38]Waiting for new connection... [14:00:38] Sock 11.Parse request [14:00:38]Sock 11.Check first char [14:00:38]Sock 11.First char is OK [14:00:38]request: POST /json_proto HTTP/1.0 [14:00:38]Method: POST [14:00:38]URL: /json_proto [14:00:38]Method is POST - this is cgi request [14:00:38]url: /json_proto [14:00:38]query_string will be loaded in cgi processing [14:00:38]execute_cgi json_proto POST (null) [14:00:38]execute_cgi path=json_proto method=POST [14:00:38]POST find Content-Length [14:00:38]Host: 172.17.45.132:8080 [14:00:38]Content-Length: 1023 [14:00:38]Content-Type: application/json [14:00:38] [14:00:38]POST finish read [14:00:38]Found Content-Length = 1023 [14:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126821", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:38]execute_script... [14:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126821", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:38]POST & json_proto [14:00:38]process_json_proto [14:00:38]json parsed OK: [14:00:38]protocol is kg_v1.0 [14:00:38]action value=close_receipt [14:00:38]process_action close_receipt [14:00:38]cmd_close_receipt [14:00:38]MH_GetDate [14:00:38]Write to MH i2c: F0 00 00 EC 04 DF [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 EC 04 00 87 43 AA 66 E3 0B 90 66 A6 [14:00:38]GetLastDocTimeStamp 1722433773 [14:00:38]current date 1722434439 [14:00:38]FM_GetShiftState [14:00:38]SAM_PROTO_GetShiftState [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 01 00 [14:00:38]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 0E 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3B [14:00:39]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_GetShiftState done [14:00:39]FM_GetShiftState done [14:00:39]opened in 1722384689 [14:00:39]opened+sec_in_day 1722471089 [14:00:39]quantity*price = 11000 [14:00:39]sum+1 = 11001 [14:00:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 104 31.07.2024 14:00 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2651 ФПД: 126213472441330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T140039&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2651&fm=126213472441330&tin=02508201610067®Number=0000000000189667&sum=12500 0 [14:00:40]StoreToDocumentArchive [14:00:40]shift 17 fd 2651 [14:00:40]save to /storage/0017/doc_00002651 [14:00:40]save last doc name /storage/0017/doc_00002651 to /storage/kkm_last_doc_name [14:00:40]save OK [14:00:40]Clear old archive folders... [14:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=423 [14:00:40]tlvbuf is 00F13910 [14:00:40]SAM_PROTO_ClearQueue [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 09 00 00 [14:00:40]Write to MH i2c: E2 08 00 FA 04 80 09 00 00 00 00 00 00 70 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_ClearQueue done [14:00:40]KKMCreateOFDPacket [14:00:40]OFDProtocolAddRootSTLVToBuf [14:00:40]FM_MakeSignedData [14:00:40]FM_MakeSignedData [14:00:40]SAM_PROTO_SignData [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 01 02 [14:00:40]Write to MH i2c: E2 08 00 FB 04 80 0D 01 02 00 00 00 00 78 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=255 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 [14:00:40]Write to MH i2c: E2 02 01 FC 04 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 00 20 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=182 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 43 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 0A 00 00 35 04 06 00 72 CA 5D 30 D3 F2 [14:00:40]Write to MH i2c: E2 B9 00 FD 04 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 43 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 0A 00 00 35 04 06 00 72 CA 5D 30 D3 F2 00 00 D6 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 03 02 [14:00:40]Write to MH i2c: E2 08 00 FE 04 80 0D 03 02 00 00 00 00 7D [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 FE 04 00 D2 B5 A8 6C E0 C5 24 D5 90 00 B7 [14:00:40]RAPDU: D2 B5 A8 6C E0 C5 24 D5 90 00 [14:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_SignData done [14:00:40]FM_MakeSignedData done [14:00:40]CreateOFDProtocolMessage [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 11 00 00 [14:00:40]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CD [14:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:00:40]wFMCommunicate OK [14:00:40]CreateOFDProtocolMessage done [14:00:40]OFDSenderStorePacket 2651 [14:00:40]StoreOFDPacket docnum=2651 [14:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 BB 01 00 00 84 F8 B3 01 5A 9A 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 43 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 0A 00 00 35 04 06 00 72 CA 5D 30 D3 F2 D2 B5 A8 6C E0 C5 24 D5 [14:00:40]CheckFolder [14:00:40]dirname=/storage/ofd_packets [14:00:40]CheckFolder done [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00002651 [14:00:40]NVStorageSaveData ofd_packets/00002651 [14:00:40]File name is /storage/ofd_packets/00002651 [14:00:40]Write 473 bytes [14:00:40]NVStorageSaveData done [14:00:40]OFDSenderStorePacket done [14:00:40]KKMCreateOFDPacket done [14:00:40]NVStorageSaveData kkm_last_timestamp [14:00:40]File name is /storage/kkm_last_timestamp [14:00:40]Write 4 bytes [14:00:40]NVStorageSaveData done [14:00:40]ExternCall_PrintAddStr [14:00:40]wPrintStart [14:00:40]Write to MH i2c: 01 00 00 00 05 05 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [14:00:41]RasterBufferAndPrint [14:00:41]line Счет N : (3)126821 [14:00:41]line ИНН: 02508201610067 [14:00:41]line Контрольно-Кассовый Чек [14:00:41]line ПРОДАЖА [14:00:41]line Товар: 4870202521216 [14:00:41]line Напиток MAXI чай 1,2 зел.лимон (новый) [14:00:41]line 1.000 * 110.00 [14:00:41]line = 110.00 [14:00:41]line НДС 12% НСП 1% [14:00:41]line > о реализуемом товаре [14:00:41]line Товар: 4700000160099 [14:00:41]line Снек Курут индивидуальный [14:00:41]line 1.000 * 15.00 [14:00:41]line = 15.00 [14:00:41]line НДС 12% НСП 1% [14:00:41]line > о реализуемом товаре [14:00:41]line ИТОГО: 125.00 [14:00:41]line НСП 1% : 1.10 [14:00:41]line НДС 12% : 13.27 [14:00:41]line Наличными: 125.00 [14:00:41]line Безнал.: 0.00 [14:00:41]line Место: АЗС № 127 "Партнер Нефть" [14:00:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:00:41]line СНО: Общий режим [14:00:41]line Чек 104 31.07.2024 14:00 [14:00:41]line Смена: 17 ФФД: 1.0 [14:00:41]line ЗНМ: 0300000161 [14:00:41]line РНМ: 0000000000189667 [14:00:41]line Версия ККМ: v1.0 [14:00:41]line ФМ: 0000000002094248 [14:00:41]line ФД: 2651 [14:00:41]line ФПД: 126213472441330 [14:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T140039&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2651&fm=126213472441330&tin=02508201610067®Number=0000000000189667&sum=12500 [14:00:41]line 0 [14:00:41]OFD Sender: Processing packet 2651 [packets to send 1, broken 0] [14:00:41]ProducePacketName [14:00:41]name=ofd_packets/00002651 [14:00:41]OFD Sender: To server: pG, [14:00:41]CommunicateWithHost lk.salyk.kg:30040 [14:00:41]ConnectInit lk.salyk.kg [14:00:41]written 0, free lines is 4095 [14:00:41]Connected sock=9 [14:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 BB 01 00 00 84 F8 B3 01 5A 9A 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 43 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 0A 00 00 35 04 06 00 72 CA 5D 30 D3 F2 D2 B5 A8 6C E0 C5 24 D5 [14:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CA 68 47 00 57 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 32 30 39 34 32 34 38 10 04 04 00 5B 0A 00 00 F4 03 04 00 ED EE A9 66 B6 04 01 00 00 AD 17 62 75 D5 12 B4 47 [14:00:41]CommunicateWithHost err = 0 [14:00:41]CheckOFDResponse [14:00:41]1017 (14) - 77093643461234 [14:00:41]1041 (16) - 0000000002094248 [14:00:41]1040 (4) - 2651 [14:00:41]1012 (4) - 31.07.2024 07:59 [14:00:41]1206 (1) - 0 [14:00:41]OFD Sender: Remove packet 2651 [14:00:41]ProducePacketName [14:00:41]name=ofd_packets/00002651 [14:00:41]NVStorageDeleteData [14:00:41]Write to MH i2c: 01 00 00 2F 05 34 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 07 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 B3 0C FA [14:00:41]RasterBufferAndPrint [14:00:41]line [14:00:41]line [14:00:41]line [14:00:41]line [14:00:41]line [14:00:41]written 0, free lines is 3258 [14:00:41]MH_Cut [14:00:41]Write to MH i2c: D1 01 00 36 05 01 0D [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 01 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 01 00 36 05 00 0C [14:00:41]Write to MH i2c: 01 00 00 37 05 3C [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:42]OFD Sender: No OFD packet to send [14:00:42]*** Cut start [14:00:42]*** Partial cut [14:00:42]*** CUTSNS_PIN = 1 [14:00:42]*** CUTSNS_PIN = 0 [14:00:42]*** Brake cut motor [14:00:43]Read from MH i2c: 01 [14:00:43]MH_I2C_Read... [14:00:43]*** Stop cut motor [14:00:43]*** Cut end [14:00:43]Read from MH i2c: 01 07 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [14:00:43]process_action close_receipt done [14:00:43]requested_data is exist [14:00:43]produce_requested_data [14:00:43]requested_item fm.sn is exist - process it [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 11 00 00 [14:00:43]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 17 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 07 [14:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:00:43]wFMCommunicate OK [14:00:43]requested_item fd.num is exist - process it [14:00:43]SAM_PROTO_GetFieldsCounters [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 13 00 00 [14:00:43]Write to MH i2c: E2 08 00 39 05 80 13 00 00 00 00 00 00 BA [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 62 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 62 00 39 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 0A 00 00 0E 04 04 00 11 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 92 [14:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 0A 00 00 0E 04 04 00 11 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 [14:00:43]wFMCommunicate OK [14:00:43]SAM_PROTO_GetFieldsCounters done [14:00:43]requested_item shift.num is exist - process it [14:00:43]requested_item shift.opened is exist - process it [14:00:43]req_shift_opened [14:00:43]FM_GetShiftState [14:00:43]SAM_PROTO_GetShiftState [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 13 01 00 [14:00:43]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0E 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 89 [14:00:43]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:00:43]wFMCommunicate OK [14:00:43]SAM_PROTO_GetShiftState done [14:00:43]FM_GetShiftState done [14:00:43]req_shift_opened done [14:00:43]requested_item shift.open_date is exist - process it [14:00:43]req_shift_open_date [14:00:43]req_shift_open_date done [14:00:43]produce_requested_data done [14:00:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2651,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:00:43]process_action_free close_receipt [14:00:43]json_value_free [14:00:43]json_value_free done [14:00:43]process_json_proto returns [14:00:43]Send response to host [14:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2651,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:00:43]free response buf [14:00:43]execute_script done [14:00:43]execute_script returns [14:00:43]free content buf [14:00:43]Sock 11.Close socket [14:00:43]Sock 11.Thread stoped [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:18:50]ConnectInit Can't connect to host [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24: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]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=255 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 0A 00 00 35 04 06 00 F5 [14:30:47]Write to MH i2c: E2 02 01 E0 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 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 0A 00 00 35 04 06 00 F5 00 00 CA [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=10 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 02 02 05 22 3C 89 3B 85 [14:30:47]Write to MH i2c: E2 0D 00 E1 05 80 0D 02 02 05 00 22 3C 89 3B 85 00 00 11 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 03 02 [14:30:47]Write to MH i2c: E2 08 00 E2 05 80 0D 03 02 00 00 00 00 62 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 E2 05 00 73 9C F7 DE 8E 41 46 25 90 00 81 [14:30:47]RAPDU: 73 9C F7 DE 8E 41 46 25 90 00 [14:30:47]wFMCommunicate OK [14:30:47]SAM_PROTO_SignData done [14:30:47]FM_MakeSignedData done [14:30:47]CreateOFDProtocolMessage [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 11 00 00 [14:30:47]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [14:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:30:47]wFMCommunicate OK [14:30:47]CreateOFDProtocolMessage done [14:30:47]OFDSenderStorePacket 2654 [14:30:47]StoreOFDPacket docnum=2654 [14:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B6 AF 07 01 6F EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 0A 00 00 35 04 06 00 F5 22 3C 89 3B 85 73 9C F7 DE 8E 41 46 25 [14:30:47]CheckFolder [14:30:47]dirname=/storage/ofd_packets [14:30:47]CheckFolder done [14:30:47]ProducePacketName [14:30:47]name=ofd_packets/00002654 [14:30:47]NVStorageSaveData ofd_packets/00002654 [14:30:47]File name is /storage/ofd_packets/00002654 [14:30:47]Write 301 bytes [14:30:47]NVStorageSaveData done [14:30:47]OFDSenderStorePacket done [14:30:47]KKMCreateOFDPacket done [14:30:47]NVStorageSaveData kkm_last_timestamp [14:30:47]File name is /storage/kkm_last_timestamp [14:30:47]Write 4 bytes [14:30:47]NVStorageSaveData done [14:30:47]ExternCall_PrintAddStr [14:30:47]wPrintStart [14:30:47]Write to MH i2c: 01 00 00 E4 05 E9 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [14:30:47]RasterBufferAndPrint [14:30:47]line Счет N : (1)611190 [14:30:47]line ИНН: 02508201610067 [14:30:47]line Контрольно-Кассовый Чек [14:30:47]line ПРОДАЖА [14:30:47]line ТРК (МРК, ГНК) : 52 [14:30:47]line Товар: 2710124130 [14:30:47]line Аи-92-К-2 [14:30:47]line 4.430 * 67.80 [14:30:47]line = 300.35 [14:30:47]line НДС 12% НСП 1% [14:30:47]line > о реализуемом товаре [14:30:47]line ОКРУГЛЕНИЕ: -0.35 [14:30:47]line ИТОГО: 300.00 [14:30:47]line Внесено: 300.00 [14:30:47]line СДАЧА: 0.00 [14:30:47]line НСП 1% : 2.66 [14:30:47]line НДС 12% : 31.90 [14:30:47]line Наличными: 300.00 [14:30:47]line Безнал.: 0.00 [14:30:47]line Место: АЗС № 127 "Партнер Нефть" [14:30:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:30:47]line СНО: Общий режим [14:30:47]line Чек 107 31.07.2024 14:30 [14:30:47]line Смена: 17 ФФД: 1.0 [14:30:47]line ЗНМ: 0300000161 [14:30:47]line РНМ: 0000000000189667 [14:30:47]line Версия ККМ: v1.0 [14:30:47]line ФМ: 0000000002094248 [14:30:47]line ФД: 2654 [14:30:47]line ФПД: 269527393319813 [14:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143046&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2654&fm=269527393319813&tin=02508201610067®Number=0000000000189667&sum=30000 [14:30:47]written 0, free lines is 4095 [14:30:48]Write to MH i2c: 01 00 00 0F 06 15 [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 E7 0C 0F [14:30:48]RasterBufferAndPrint [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]written 0, free lines is 3309 [14:30:48]MH_Cut [14:30:48]Write to MH i2c: D1 01 00 16 06 01 EE [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 16 06 00 ED [14:30:48]Write to MH i2c: 01 00 00 17 06 1D [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:49]*** Cut start [14:30:49]*** Partial cut [14:30:49]*** CUTSNS_PIN = 1 [14:30:49]*** CUTSNS_PIN = 0 [14:30:49]*** Brake cut motor [14:30:49]Read from MH i2c: 01 [14:30:49]MH_I2C_Read... [14:30:49]*** Stop cut motor [14:30:49]*** Cut end [14:30:49]Read from MH i2c: 01 07 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: 01 07 00 17 06 00 00 00 00 00 FF 0F 32 [14:30:49]process_action close_receipt done [14:30:49]requested_data is exist [14:30:49]produce_requested_data [14:30:49]requested_item fm.sn is exist - process it [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 11 00 00 [14:30:49]Write to MH i2c: E2 08 00 18 06 80 11 00 00 00 00 00 00 98 [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 18 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E8 [14:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:30:49]wFMCommunicate OK [14:30:49]requested_item fd.num is exist - process it [14:30:49]SAM_PROTO_GetFieldsCounters [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 00 00 [14:30:49]Write to MH i2c: E2 08 00 19 06 80 13 00 00 00 00 00 00 9B [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]ConnectInit Can't take IP for lk.salyk.kg [14:30:49]CommunicateWithHost connect error [14:30:49]CommunicateWithHost err = -1 [14:30:49]OFD Sender: Server communicate error [14:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 19 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 0A 00 00 0E 04 04 00 11 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 7F [14:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 0A 00 00 0E 04 04 00 11 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 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetFieldsCounters done [14:30:49]requested_item shift.num is exist - process it [14:30:49]requested_item shift.opened is exist - process it [14:30:49]req_shift_opened [14:30:49]FM_GetShiftState [14:30:49]SAM_PROTO_GetShiftState [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 01 00 [14:30:49]Write to MH i2c: E2 08 00 1A 06 80 13 01 00 00 00 00 00 9D [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 1A 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 6A [14:30:49]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetShiftState done [14:30:49]FM_GetShiftState done [14:30:49]req_shift_opened done [14:30:49]requested_item shift.open_date is exist - process it [14:30:49]req_shift_open_date [14:30:49]req_shift_open_date done [14:30:49]produce_requested_data done [14:30:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2654,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:30:49]process_action_free close_receipt [14:30:49]json_value_free [14:30:49]json_value_free done [14:30:49]process_json_proto returns [14:30:49]Send response to host [14:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2654,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:30:49]free response buf [14:30:49]execute_script done [14:30:49]execute_script returns [14:30:49]free content buf [14:30:49]Sock 12.Close socket [14:30:49]Sock 12.Thread stoped [14:30:50]OFD Sender: Processing packet 2652 [packets to send 3, broken 0] [14:30:50]ProducePacketName [14:30:50]name=ofd_packets/00002652 [14:30:50]OFD Sender: To server: pG, [14:30:50]CommunicateWithHost lk.salyk.kg:30040 [14:30:50]ConnectInit lk.salyk.kg [14:30:51]ConnectInit Can't connect to host [14:30:51]accept exits with 10 [14:30:51]New connection [14:30:51]New thread 3066637668 created [14:30:51]Thread 3066781028 joined [14:30:51]Waiting for new connection... [14:30:51] Sock 10.Parse request [14:30:51]Sock 10.Check first char [14:30:51]Sock 10.First char is OK [14:30:51]request: POST /json_proto HTTP/1.0 [14:30:51]Method: POST [14:30:51]URL: /json_proto [14:30:51]Method is POST - this is cgi request [14:30:51]url: /json_proto [14:30:51]query_string will be loaded in cgi processing [14:30:51]execute_cgi json_proto POST (null) [14:30:51]execute_cgi path=json_proto method=POST [14:30:51]POST find Content-Length [14:30:51]Host: 172.17.45.132:8080 [14:30:51]Content-Length: 803 [14:30:51]Content-Type: application/json [14:30:51] [14:30:51]POST finish read [14:30:51]Found Content-Length = 803 [14:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]execute_script... [14:30:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]POST & json_proto [14:30:51]process_json_proto [14:30:51]json parsed OK: [14:30:51]protocol is kg_v1.0 [14:30:51]action value=close_receipt [14:30:51]process_action close_receipt [14:30:51]cmd_close_receipt [14:30:51]MH_GetDate [14:30:51]Write to MH i2c: F0 00 00 1B 06 10 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 1B 06 00 9C 4A AA 66 E3 0B 90 66 F3 [14:30:51]GetLastDocTimeStamp 1722436246 [14:30:51]current date 1722436252 [14:30:51]FM_GetShiftState [14:30:51]SAM_PROTO_GetShiftState [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 13 01 00 [14:30:51]Write to MH i2c: E2 08 00 1C 06 80 13 01 00 00 00 00 00 9F [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 1C 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 6C [14:30:51]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_GetShiftState done [14:30:51]FM_GetShiftState done [14:30:51]opened in 1722384689 [14:30:51]opened+sec_in_day 1722471089 [14:30:51]quantity*price = 150041 [14:30:51]sum+1 = 150042 [14:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 108 31.07.2024 14:30 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2655 ФПД: 161326825356349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143052&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2655&fm=161326825356349&tin=02508201610067®Number=0000000000189667&sum=150041 [14:30:52]StoreToDocumentArchive [14:30:52]shift 17 fd 2655 [14:30:52]save to /storage/0017/doc_00002655 [14:30:52]save last doc name /storage/0017/doc_00002655 to /storage/kkm_last_doc_name [14:30:52]save OK [14:30:52]Clear old archive folders... [14:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:52]tlvbuf is 00E67530 [14:30:52]SAM_PROTO_ClearQueue [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 09 00 00 [14:30:52]Write to MH i2c: E2 08 00 29 06 80 09 00 00 00 00 00 00 A1 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [14:30:52]RAPDU: 90 00 [14:30:52]wFMCommunicate OK [14:30:52]SAM_PROTO_ClearQueue done [14:30:52]KKMCreateOFDPacket [14:30:52]OFDProtocolAddRootSTLVToBuf [14:30:52]FM_MakeSignedData [14:30:52]FM_MakeSignedData [14:30:52]SAM_PROTO_SignData [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 0D 01 02 [14:30:52]Write to MH i2c: E2 08 00 2A 06 80 0D 01 02 00 00 00 00 A9 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [14:30:52]RAPDU: 90 00 [14:30:52]wFMCommunicate OK [14:30:52]wFMCommunicate request_size=255 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 0A 00 00 35 04 06 00 92 [14:30:52]Write to MH i2c: E2 02 01 2B 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 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 0A 00 00 35 04 06 00 92 00 00 65 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=10 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 05 B9 D4 1E 3C 3D [14:30:53]Write to MH i2c: E2 0D 00 2C 06 80 0D 02 02 05 00 B9 D4 1E 3C 3D 00 00 DA [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 03 02 [14:30:53]Write to MH i2c: E2 08 00 2D 06 80 0D 03 02 00 00 00 00 AE [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 2D 06 00 7C 8E 8C 98 21 1E B4 1B 90 00 EB [14:30:53]RAPDU: 7C 8E 8C 98 21 1E B4 1B 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_SignData done [14:30:53]FM_MakeSignedData done [14:30:53]CreateOFDProtocolMessage [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 11 00 00 [14:30:53]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FE [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:30:53]wFMCommunicate OK [14:30:53]CreateOFDProtocolMessage done [14:30:53]OFDSenderStorePacket 2655 [14:30:53]StoreOFDPacket docnum=2655 [14:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 48 7C 07 01 31 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 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 0A 00 00 35 04 06 00 92 B9 D4 1E 3C 3D 7C 8E 8C 98 21 1E B4 1B [14:30:53]CheckFolder [14:30:53]dirname=/storage/ofd_packets [14:30:53]CheckFolder done [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00002655 [14:30:53]NVStorageSaveData ofd_packets/00002655 [14:30:53]File name is /storage/ofd_packets/00002655 [14:30:53]Write 301 bytes [14:30:53]NVStorageSaveData done [14:30:53]OFDSenderStorePacket done [14:30:53]KKMCreateOFDPacket done [14:30:53]NVStorageSaveData kkm_last_timestamp [14:30:53]File name is /storage/kkm_last_timestamp [14:30:53]Write 4 bytes [14:30:53]NVStorageSaveData done [14:30:53]ExternCall_PrintAddStr [14:30:53]wPrintStart [14:30:53]Write to MH i2c: 01 00 00 2F 06 35 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [14:30:53]RasterBufferAndPrint [14:30:53]line Счет N : (1)611191 [14:30:53]line ИНН: 02508201610067 [14:30:53]line Контрольно-Кассовый Чек [14:30:53]line ПРОДАЖА [14:30:53]line ТРК (МРК, ГНК) : 62 [14:30:53]line Товар: 2710124130 [14:30:53]line Аи-92-К-2 [14:30:53]line 22.130 * 67.80 [14:30:53]line = 1500.41 [14:30:53]line НДС 12% НСП 1% [14:30:53]line > о реализуемом товаре [14:30:53]line ИТОГО: 1500.41 [14:30:53]line НСП 1% : 13.28 [14:30:53]line НДС 12% : 159.34 [14:30:53]line Наличными: 0.00 [14:30:53]line Безнал.: 1500.41 [14:30:53]line Место: АЗС № 127 "Партнер Нефть" [14:30:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:30:53]line СНО: Общий режим [14:30:53]line Чек 108 31.07.2024 14:30 [14:30:53]line Смена: 17 ФФД: 1.0 [14:30:53]line ЗНМ: 0300000161 [14:30:53]line РНМ: 0000000000189667 [14:30:53]line Версия ККМ: v1.0 [14:30:53]line Платежная система: O! деньги [14:30:53]line ФМ: 0000000002094248 [14:30:53]line ФД: 2655 [14:30:53]line ФПД: 161326825356349 [14:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143052&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2655&fm=161326825356349&tin=02508201610067®Number=0000000000189667&sum=150041 [14:30:53]written 0, free lines is 4095 [14:30:53]Write to MH i2c: 01 00 00 59 06 5F [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 FF 0C 71 [14:30:53]RasterBufferAndPrint [14:30:53]line [14:30:53]line [14:30:53]line [14:30:53]line [14:30:53]line [14:30:53]written 0, free lines is 3336 [14:30:53]MH_Cut [14:30:53]Write to MH i2c: D1 01 00 60 06 01 38 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: D1 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: D1 01 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: D1 01 00 60 06 00 37 [14:30:53]Write to MH i2c: 01 00 00 61 06 67 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:54]*** Cut start [14:30:54]*** Partial cut [14:30:54]*** CUTSNS_PIN = 1 [14:30:54]*** CUTSNS_PIN = 0 [14:30:54]*** Brake cut motor [14:30:55]ConnectInit Can't take IP for lk.salyk.kg [14:30:55]CommunicateWithHost connect error [14:30:55]CommunicateWithHost err = -1 [14:30:55]OFD Sender: Server communicate error [14:30:55]Read from MH i2c: 01 [14:30:55]MH_I2C_Read... [14:30:55]*** Stop cut motor [14:30:55]*** Cut end [14:30:55]Read from MH i2c: 01 07 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [14:30:55]process_action close_receipt done [14:30:55]requested_data is exist [14:30:55]produce_requested_data [14:30:55]requested_item fm.sn is exist - process it [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 11 00 00 [14:30:55]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:55]OFD Sender: Processing packet 2652 [packets to send 4, broken 0] [14:30:55]ProducePacketName [14:30:55]name=ofd_packets/00002652 [14:30:55]OFD Sender: To server: pG, [14:30:55]CommunicateWithHost lk.salyk.kg:30040 [14:30:55]ConnectInit lk.salyk.kg [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 32 [14:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:30:55]wFMCommunicate OK [14:30:55]requested_item fd.num is exist - process it [14:30:55]SAM_PROTO_GetFieldsCounters [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 13 00 00 [14:30:55]Write to MH i2c: E2 08 00 63 06 80 13 00 00 00 00 00 00 E5 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 62 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 62 00 63 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5F 0A 00 00 0E 04 04 00 11 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 CD [14:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5F 0A 00 00 0E 04 04 00 11 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 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_GetFieldsCounters done [14:30:55]requested_item shift.num is exist - process it [14:30:55]requested_item shift.opened is exist - process it [14:30:55]req_shift_opened [14:30:55]FM_GetShiftState [14:30:55]SAM_PROTO_GetShiftState [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 13 01 00 [14:30:55]Write to MH i2c: E2 08 00 64 06 80 13 01 00 00 00 00 00 E7 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 64 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 B4 [14:30:55]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_GetShiftState done [14:30:55]FM_GetShiftState done [14:30:55]req_shift_opened done [14:30:55]requested_item shift.open_date is exist - process it [14:30:55]req_shift_open_date [14:30:55]req_shift_open_date done [14:30:55]produce_requested_data done [14:30:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2655,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:30:55]process_action_free close_receipt [14:30:55]json_value_free [14:30:55]json_value_free done [14:30:55]process_json_proto returns [14:30:55]Send response to host [14:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2655,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:30:55]free response buf [14:30:55]execute_script done [14:30:55]execute_script returns [14:30:55]free content buf [14:30:55]Sock 10.Close socket [14:30:55]Sock 10.Thread stoped [14:30:57]Connected sock=8 [14:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9B EE 07 01 3C EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D8 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 BC 49 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 0A 00 00 35 04 06 00 2F 52 9D EE 5F D8 4F 22 F4 B3 B4 1B 19 D7 [14:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AA 6D 47 00 D5 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 0A 00 00 F4 03 04 00 06 F6 A9 66 B6 04 01 00 00 AE 27 81 45 5C EA 27 DC [14:30:58]CommunicateWithHost err = 0 [14:30:58]CheckOFDResponse [14:30:58]1017 (14) - 77093643461234 [14:30:58]1041 (16) - 0000000002094248 [14:30:58]1040 (4) - 2652 [14:30:58]1012 (4) - 31.07.2024 08:29 [14:30:58]1206 (1) - 0 [14:30:58]OFD Sender: Remove packet 2652 [14:30:58]ProducePacketName [14:30:58]name=ofd_packets/00002652 [14:30:58]NVStorageDeleteData [14:30:58]OFD Sender: Processing packet 2653 [packets to send 3, broken 0] [14:30:58]ProducePacketName [14:30:58]name=ofd_packets/00002653 [14:30:58]OFD Sender: To server: pG, [14:30:58]CommunicateWithHost lk.salyk.kg:30040 [14:30:58]ConnectInit lk.salyk.kg [14:30:58]Connected sock=8 [14:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 66 5B 07 01 6D CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D2 49 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 0A 00 00 35 04 06 00 E9 77 48 0F D2 0B A3 EB F7 02 C6 BA 5F 63 [14:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 65 B9 47 00 25 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 32 30 39 34 32 34 38 10 04 04 00 5D 0A 00 00 F4 03 04 00 07 F6 A9 66 B6 04 01 00 00 53 2B FB F1 DF 63 B2 02 [14:30:58]CommunicateWithHost err = 0 [14:30:58]CheckOFDResponse [14:30:58]1017 (14) - 77093643461234 [14:30:58]1041 (16) - 0000000002094248 [14:30:58]1040 (4) - 2653 [14:30:58]1012 (4) - 31.07.2024 08:29 [14:30:58]1206 (1) - 0 [14:30:58]OFD Sender: Remove packet 2653 [14:30:58]ProducePacketName [14:30:58]name=ofd_packets/00002653 [14:30:58]NVStorageDeleteData [14:30:59]OFD Sender: Processing packet 2654 [packets to send 2, broken 0] [14:30:59]ProducePacketName [14:30:59]name=ofd_packets/00002654 [14:30:59]OFD Sender: To server: pG, [14:30:59]CommunicateWithHost lk.salyk.kg:30040 [14:30:59]ConnectInit lk.salyk.kg [14:30:59]Connected sock=8 [14:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B6 AF 07 01 6F EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 0A 00 00 35 04 06 00 F5 22 3C 89 3B 85 73 9C F7 DE 8E 41 46 25 [14:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 85 48 47 00 78 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 32 30 39 34 32 34 38 10 04 04 00 5E 0A 00 00 F4 03 04 00 08 F6 A9 66 B6 04 01 00 00 B5 25 EB D8 BD E3 99 52 [14:30:59]CommunicateWithHost err = 0 [14:30:59]CheckOFDResponse [14:30:59]1017 (14) - 77093643461234 [14:30:59]1041 (16) - 0000000002094248 [14:30:59]1040 (4) - 2654 [14:30:59]1012 (4) - 31.07.2024 08:30 [14:30:59]1206 (1) - 0 [14:30:59]OFD Sender: Remove packet 2654 [14:30:59]ProducePacketName [14:30:59]name=ofd_packets/00002654 [14:30:59]NVStorageDeleteData [14:31:00]OFD Sender: Processing packet 2655 [packets to send 1, broken 0] [14:31:00]ProducePacketName [14:31:00]name=ofd_packets/00002655 [14:31:00]OFD Sender: To server: pG, [14:31:00]CommunicateWithHost lk.salyk.kg:30040 [14:31:00]ConnectInit lk.salyk.kg [14:31:00]Connected sock=8 [14:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 48 7C 07 01 31 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 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 0A 00 00 35 04 06 00 92 B9 D4 1E 3C 3D 7C 8E 8C 98 21 1E B4 1B [14:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A6 FE 47 00 97 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 32 30 39 34 32 34 38 10 04 04 00 5F 0A 00 00 F4 03 04 00 09 F6 A9 66 B6 04 01 00 00 FB A1 9D 18 73 6D 11 89 [14:31:00]CommunicateWithHost err = 0 [14:31:00]CheckOFDResponse [14:31:00]1017 (14) - 77093643461234 [14:31:00]1041 (16) - 0000000002094248 [14:31:00]1040 (4) - 2655 [14:31:00]1012 (4) - 31.07.2024 08:30 [14:31:00]1206 (1) - 0 [14:31:00]OFD Sender: Remove packet 2655 [14:31:00]ProducePacketName [14:31:00]name=ofd_packets/00002655 [14:31:00]NVStorageDeleteData [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:49]accept exits with 11 [14:31:49]New connection [14:31:49]New thread 3066781028 created [14:31:49]Thread 3066637668 joined [14:31:49]Waiting for new connection... [14:31:49] Sock 11.Parse request [14:31:49]Sock 11.Check first char [14:31:49]Sock 11.First char is OK [14:31:49]request: POST /json_proto HTTP/1.0 [14:31:49]Method: POST [14:31:49]URL: /json_proto [14:31:49]Method is POST - this is cgi request [14:31:49]url: /json_proto [14:31:49]query_string will be loaded in cgi processing [14:31:49]execute_cgi json_proto POST (null) [14:31:49]execute_cgi path=json_proto method=POST [14:31:49]POST find Content-Length [14:31:49]Host: 172.17.45.132:8080 [14:31:49]Content-Length: 682 [14:31:49]Content-Type: application/json [14:31:49] [14:31:49]POST finish read [14:31:49]Found Content-Length = 682 [14:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:49]execute_script... [14:31: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)611192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:49]POST & json_proto [14:31:49]process_json_proto [14:31:49]json parsed OK: [14:31:49]protocol is kg_v1.0 [14:31:49]action value=close_receipt [14:31:49]process_action close_receipt [14:31:49]cmd_close_receipt [14:31:49]MH_GetDate [14:31:49]Write to MH i2c: F0 00 00 65 06 5A [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: F0 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: F0 09 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: F0 09 00 65 06 00 D6 4A AA 66 E3 0B 90 66 77 [14:31:49]GetLastDocTimeStamp 1722436252 [14:31:49]current date 1722436310 [14:31:49]FM_GetShiftState [14:31:49]SAM_PROTO_GetShiftState [14:31:49]wFMCommunicate request_size=4 [14:31:49]MH_SAM_APDU [14:31:49]CAPDU: 80 13 01 00 [14:31:49]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:49]Read from MH i2c: E2 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 0E 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 B6 [14:31:49]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:31:49]wFMCommunicate OK [14:31:49]SAM_PROTO_GetShiftState done [14:31:49]FM_GetShiftState done [14:31:49]opened in 1722384689 [14:31:49]opened+sec_in_day 1722471089 [14:31:49]quantity*price = 100023 [14:31:49]sum+1 = 100024 [14:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 109 31.07.2024 14:31 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2656 ФПД: 79785639424491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2656&fm=79785639424491&tin=02508201610067®Number=0000000000189667&sum=100000 [14:31:50]StoreToDocumentArchive [14:31:50]shift 17 fd 2656 [14:31:50]save to /storage/0017/doc_00002656 [14:31:50]save last doc name /storage/0017/doc_00002656 to /storage/kkm_last_doc_name [14:31:50]save OK [14:31:50]Clear old archive folders... [14:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:50]tlvbuf is B6EB0580 [14:31:50]SAM_PROTO_ClearQueue [14:31:50]wFMCommunicate request_size=4 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 09 00 00 [14:31:50]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:50]Read from MH i2c: E2 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 03 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [14:31:50]RAPDU: 90 00 [14:31:50]wFMCommunicate OK [14:31:50]SAM_PROTO_ClearQueue done [14:31:50]KKMCreateOFDPacket [14:31:50]OFDProtocolAddRootSTLVToBuf [14:31:50]FM_MakeSignedData [14:31:50]FM_MakeSignedData [14:31:50]SAM_PROTO_SignData [14:31:50]wFMCommunicate request_size=4 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 0D 01 02 [14:31:50]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:50]Read from MH i2c: E2 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 03 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [14:31:50]RAPDU: 90 00 [14:31:50]wFMCommunicate OK [14:31:50]wFMCommunicate request_size=255 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D6 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 0A 00 00 35 04 06 00 48 [14:31:50]Write to MH i2c: E2 02 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D6 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 0A 00 00 35 04 06 00 48 00 00 E0 [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:51]Read from MH i2c: E2 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 03 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [14:31:51]RAPDU: 90 00 [14:31:51]wFMCommunicate OK [14:31:51]wFMCommunicate request_size=10 [14:31:51]MH_SAM_APDU [14:31:51]CAPDU: 80 0D 02 02 05 90 8A B2 31 EB [14:31:51]Write to MH i2c: E2 0D 00 76 06 80 0D 02 02 05 00 90 8A B2 31 EB 00 00 E8 [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:51]Read from MH i2c: E2 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 03 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [14:31:51]RAPDU: 90 00 [14:31:51]wFMCommunicate OK [14:31:51]wFMCommunicate request_size=4 [14:31:51]MH_SAM_APDU [14:31:51]CAPDU: 80 0D 03 02 [14:31:51]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:51]Read from MH i2c: E2 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 0B 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 0B 00 77 06 00 E9 7D 23 1B F5 10 7A D5 90 00 F1 [14:31:51]RAPDU: E9 7D 23 1B F5 10 7A D5 90 00 [14:31:51]wFMCommunicate OK [14:31:51]SAM_PROTO_SignData done [14:31:51]FM_MakeSignedData done [14:31:51]CreateOFDProtocolMessage [14:31:51]wFMCommunicate request_size=4 [14:31:51]MH_SAM_APDU [14:31:51]CAPDU: 80 11 00 00 [14:31:51]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:51]Read from MH i2c: E2 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 17 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 48 [14:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:31:51]wFMCommunicate OK [14:31:51]CreateOFDProtocolMessage done [14:31:51]OFDSenderStorePacket 2656 [14:31:51]StoreOFDPacket docnum=2656 [14:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F4 AA 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D6 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 0A 00 00 35 04 06 00 48 90 8A B2 31 EB E9 7D 23 1B F5 10 7A D5 [14:31:51]CheckFolder [14:31:51]dirname=/storage/ofd_packets [14:31:51]CheckFolder done [14:31:51]ProducePacketName [14:31:51]name=ofd_packets/00002656 [14:31:51]NVStorageSaveData ofd_packets/00002656 [14:31:51]File name is /storage/ofd_packets/00002656 [14:31:51]Write 301 bytes [14:31:51]NVStorageSaveData done [14:31:51]OFDSenderStorePacket done [14:31:51]KKMCreateOFDPacket done [14:31:51]NVStorageSaveData kkm_last_timestamp [14:31:51]File name is /storage/kkm_last_timestamp [14:31:51]Write 4 bytes [14:31:51]NVStorageSaveData done [14:31:51]ExternCall_PrintAddStr [14:31:51]wPrintStart [14:31:51]Write to MH i2c: 01 00 00 79 06 7F [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 07 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [14:31:51]RasterBufferAndPrint [14:31:51]line Счет N : (1)611192 [14:31:51]line ИНН: 02508201610067 [14:31:51]line Контрольно-Кассовый Чек [14:31:51]line ПРОДАЖА [14:31:51]line ТРК (МРК, ГНК) : 33 [14:31:51]line Товар: 2710124500 [14:31:51]line Аи-95-К-3 [14:31:51]line 13.390 * 74.70 [14:31:51]line = 1000.23 [14:31:51]line НДС 12% НСП 1% [14:31:51]line > о реализуемом товаре [14:31:51]line ОКРУГЛЕНИЕ: -0.23 [14:31:51]line ИТОГО: 1000.00 [14:31:51]line Внесено: 1000.00 [14:31:51]line СДАЧА: 0.00 [14:31:51]line НСП 1% : 8.85 [14:31:51]line НДС 12% : 106.22 [14:31:51]line Наличными: 1000.00 [14:31:51]line Безнал.: 0.00 [14:31:51]line Место: АЗС № 127 "Партнер Нефть" [14:31:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:31:51]line СНО: Общий режим [14:31:51]line Чек 109 31.07.2024 14:31 [14:31:51]line Смена: 17 ФФД: 1.0 [14:31:51]line ЗНМ: 0300000161 [14:31:51]line РНМ: 0000000000189667 [14:31:51]line Версия ККМ: v1.0 [14:31:51]line ФМ: 0000000002094248 [14:31:51]line ФД: 2656 [14:31:51]line ФПД: 79785639424491 [14:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2656&fm=79785639424491&tin=02508201610067®Number=0000000000189667&sum=100000 [14:31:51]OFD Sender: Processing packet 2656 [packets to send 1, broken 0] [14:31:51]ProducePacketName [14:31:51]name=ofd_packets/00002656 [14:31:51]OFD Sender: To server: pG, [14:31:51]CommunicateWithHost lk.salyk.kg:30040 [14:31:51]ConnectInit lk.salyk.kg [14:31:51]written 0, free lines is 4095 [14:31:51]Connected sock=9 [14:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F4 AA 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D6 4A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 0A 00 00 35 04 06 00 48 90 8A B2 31 EB E9 7D 23 1B F5 10 7A D5 [14:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 20 CA 47 00 F6 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 0A 00 00 F4 03 04 00 3C F6 A9 66 B6 04 01 00 00 3E AC E5 8D 9C DD 30 EE [14:31:51]CommunicateWithHost err = 0 [14:31:51]CheckOFDResponse [14:31:51]1017 (14) - 77093643461234 [14:31:51]1041 (16) - 0000000002094248 [14:31:51]1040 (4) - 2656 [14:31:51]1012 (4) - 31.07.2024 08:30 [14:31:51]1206 (1) - 0 [14:31:51]OFD Sender: Remove packet 2656 [14:31:51]ProducePacketName [14:31:51]name=ofd_packets/00002656 [14:31:51]NVStorageDeleteData [14:31:51]Write to MH i2c: 01 00 00 A4 06 AA [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 07 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 EC 0C A9 [14:31:51]RasterBufferAndPrint [14:31:51]line [14:31:51]line [14:31:51]line [14:31:51]line [14:31:51]line [14:31:51]written 0, free lines is 3314 [14:31:51]MH_Cut [14:31:51]Write to MH i2c: D1 01 00 AB 06 01 83 [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: D1 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: D1 01 00 [14:31:51]MH_I2C_Read... [14:31:51]Read from MH i2c: D1 01 00 AB 06 00 82 [14:31:51]Write to MH i2c: 01 00 00 AC 06 B2 [14:31:51]Write i2c OK [14:31:51]MH_I2C_Read... [14:31:52]OFD Sender: No OFD packet to send [14:31:52]*** Cut start [14:31:52]*** Partial cut [14:31:52]*** CUTSNS_PIN = 1 [14:31:52]*** CUTSNS_PIN = 0 [14:31:52]*** Brake cut motor [14:31:53]Read from MH i2c: 01 [14:31:53]MH_I2C_Read... [14:31:53]*** Stop cut motor [14:31:53]*** Cut end [14:31:53]Read from MH i2c: 01 07 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [14:31:53]process_action close_receipt done [14:31:53]requested_data is exist [14:31:53]produce_requested_data [14:31:53]requested_item fm.sn is exist - process it [14:31:53]wFMCommunicate request_size=4 [14:31:53]MH_SAM_APDU [14:31:53]CAPDU: 80 11 00 00 [14:31:53]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [14:31:53]Write i2c OK [14:31:53]MH_I2C_Read... [14:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:53]Read from MH i2c: E2 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 17 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7D [14:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:31:53]wFMCommunicate OK [14:31:53]requested_item fd.num is exist - process it [14:31:53]SAM_PROTO_GetFieldsCounters [14:31:53]wFMCommunicate request_size=4 [14:31:53]MH_SAM_APDU [14:31:53]CAPDU: 80 13 00 00 [14:31:53]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [14:31:53]Write i2c OK [14:31:53]MH_I2C_Read... [14:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:53]Read from MH i2c: E2 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 62 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 60 0A 00 00 0E 04 04 00 11 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 1C [14:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 60 0A 00 00 0E 04 04 00 11 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 [14:31:53]wFMCommunicate OK [14:31:53]SAM_PROTO_GetFieldsCounters done [14:31:53]requested_item shift.num is exist - process it [14:31:53]requested_item shift.opened is exist - process it [14:31:53]req_shift_opened [14:31:53]FM_GetShiftState [14:31:53]SAM_PROTO_GetShiftState [14:31:53]wFMCommunicate request_size=4 [14:31:53]MH_SAM_APDU [14:31:53]CAPDU: 80 13 01 00 [14:31:53]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [14:31:53]Write i2c OK [14:31:53]MH_I2C_Read... [14:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:53]Read from MH i2c: E2 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 0E 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 FF [14:31:53]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:31:53]wFMCommunicate OK [14:31:53]SAM_PROTO_GetShiftState done [14:31:53]FM_GetShiftState done [14:31:53]req_shift_opened done [14:31:53]requested_item shift.open_date is exist - process it [14:31:53]req_shift_open_date [14:31:53]req_shift_open_date done [14:31:53]produce_requested_data done [14:31:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2656,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:31:53]process_action_free close_receipt [14:31:53]json_value_free [14:31:53]json_value_free done [14:31:53]process_json_proto returns [14:31:53]Send response to host [14:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2656,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:31:53]free response buf [14:31:53]execute_script done [14:31:53]execute_script returns [14:31:53]free content buf [14:31:53]Sock 11.Close socket [14:31:53]Sock 11.Thread stoped [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:28]accept exits with 8 [14:33:28]New connection [14:33:28]New thread 3066637668 created [14:33:28]Thread 3066781028 joined [14:33:28]Waiting for new connection... [14:33:28] Sock 8.Parse request [14:33:28]Sock 8.Check first char [14:33:28]Sock 8.First char is OK [14:33:28]request: POST /json_proto HTTP/1.0 [14:33:28]Method: POST [14:33:28]URL: /json_proto [14:33:28]Method is POST - this is cgi request [14:33:28]url: /json_proto [14:33:28]query_string will be loaded in cgi processing [14:33:28]execute_cgi json_proto POST (null) [14:33:28]execute_cgi path=json_proto method=POST [14:33:28]POST find Content-Length [14:33:28]Host: 172.17.45.132:8080 [14:33:28]Content-Length: 800 [14:33:28]Content-Type: application/json [14:33:28] [14:33:28]POST finish read [14:33:28]Found Content-Length = 800 [14:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:28]execute_script... [14:33: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)611193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:28]POST & json_proto [14:33:28]process_json_proto [14:33:28]json parsed OK: [14:33:28]protocol is kg_v1.0 [14:33:28]action value=close_receipt [14:33:28]process_action close_receipt [14:33:28]cmd_close_receipt [14:33:28]MH_GetDate [14:33:28]Write to MH i2c: F0 00 00 B0 06 A5 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: F0 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: F0 09 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: F0 09 00 B0 06 00 39 4B AA 66 E3 0B 90 66 26 [14:33:28]GetLastDocTimeStamp 1722436310 [14:33:28]current date 1722436409 [14:33:28]FM_GetShiftState [14:33:28]SAM_PROTO_GetShiftState [14:33:28]wFMCommunicate request_size=4 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 13 01 00 [14:33:28]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 0E 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 01 [14:33:28]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:33:28]wFMCommunicate OK [14:33:28]SAM_PROTO_GetShiftState done [14:33:28]FM_GetShiftState done [14:33:28]opened in 1722384689 [14:33:28]opened+sec_in_day 1722471089 [14:33:28]quantity*price = 60003 [14:33:28]sum+1 = 60004 [14:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 110 31.07.2024 14:33 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2657 ФПД: 209667191370862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143329&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2657&fm=209667191370862&tin=02508201610067®Number=0000000000189667&sum=60003 [14:33:30]StoreToDocumentArchive [14:33:30]shift 17 fd 2657 [14:33:30]save to /storage/0017/doc_00002657 [14:33:30]save last doc name /storage/0017/doc_00002657 to /storage/kkm_last_doc_name [14:33:30]save OK [14:33:30]Clear old archive folders... [14:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:30]tlvbuf is 00F13450 [14:33:30]SAM_PROTO_ClearQueue [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 09 00 00 [14:33:30]Write to MH i2c: E2 08 00 BE 06 80 09 00 00 00 00 00 00 36 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_ClearQueue done [14:33:30]KKMCreateOFDPacket [14:33:30]OFDProtocolAddRootSTLVToBuf [14:33:30]FM_MakeSignedData [14:33:30]FM_MakeSignedData [14:33:30]SAM_PROTO_SignData [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 01 02 [14:33:30]Write to MH i2c: E2 08 00 BF 06 80 0D 01 02 00 00 00 00 3E [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=255 [14:33:30]MH_SAM_APDU [14:33: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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 39 4B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 0A 00 00 35 04 06 00 BE [14:33:30]Write to MH i2c: E2 02 01 C0 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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 39 4B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 0A 00 00 35 04 06 00 BE 00 00 CC [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=10 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 02 02 05 B0 F2 76 74 6E [14:33:30]Write to MH i2c: E2 0D 00 C1 06 80 0D 02 02 05 00 B0 F2 76 74 6E 00 00 45 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [14:33:30]RAPDU: 90 00 [14:33:30]wFMCommunicate OK [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 0D 03 02 [14:33:30]Write to MH i2c: E2 08 00 C2 06 80 0D 03 02 00 00 00 00 43 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0B 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0B 00 C2 06 00 6B C7 A2 47 8E 17 42 1E 90 00 64 [14:33:30]RAPDU: 6B C7 A2 47 8E 17 42 1E 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_SignData done [14:33:30]FM_MakeSignedData done [14:33:30]CreateOFDProtocolMessage [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 11 00 00 [14:33:30]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 17 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 93 [14:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:33:30]wFMCommunicate OK [14:33:30]CreateOFDProtocolMessage done [14:33:30]OFDSenderStorePacket 2657 [14:33:30]StoreOFDPacket docnum=2657 [14:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 DA 2E 07 01 E9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 39 4B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 0A 00 00 35 04 06 00 BE B0 F2 76 74 6E 6B C7 A2 47 8E 17 42 1E [14:33:30]CheckFolder [14:33:30]dirname=/storage/ofd_packets [14:33:30]CheckFolder done [14:33:30]ProducePacketName [14:33:30]name=ofd_packets/00002657 [14:33:30]NVStorageSaveData ofd_packets/00002657 [14:33:30]File name is /storage/ofd_packets/00002657 [14:33:30]Write 301 bytes [14:33:30]NVStorageSaveData done [14:33:30]OFDSenderStorePacket done [14:33:30]KKMCreateOFDPacket done [14:33:30]NVStorageSaveData kkm_last_timestamp [14:33:30]File name is /storage/kkm_last_timestamp [14:33:30]Write 4 bytes [14:33:30]NVStorageSaveData done [14:33:30]ExternCall_PrintAddStr [14:33:30]wPrintStart [14:33:30]Write to MH i2c: 01 00 00 C4 06 CA [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [14:33:30]RasterBufferAndPrint [14:33:30]line Счет N : (1)611193 [14:33:30]line ИНН: 02508201610067 [14:33:30]line Контрольно-Кассовый Чек [14:33:30]line ПРОДАЖА [14:33:30]line ТРК (МРК, ГНК) : 52 [14:33:30]line Товар: 2710124130 [14:33:30]line Аи-92-К-2 [14:33:30]line 8.850 * 67.80 [14:33:30]line = 600.03 [14:33:30]line НДС 12% НСП 1% [14:33:30]line > о реализуемом товаре [14:33:30]line ИТОГО: 600.03 [14:33:30]line НСП 1% : 5.31 [14:33:30]line НДС 12% : 63.72 [14:33:30]line Наличными: 0.00 [14:33:30]line Безнал.: 600.03 [14:33:30]line Место: АЗС № 127 "Партнер Нефть" [14:33:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:33:30]line СНО: Общий режим [14:33:30]line Чек 110 31.07.2024 14:33 [14:33:30]line Смена: 17 ФФД: 1.0 [14:33:30]line ЗНМ: 0300000161 [14:33:30]line РНМ: 0000000000189667 [14:33:30]line Версия ККМ: v1.0 [14:33:30]line Платежная система: O! деньги [14:33:30]line ФМ: 0000000002094248 [14:33:30]line ФД: 2657 [14:33:30]line ФПД: 209667191370862 [14:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143329&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2657&fm=209667191370862&tin=02508201610067®Number=0000000000189667&sum=60003 [14:33:30]OFD Sender: Processing packet 2657 [packets to send 1, broken 0] [14:33:30]ProducePacketName [14:33:30]name=ofd_packets/00002657 [14:33:30]OFD Sender: To server: pG, [14:33:30]CommunicateWithHost lk.salyk.kg:30040 [14:33:30]ConnectInit lk.salyk.kg [14:33:30]written 0, free lines is 4095 [14:33:31]Connected sock=10 [14:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 DA 2E 07 01 E9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 39 4B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 0A 00 00 35 04 06 00 BE B0 F2 76 74 6E 6B C7 A2 47 8E 17 42 1E [14:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D8 6B 47 00 F6 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 0A 00 00 F4 03 04 00 9F F6 A9 66 B6 04 01 00 00 78 81 96 90 C1 20 D8 AC [14:33:31]CommunicateWithHost err = 0 [14:33:31]CheckOFDResponse [14:33:31]1017 (14) - 77093643461234 [14:33:31]1041 (16) - 0000000002094248 [14:33:31]1040 (4) - 2657 [14:33:31]1012 (4) - 31.07.2024 08:32 [14:33:31]1206 (1) - 0 [14:33:31]OFD Sender: Remove packet 2657 [14:33:31]ProducePacketName [14:33:31]name=ofd_packets/00002657 [14:33:31]NVStorageDeleteData [14:33:31]Write to MH i2c: 01 00 00 EE 06 F4 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 00 0D 08 [14:33:31]RasterBufferAndPrint [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]line [14:33:31]written 0, free lines is 3334 [14:33:31]MH_Cut [14:33:31]Write to MH i2c: D1 01 00 F5 06 01 CD [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: D1 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: D1 01 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: D1 01 00 F5 06 00 CC [14:33:31]Write to MH i2c: 01 00 00 F6 06 FC [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]OFD Sender: No OFD packet to send [14:33:31]*** Cut start [14:33:31]*** Partial cut [14:33:31]*** CUTSNS_PIN = 1 [14:33:32]*** CUTSNS_PIN = 0 [14:33:32]*** Brake cut motor [14:33:32]Read from MH i2c: 01 [14:33:32]MH_I2C_Read... [14:33:32]*** Stop cut motor [14:33:32]*** Cut end [14:33:32]Read from MH i2c: 01 07 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [14:33:32]process_action close_receipt done [14:33:32]requested_data is exist [14:33:32]produce_requested_data [14:33:32]requested_item fm.sn is exist - process it [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 11 00 00 [14:33:32]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C7 [14:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:33:32]wFMCommunicate OK [14:33:32]requested_item fd.num is exist - process it [14:33:32]SAM_PROTO_GetFieldsCounters [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 13 00 00 [14:33:32]Write to MH i2c: E2 08 00 F8 06 80 13 00 00 00 00 00 00 7A [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 62 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 62 00 F8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 61 0A 00 00 0E 04 04 00 11 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 6A [14:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 61 0A 00 00 0E 04 04 00 11 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 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetFieldsCounters done [14:33:32]requested_item shift.num is exist - process it [14:33:32]requested_item shift.opened is exist - process it [14:33:32]req_shift_opened [14:33:32]FM_GetShiftState [14:33:32]SAM_PROTO_GetShiftState [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 13 01 00 [14:33:32]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 49 [14:33:32]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetShiftState done [14:33:32]FM_GetShiftState done [14:33:32]req_shift_opened done [14:33:32]requested_item shift.open_date is exist - process it [14:33:32]req_shift_open_date [14:33:32]req_shift_open_date done [14:33:32]produce_requested_data done [14:33:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2657,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:33:32]process_action_free close_receipt [14:33:32]json_value_free [14:33:32]json_value_free done [14:33:32]process_json_proto returns [14:33:32]Send response to host [14:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2657,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:33:32]free response buf [14:33:32]execute_script done [14:33:32]execute_script returns [14:33:32]free content buf [14:33:32]Sock 8.Close socket [14:33:32]Sock 8.Thread stoped [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]accept exits with 9 [14:37:56]New connection [14:37:56]New thread 3066781028 created [14:37:56]Thread 3066637668 joined [14:37:56]Waiting for new connection... [14:37:56] Sock 9.Parse request [14:37:56]Sock 9.Check first char [14:37:56]Sock 9.First char is OK [14:37:56]request: POST /json_proto HTTP/1.0 [14:37:56]Method: POST [14:37:56]URL: /json_proto [14:37:56]Method is POST - this is cgi request [14:37:56]url: /json_proto [14:37:56]query_string will be loaded in cgi processing [14:37:56]execute_cgi json_proto POST (null) [14:37:56]execute_cgi path=json_proto method=POST [14:37:56]POST find Content-Length [14:37:56]Host: 172.17.45.132:8080 [14:37:56]Content-Length: 625 [14:37:56]Content-Type: application/json [14:37:56] [14:37:56]POST finish read [14:37:56]Found Content-Length = 625 [14:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126822", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:56]execute_script... [14:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126822", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:56]POST & json_proto [14:37:56]process_json_proto [14:37:56]json parsed OK: [14:37:56]protocol is kg_v1.0 [14:37:56]action value=close_receipt [14:37:56]process_action close_receipt [14:37:56]cmd_close_receipt [14:37:56]MH_GetDate [14:37:56]Write to MH i2c: F0 00 00 FA 06 EF [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: F0 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: F0 09 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: F0 09 00 FA 06 00 45 4C AA 66 E3 0B 90 66 7D [14:37:56]GetLastDocTimeStamp 1722436409 [14:37:56]current date 1722436677 [14:37:56]FM_GetShiftState [14:37:56]SAM_PROTO_GetShiftState [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 13 01 00 [14:37:56]Write to MH i2c: E2 08 00 FB 06 80 13 01 00 00 00 00 00 7E [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 0E 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 0E 00 FB 06 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 4B [14:37:56]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:37:56]wFMCommunicate OK [14:37:56]SAM_PROTO_GetShiftState done [14:37:56]FM_GetShiftState done [14:37:56]opened in 1722384689 [14:37:56]opened+sec_in_day 1722471089 [14:37:56]quantity*price = 6000 [14:37:56]sum+1 = 6001 [14:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 111 31.07.2024 14:37 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2658 ФПД: 245085754749650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2658&fm=245085754749650&tin=02508201610067®Number=0000000000189667&sum=6000 0 [14:37:57]StoreToDocumentArchive [14:37:57]shift 17 fd 2658 [14:37:57]save to /storage/0017/doc_00002658 [14:37:57]save last doc name /storage/0017/doc_00002658 to /storage/kkm_last_doc_name [14:37:57]save OK [14:37:57]Clear old archive folders... [14:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:37:57]tlvbuf is 00E67270 [14:37:57]SAM_PROTO_ClearQueue [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 09 00 00 [14:37:57]Write to MH i2c: E2 08 00 08 07 80 09 00 00 00 00 00 00 81 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 03 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [14:37:57]RAPDU: 90 00 [14:37:57]wFMCommunicate OK [14:37:57]SAM_PROTO_ClearQueue done [14:37:57]KKMCreateOFDPacket [14:37:57]OFDProtocolAddRootSTLVToBuf [14:37:57]FM_MakeSignedData [14:37:57]FM_MakeSignedData [14:37:57]SAM_PROTO_SignData [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 0D 01 02 [14:37:57]Write to MH i2c: E2 08 00 09 07 80 0D 01 02 00 00 00 00 89 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 03 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [14:37:57]RAPDU: 90 00 [14:37:57]wFMCommunicate OK [14:37:57]wFMCommunicate request_size=255 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 6F 00 00 00 F4 03 04 00 45 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [14:37:57]Write to MH i2c: E2 02 01 0A 07 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 6F 00 00 00 F4 03 04 00 45 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 B1 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]wFMCommunicate request_size=27 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 62 0A 00 00 35 04 06 00 DE E7 79 59 F2 D2 [14:37:58]Write to MH i2c: E2 1E 00 0B 07 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 62 0A 00 00 35 04 06 00 DE E7 79 59 F2 D2 00 00 A8 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 0D 03 02 [14:37:58]Write to MH i2c: E2 08 00 0C 07 80 0D 03 02 00 00 00 00 8E [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 0B 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 0B 00 0C 07 00 F7 22 41 F1 C8 E4 26 99 90 00 45 [14:37:58]RAPDU: F7 22 41 F1 C8 E4 26 99 90 00 [14:37:58]wFMCommunicate OK [14:37:58]SAM_PROTO_SignData done [14:37:58]FM_MakeSignedData done [14:37:58]CreateOFDProtocolMessage [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 11 00 00 [14:37:58]Write to MH i2c: E2 08 00 0D 07 80 11 00 00 00 00 00 00 8E [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 0D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DE [14:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:37:58]wFMCommunicate OK [14:37:58]CreateOFDProtocolMessage done [14:37:58]OFDSenderStorePacket 2658 [14:37:58]StoreOFDPacket docnum=2658 [14:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 AE 52 18 01 88 AC 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 6F 00 00 00 F4 03 04 00 45 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 0A 00 00 35 04 06 00 DE E7 79 59 F2 D2 F7 22 41 F1 C8 E4 26 99 [14:37:58]CheckFolder [14:37:58]dirname=/storage/ofd_packets [14:37:58]CheckFolder done [14:37:58]ProducePacketName [14:37:58]name=ofd_packets/00002658 [14:37:58]NVStorageSaveData ofd_packets/00002658 [14:37:58]File name is /storage/ofd_packets/00002658 [14:37:58]Write 318 bytes [14:37:58]NVStorageSaveData done [14:37:58]OFDSenderStorePacket done [14:37:58]KKMCreateOFDPacket done [14:37:58]NVStorageSaveData kkm_last_timestamp [14:37:58]File name is /storage/kkm_last_timestamp [14:37:58]Write 4 bytes [14:37:58]NVStorageSaveData done [14:37:58]ExternCall_PrintAddStr [14:37:58]wPrintStart [14:37:58]Write to MH i2c: 01 00 00 0E 07 15 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 07 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [14:37:58]RasterBufferAndPrint [14:37:58]line Счет N : (3)126822 [14:37:58]line ИНН: 02508201610067 [14:37:58]line Контрольно-Кассовый Чек [14:37:58]line ПРОДАЖА [14:37:58]line Товар: 4700003610560 [14:37:58]line Вода Энесай 5л. [14:37:58]line 1.000 * 60.00 [14:37:58]line = 60.00 [14:37:58]line НДС 12% НСП 1% [14:37:58]line > о реализуемом товаре [14:37:58]line ИТОГО: 60.00 [14:37:58]line НСП 1% : 0.53 [14:37:58]line НДС 12% : 6.37 [14:37:58]line Наличными: 60.00 [14:37:58]line Безнал.: 0.00 [14:37:58]line Место: АЗС № 127 "Партнер Нефть" [14:37:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:37:58]line СНО: Общий режим [14:37:58]line Чек 111 31.07.2024 14:37 [14:37:58]line Смена: 17 ФФД: 1.0 [14:37:58]line ЗНМ: 0300000161 [14:37:58]line РНМ: 0000000000189667 [14:37:58]line Версия ККМ: v1.0 [14:37:58]line ФМ: 0000000002094248 [14:37:58]line ФД: 2658 [14:37:58]line ФПД: 245085754749650 [14:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2658&fm=245085754749650&tin=02508201610067®Number=0000000000189667&sum=6000 [14:37:58]line 0 [14:37:58]OFD Sender: Processing packet 2658 [packets to send 1, broken 0] [14:37:58]ProducePacketName [14:37:58]name=ofd_packets/00002658 [14:37:58]OFD Sender: To server: pG, [14:37:58]CommunicateWithHost lk.salyk.kg:30040 [14:37:58]ConnectInit lk.salyk.kg [14:37:58]written 0, free lines is 4095 [14:37:58]Connected sock=10 [14:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 AE 52 18 01 88 AC 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 6F 00 00 00 F4 03 04 00 45 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 0A 00 00 35 04 06 00 DE E7 79 59 F2 D2 F7 22 41 F1 C8 E4 26 99 [14:37:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E1 D0 47 00 7F 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 0A 00 00 F4 03 04 00 AB F7 A9 66 B6 04 01 00 00 72 C4 50 BE 6A 56 CE 31 [14:37:58]CommunicateWithHost err = 0 [14:37:58]CheckOFDResponse [14:37:58]1017 (14) - 77093643461234 [14:37:58]1041 (16) - 0000000002094248 [14:37:58]1040 (4) - 2658 [14:37:58]1012 (4) - 31.07.2024 08:36 [14:37:58]1206 (1) - 0 [14:37:58]OFD Sender: Remove packet 2658 [14:37:58]ProducePacketName [14:37:58]name=ofd_packets/00002658 [14:37:58]NVStorageDeleteData [14:37:59]Write to MH i2c: 01 00 00 36 07 3D [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 1C 0D 6D [14:37:59]RasterBufferAndPrint [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]written 0, free lines is 3361 [14:37:59]MH_Cut [14:37:59]Write to MH i2c: D1 01 00 3D 07 01 16 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 01 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 01 00 3D 07 00 15 [14:37:59]Write to MH i2c: 01 00 00 3E 07 45 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]OFD Sender: No OFD packet to send [14:37:59]*** Cut start [14:37:59]*** Partial cut [14:37:59]*** CUTSNS_PIN = 1 [14:37:59]*** CUTSNS_PIN = 0 [14:37:59]*** Brake cut motor [14:38:00]Read from MH i2c: 01 [14:38:00]MH_I2C_Read... [14:38:00]*** Stop cut motor [14:38:00]*** Cut end [14:38:00]Read from MH i2c: 01 07 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [14:38:00]process_action close_receipt done [14:38:00]requested_data is exist [14:38:00]produce_requested_data [14:38:00]requested_item fm.sn is exist - process it [14:38:00]wFMCommunicate request_size=4 [14:38:00]MH_SAM_APDU [14:38:00]CAPDU: 80 11 00 00 [14:38:00]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:00]Read from MH i2c: E2 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 17 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [14:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:38:00]wFMCommunicate OK [14:38:00]requested_item fd.num is exist - process it [14:38:00]SAM_PROTO_GetFieldsCounters [14:38:00]wFMCommunicate request_size=4 [14:38:00]MH_SAM_APDU [14:38:00]CAPDU: 80 13 00 00 [14:38:00]Write to MH i2c: E2 08 00 40 07 80 13 00 00 00 00 00 00 C3 [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:00]Read from MH i2c: E2 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 62 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 62 00 40 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 62 0A 00 00 0E 04 04 00 11 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 B7 [14:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 62 0A 00 00 0E 04 04 00 11 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 [14:38:00]wFMCommunicate OK [14:38:00]SAM_PROTO_GetFieldsCounters done [14:38:00]requested_item shift.num is exist - process it [14:38:00]requested_item shift.opened is exist - process it [14:38:00]req_shift_opened [14:38:00]FM_GetShiftState [14:38:00]SAM_PROTO_GetShiftState [14:38:00]wFMCommunicate request_size=4 [14:38:00]MH_SAM_APDU [14:38:00]CAPDU: 80 13 01 00 [14:38:00]Write to MH i2c: E2 08 00 41 07 80 13 01 00 00 00 00 00 C5 [14:38:00]Write i2c OK [14:38:00]MH_I2C_Read... [14:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:00]Read from MH i2c: E2 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 0E 00 [14:38:00]MH_I2C_Read... [14:38:00]Read from MH i2c: E2 0E 00 41 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 92 [14:38:00]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:38:00]wFMCommunicate OK [14:38:00]SAM_PROTO_GetShiftState done [14:38:00]FM_GetShiftState done [14:38:00]req_shift_opened done [14:38:00]requested_item shift.open_date is exist - process it [14:38:00]req_shift_open_date [14:38:00]req_shift_open_date done [14:38:00]produce_requested_data done [14:38:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2658,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:38:00]process_action_free close_receipt [14:38:00]json_value_free [14:38:00]json_value_free done [14:38:00]process_json_proto returns [14:38:00]Send response to host [14:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2658,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:38:00]free response buf [14:38:00]execute_script done [14:38:00]execute_script returns [14:38:00]free content buf [14:38:00]Sock 9.Close socket [14:38:00]Sock 9.Thread stoped [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:30]accept exits with 8 [14:39:30]New connection [14:39:30]New thread 3066637668 created [14:39:30]Thread 3066781028 joined [14:39:30]Waiting for new connection... [14:39:30] Sock 8.Parse request [14:39:30]Sock 8.Check first char [14:39:30]Sock 8.First char is OK [14:39:30]request: POST /json_proto HTTP/1.0 [14:39:30]Method: POST [14:39:30]URL: /json_proto [14:39:30]Method is POST - this is cgi request [14:39:30]url: /json_proto [14:39:30]query_string will be loaded in cgi processing [14:39:30]execute_cgi json_proto POST (null) [14:39:30]execute_cgi path=json_proto method=POST [14:39:30]POST find Content-Length [14:39:30]Host: 172.17.45.132:8080 [14:39:30]Content-Length: 898 [14:39:30]Content-Type: application/json [14:39:30] [14:39:30]POST finish read [14:39:30]Found Content-Length = 898 [14:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126823", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:30]execute_script... [14:39:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126823", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:30]POST & json_proto [14:39:30]process_json_proto [14:39:30]json parsed OK: [14:39:30]protocol is kg_v1.0 [14:39:30]action value=close_receipt [14:39:30]process_action close_receipt [14:39:30]cmd_close_receipt [14:39:30]MH_GetDate [14:39:30]Write to MH i2c: F0 00 00 42 07 38 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 09 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: F0 09 00 42 07 00 A3 4C AA 66 E3 0B 90 66 24 [14:39:30]GetLastDocTimeStamp 1722436677 [14:39:30]current date 1722436771 [14:39:30]FM_GetShiftState [14:39:30]SAM_PROTO_GetShiftState [14:39:30]wFMCommunicate request_size=4 [14:39:30]MH_SAM_APDU [14:39:30]CAPDU: 80 13 01 00 [14:39:30]Write to MH i2c: E2 08 00 43 07 80 13 01 00 00 00 00 00 C7 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:30]Read from MH i2c: E2 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: E2 0E 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: E2 0E 00 43 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 94 [14:39:30]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:39:30]wFMCommunicate OK [14:39:30]SAM_PROTO_GetShiftState done [14:39:30]FM_GetShiftState done [14:39:30]opened in 1722384689 [14:39:30]opened+sec_in_day 1722471089 [14:39:30]quantity*price = 5000 [14:39:30]sum+1 = 5001 [14:39:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 112 31.07.2024 14:39 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2659 ФПД: 212670831297969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143931&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2659&fm=212670831297969&tin=02508201610067®Number=0000000000189667&sum=16500 0 [14:39:32]StoreToDocumentArchive [14:39:32]shift 17 fd 2659 [14:39:32]save to /storage/0017/doc_00002659 [14:39:32]save last doc name /storage/0017/doc_00002659 to /storage/kkm_last_doc_name [14:39:32]save OK [14:39:32]Clear old archive folders... [14:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=382 [14:39:32]tlvbuf is 00F075F0 [14:39:32]SAM_PROTO_ClearQueue [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 09 00 00 [14:39:32]Write to MH i2c: E2 08 00 50 07 80 09 00 00 00 00 00 00 C9 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [14:39:32]RAPDU: 90 00 [14:39:32]wFMCommunicate OK [14:39:32]SAM_PROTO_ClearQueue done [14:39:32]KKMCreateOFDPacket [14:39:32]OFDProtocolAddRootSTLVToBuf [14:39:32]FM_MakeSignedData [14:39:32]FM_MakeSignedData [14:39:32]SAM_PROTO_SignData [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 0D 01 02 [14:39:32]Write to MH i2c: E2 08 00 51 07 80 0D 01 02 00 00 00 00 D1 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [14:39:32]RAPDU: 90 00 [14:39:32]wFMCommunicate OK [14:39:32]wFMCommunicate request_size=255 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 [14:39:32]Write to MH i2c: E2 02 01 52 07 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 04 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [14:39:32]RAPDU: 90 00 [14:39:32]wFMCommunicate OK [14:39:32]wFMCommunicate request_size=141 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 A3 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 0A 00 00 35 04 06 00 C1 6C 49 5A 85 B1 [14:39:32]Write to MH i2c: E2 90 00 53 07 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 A3 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 0A 00 00 35 04 06 00 C1 6C 49 5A 85 B1 00 00 9F [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [14:39:32]RAPDU: 90 00 [14:39:32]wFMCommunicate OK [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 0D 03 02 [14:39:32]Write to MH i2c: E2 08 00 54 07 80 0D 03 02 00 00 00 00 D6 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0B 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 0B 00 54 07 00 AA 22 85 C9 8F 71 EF 9E 90 00 7E [14:39:32]RAPDU: AA 22 85 C9 8F 71 EF 9E 90 00 [14:39:32]wFMCommunicate OK [14:39:32]SAM_PROTO_SignData done [14:39:32]FM_MakeSignedData done [14:39:32]CreateOFDProtocolMessage [14:39:32]wFMCommunicate request_size=4 [14:39:32]MH_SAM_APDU [14:39:32]CAPDU: 80 11 00 00 [14:39:32]Write to MH i2c: E2 08 00 55 07 80 11 00 00 00 00 00 00 D6 [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:32]Read from MH i2c: E2 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 17 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: E2 17 00 55 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [14:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:39:32]wFMCommunicate OK [14:39:32]CreateOFDProtocolMessage done [14:39:32]OFDSenderStorePacket 2659 [14:39:32]StoreOFDPacket docnum=2659 [14:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 92 01 00 00 F2 73 8A 01 41 B2 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 A3 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 0A 00 00 35 04 06 00 C1 6C 49 5A 85 B1 AA 22 85 C9 8F 71 EF 9E [14:39:32]CheckFolder [14:39:32]dirname=/storage/ofd_packets [14:39:32]CheckFolder done [14:39:32]ProducePacketName [14:39:32]name=ofd_packets/00002659 [14:39:32]NVStorageSaveData ofd_packets/00002659 [14:39:32]File name is /storage/ofd_packets/00002659 [14:39:32]Write 432 bytes [14:39:32]NVStorageSaveData done [14:39:32]OFDSenderStorePacket done [14:39:32]KKMCreateOFDPacket done [14:39:32]NVStorageSaveData kkm_last_timestamp [14:39:32]File name is /storage/kkm_last_timestamp [14:39:32]Write 4 bytes [14:39:32]NVStorageSaveData done [14:39:32]ExternCall_PrintAddStr [14:39:32]wPrintStart [14:39:32]Write to MH i2c: 01 00 00 56 07 5D [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 FF 0F 72 [14:39:32]RasterBufferAndPrint [14:39:32]line Счет N : (3)126823 [14:39:32]line ИНН: 02508201610067 [14:39:32]line Контрольно-Кассовый Чек [14:39:32]line ПРОДАЖА [14:39:32]line Товар: 4700000160051 [14:39:32]line Вода Ыссык Ата 1л [14:39:32]line 1.000 * 50.00 [14:39:32]line = 50.00 [14:39:32]line НДС 12% НСП 1% [14:39:32]line > о реализуемом товаре [14:39:32]line Товар: 2000036210013 [14:39:32]line Кофе Капучино (GABB TRADE) [14:39:32]line 1.000 * 115.00 [14:39:32]line = 115.00 [14:39:32]line НДС 12% НСП 1% [14:39:32]line > о реализуемом товаре [14:39:32]line ИТОГО: 165.00 [14:39:32]line НСП 1% : 1.46 [14:39:32]line НДС 12% : 17.52 [14:39:32]line Наличными: 165.00 [14:39:32]line Безнал.: 0.00 [14:39:32]line Место: АЗС № 127 "Партнер Нефть" [14:39:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:39:32]line СНО: Общий режим [14:39:32]line Чек 112 31.07.2024 14:39 [14:39:32]line Смена: 17 ФФД: 1.0 [14:39:32]line ЗНМ: 0300000161 [14:39:32]line РНМ: 0000000000189667 [14:39:32]line Версия ККМ: v1.0 [14:39:32]line ФМ: 0000000002094248 [14:39:32]line ФД: 2659 [14:39:32]line ФПД: 212670831297969 [14:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T143931&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2659&fm=212670831297969&tin=02508201610067®Number=0000000000189667&sum=16500 [14:39:32]line 0 [14:39:32]OFD Sender: Processing packet 2659 [packets to send 1, broken 0] [14:39:32]ProducePacketName [14:39:32]name=ofd_packets/00002659 [14:39:32]OFD Sender: To server: pG, [14:39:32]CommunicateWithHost lk.salyk.kg:30040 [14:39:32]ConnectInit lk.salyk.kg [14:39:32]written 0, free lines is 4095 [14:39:33]Connected sock=10 [14:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 92 01 00 00 F2 73 8A 01 41 B2 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 A3 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 0A 00 00 35 04 06 00 C1 6C 49 5A 85 B1 AA 22 85 C9 8F 71 EF 9E [14:39:33]Write to MH i2c: 01 00 00 84 07 8B [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 D4 0C 72 [14:39:33]RasterBufferAndPrint [14:39:33]line [14:39:33]line [14:39:33]line [14:39:33]line [14:39:33]line [14:39:33]written 0, free lines is 3290 [14:39:33]MH_Cut [14:39:33]Write to MH i2c: D1 01 00 8B 07 01 64 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: D1 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: D1 01 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: D1 01 00 8B 07 00 63 [14:39:33]Write to MH i2c: 01 00 00 8C 07 93 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7A BD 47 00 EE B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 0A 00 00 F4 03 04 00 09 F8 A9 66 B6 04 01 00 00 6A 2E 74 7A 54 9E ED E9 [14:39:33]CommunicateWithHost err = 0 [14:39:33]CheckOFDResponse [14:39:33]1017 (14) - 77093643461234 [14:39:33]1041 (16) - 0000000002094248 [14:39:33]1040 (4) - 2659 [14:39:33]1012 (4) - 31.07.2024 08:38 [14:39:33]1206 (1) - 0 [14:39:33]OFD Sender: Remove packet 2659 [14:39:33]ProducePacketName [14:39:33]name=ofd_packets/00002659 [14:39:33]NVStorageDeleteData [14:39:34]OFD Sender: No OFD packet to send [14:39:34]*** Cut start [14:39:34]*** Partial cut [14:39:34]*** CUTSNS_PIN = 1 [14:39:34]*** CUTSNS_PIN = 0 [14:39:34]*** Brake cut motor [14:39:34]Read from MH i2c: 01 [14:39:34]MH_I2C_Read... [14:39:34]*** Stop cut motor [14:39:34]*** Cut end [14:39:34]Read from MH i2c: 01 07 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [14:39:34]process_action close_receipt done [14:39:34]requested_data is exist [14:39:34]produce_requested_data [14:39:34]requested_item fm.sn is exist - process it [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 11 00 00 [14:39:34]Write to MH i2c: E2 08 00 8D 07 80 11 00 00 00 00 00 00 0E [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 8D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5E [14:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:39:34]wFMCommunicate OK [14:39:34]requested_item fd.num is exist - process it [14:39:34]SAM_PROTO_GetFieldsCounters [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 13 00 00 [14:39:34]Write to MH i2c: E2 08 00 8E 07 80 13 00 00 00 00 00 00 11 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:35]Read from MH i2c: E2 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 62 00 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 62 00 8E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 0A 00 00 0E 04 04 00 11 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 09 [14:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 0A 00 00 0E 04 04 00 11 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 [14:39:35]wFMCommunicate OK [14:39:35]SAM_PROTO_GetFieldsCounters done [14:39:35]requested_item shift.num is exist - process it [14:39:35]requested_item shift.opened is exist - process it [14:39:35]req_shift_opened [14:39:35]FM_GetShiftState [14:39:35]SAM_PROTO_GetShiftState [14:39:35]wFMCommunicate request_size=4 [14:39:35]MH_SAM_APDU [14:39:35]CAPDU: 80 13 01 00 [14:39:35]Write to MH i2c: E2 08 00 8F 07 80 13 01 00 00 00 00 00 13 [14:39:35]Write i2c OK [14:39:35]MH_I2C_Read... [14:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:35]Read from MH i2c: E2 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 0E 00 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 0E 00 8F 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E0 [14:39:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:39:35]wFMCommunicate OK [14:39:35]SAM_PROTO_GetShiftState done [14:39:35]FM_GetShiftState done [14:39:35]req_shift_opened done [14:39:35]requested_item shift.open_date is exist - process it [14:39:35]req_shift_open_date [14:39:35]req_shift_open_date done [14:39:35]produce_requested_data done [14:39:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2659,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:39:35]process_action_free close_receipt [14:39:35]json_value_free [14:39:35]json_value_free done [14:39:35]process_json_proto returns [14:39:35]Send response to host [14:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2659,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:39:35]free response buf [14:39:35]execute_script done [14:39:35]execute_script returns [14:39:35]free content buf [14:39:35]Sock 8.Close socket [14:39:35]Sock 8.Thread stoped [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:29]accept exits with 9 [14:40:29]New connection [14:40:29]New thread 3066781028 created [14:40:29]Thread 3066637668 joined [14:40:29]Waiting for new connection... [14:40:29] Sock 9.Parse request [14:40:29]Sock 9.Check first char [14:40:29]Sock 9.First char is OK [14:40:29]request: POST /json_proto HTTP/1.0 [14:40:29]Method: POST [14:40:29]URL: /json_proto [14:40:29]Method is POST - this is cgi request [14:40:29]url: /json_proto [14:40:29]query_string will be loaded in cgi processing [14:40:29]execute_cgi json_proto POST (null) [14:40:29]execute_cgi path=json_proto method=POST [14:40:29]POST find Content-Length [14:40:29]Host: 172.17.45.132:8080 [14:40:29]Content-Length: 682 [14:40:29]Content-Type: application/json [14:40:29] [14:40:29]POST finish read [14:40:29]Found Content-Length = 682 [14:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:29]execute_script... [14:40: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)611196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:29]POST & json_proto [14:40:29]process_json_proto [14:40:29]json parsed OK: [14:40:29]protocol is kg_v1.0 [14:40:29]action value=close_receipt [14:40:29]process_action close_receipt [14:40:29]cmd_close_receipt [14:40:29]MH_GetDate [14:40:29]Write to MH i2c: F0 00 00 90 07 86 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: F0 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: F0 09 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: F0 09 00 90 07 00 DD 4C AA 66 E3 0B 90 66 AC [14:40:29]GetLastDocTimeStamp 1722436771 [14:40:29]current date 1722436829 [14:40:29]FM_GetShiftState [14:40:29]SAM_PROTO_GetShiftState [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 13 01 00 [14:40:29]Write to MH i2c: E2 08 00 91 07 80 13 01 00 00 00 00 00 15 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 91 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E2 [14:40:29]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_GetShiftState done [14:40:29]FM_GetShiftState done [14:40:29]opened in 1722384689 [14:40:29]opened+sec_in_day 1722471089 [14:40:29]quantity*price = 200010 [14:40:29]sum+1 = 200011 [14:40:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 113 31.07.2024 14:40 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2660 ФПД: 175033590222835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144029&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2660&fm=175033590222835&tin=02508201610067®Number=0000000000189667&sum=200000 [14:40:30]StoreToDocumentArchive [14:40:30]shift 17 fd 2660 [14:40:30]save to /storage/0017/doc_00002660 [14:40:30]save last doc name /storage/0017/doc_00002660 to /storage/kkm_last_doc_name [14:40:30]save OK [14:40:30]Clear old archive folders... [14:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:30]tlvbuf is 00EFE040 [14:40:30]SAM_PROTO_ClearQueue [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 09 00 00 [14:40:30]Write to MH i2c: E2 08 00 9E 07 80 09 00 00 00 00 00 00 17 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [14:40:30]RAPDU: 90 00 [14:40:30]wFMCommunicate OK [14:40:30]SAM_PROTO_ClearQueue done [14:40:30]KKMCreateOFDPacket [14:40:30]OFDProtocolAddRootSTLVToBuf [14:40:30]FM_MakeSignedData [14:40:30]FM_MakeSignedData [14:40:30]SAM_PROTO_SignData [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 0D 01 02 [14:40:30]Write to MH i2c: E2 08 00 9F 07 80 0D 01 02 00 00 00 00 1F [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [14:40:30]RAPDU: 90 00 [14:40:30]wFMCommunicate OK [14:40:30]wFMCommunicate request_size=255 [14:40:30]MH_SAM_APDU [14:40: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 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 0A 00 00 35 04 06 00 9F [14:40:30]Write to MH i2c: E2 02 01 A0 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 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 0A 00 00 35 04 06 00 9F 00 00 70 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [14:40:30]RAPDU: 90 00 [14:40:30]wFMCommunicate OK [14:40:30]wFMCommunicate request_size=10 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 0D 02 02 05 31 2E F8 0F F3 [14:40:30]Write to MH i2c: E2 0D 00 A1 07 80 0D 02 02 05 00 31 2E F8 0F F3 00 00 85 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [14:40:30]RAPDU: 90 00 [14:40:30]wFMCommunicate OK [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 0D 03 02 [14:40:30]Write to MH i2c: E2 08 00 A2 07 80 0D 03 02 00 00 00 00 24 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0B 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0B 00 A2 07 00 A7 83 14 FE 00 5C DC 9F 90 00 38 [14:40:30]RAPDU: A7 83 14 FE 00 5C DC 9F 90 00 [14:40:30]wFMCommunicate OK [14:40:30]SAM_PROTO_SignData done [14:40:30]FM_MakeSignedData done [14:40:30]CreateOFDProtocolMessage [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 11 00 00 [14:40:30]Write to MH i2c: E2 08 00 A3 07 80 11 00 00 00 00 00 00 24 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 17 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 17 00 A3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 74 [14:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:40:30]wFMCommunicate OK [14:40:30]CreateOFDProtocolMessage done [14:40:30]OFDSenderStorePacket 2660 [14:40:30]StoreOFDPacket docnum=2660 [14:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 39 1C 07 01 DF F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 0A 00 00 35 04 06 00 9F 31 2E F8 0F F3 A7 83 14 FE 00 5C DC 9F [14:40:30]CheckFolder [14:40:30]dirname=/storage/ofd_packets [14:40:30]CheckFolder done [14:40:30]ProducePacketName [14:40:30]name=ofd_packets/00002660 [14:40:30]NVStorageSaveData ofd_packets/00002660 [14:40:30]File name is /storage/ofd_packets/00002660 [14:40:30]Write 301 bytes [14:40:30]NVStorageSaveData done [14:40:30]OFDSenderStorePacket done [14:40:30]KKMCreateOFDPacket done [14:40:30]NVStorageSaveData kkm_last_timestamp [14:40:30]File name is /storage/kkm_last_timestamp [14:40:30]Write 4 bytes [14:40:30]NVStorageSaveData done [14:40:30]ExternCall_PrintAddStr [14:40:30]wPrintStart [14:40:30]Write to MH i2c: 01 00 00 A4 07 AB [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 FF 0F C0 [14:40:30]RasterBufferAndPrint [14:40:30]line Счет N : (1)611196 [14:40:30]line ИНН: 02508201610067 [14:40:30]line Контрольно-Кассовый Чек [14:40:30]line ПРОДАЖА [14:40:30]line ТРК (МРК, ГНК) : 52 [14:40:30]line Товар: 2710124130 [14:40:30]line Аи-92-К-2 [14:40:30]line 29.500 * 67.80 [14:40:30]line = 2000.10 [14:40:30]line НДС 12% НСП 1% [14:40:30]line > о реализуемом товаре [14:40:30]line ОКРУГЛЕНИЕ: -0.10 [14:40:30]line ИТОГО: 2000.00 [14:40:30]line Внесено: 2000.00 [14:40:30]line СДАЧА: 0.00 [14:40:30]line НСП 1% : 17.70 [14:40:30]line НДС 12% : 212.40 [14:40:30]line Наличными: 2000.00 [14:40:30]line Безнал.: 0.00 [14:40:30]line Место: АЗС № 127 "Партнер Нефть" [14:40:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:40:30]line СНО: Общий режим [14:40:30]line Чек 113 31.07.2024 14:40 [14:40:30]line Смена: 17 ФФД: 1.0 [14:40:30]line ЗНМ: 0300000161 [14:40:30]line РНМ: 0000000000189667 [14:40:30]line Версия ККМ: v1.0 [14:40:30]line ФМ: 0000000002094248 [14:40:30]line ФД: 2660 [14:40:30]line ФПД: 175033590222835 [14:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144029&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2660&fm=175033590222835&tin=02508201610067®Number=0000000000189667&sum=200000 [14:40:31]OFD Sender: Processing packet 2660 [packets to send 1, broken 0] [14:40:31]ProducePacketName [14:40:31]name=ofd_packets/00002660 [14:40:31]OFD Sender: To server: pG, [14:40:31]CommunicateWithHost lk.salyk.kg:30040 [14:40:31]ConnectInit lk.salyk.kg [14:40:31]written 0, free lines is 4095 [14:40:31]Connected sock=8 [14:40:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 39 1C 07 01 DF F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD 4C AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 0A 00 00 35 04 06 00 9F 31 2E F8 0F F3 A7 83 14 FE 00 5C DC 9F [14:40:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 66 23 47 00 55 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 0A 00 00 F4 03 04 00 43 F8 A9 66 B6 04 01 00 00 7B 4E 17 42 D3 AE B0 D9 [14:40:31]CommunicateWithHost err = 0 [14:40:31]CheckOFDResponse [14:40:31]1017 (14) - 77093643461234 [14:40:31]1041 (16) - 0000000002094248 [14:40:31]1040 (4) - 2660 [14:40:31]1012 (4) - 31.07.2024 08:39 [14:40:31]1206 (1) - 0 [14:40:31]OFD Sender: Remove packet 2660 [14:40:31]ProducePacketName [14:40:31]name=ofd_packets/00002660 [14:40:31]NVStorageDeleteData [14:40:31]Write to MH i2c: 01 00 00 CF 07 D6 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: 01 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: 01 07 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: 01 07 00 CF 07 00 00 00 00 00 FC 0C E5 [14:40:31]RasterBufferAndPrint [14:40:31]line [14:40:31]line [14:40:31]line [14:40:31]line [14:40:31]line [14:40:31]written 0, free lines is 3330 [14:40:31]MH_Cut [14:40:31]Write to MH i2c: D1 01 00 D6 07 01 AF [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: D1 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: D1 01 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: D1 01 00 D6 07 00 AE [14:40:31]Write to MH i2c: 01 00 00 D7 07 DE [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:32]OFD Sender: No OFD packet to send [14:40:32]*** Cut start [14:40:32]*** Partial cut [14:40:32]*** CUTSNS_PIN = 1 [14:40:32]*** CUTSNS_PIN = 0 [14:40:32]*** Brake cut motor [14:40:33]Read from MH i2c: 01 [14:40:33]MH_I2C_Read... [14:40:33]*** Stop cut motor [14:40:33]*** Cut end [14:40:33]Read from MH i2c: 01 07 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [14:40:33]process_action close_receipt done [14:40:33]requested_data is exist [14:40:33]produce_requested_data [14:40:33]requested_item fm.sn is exist - process it [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 11 00 00 [14:40:33]Write to MH i2c: E2 08 00 D8 07 80 11 00 00 00 00 00 00 59 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 D8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A9 [14:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:40:33]wFMCommunicate OK [14:40:33]requested_item fd.num is exist - process it [14:40:33]SAM_PROTO_GetFieldsCounters [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 13 00 00 [14:40:33]Write to MH i2c: E2 08 00 D9 07 80 13 00 00 00 00 00 00 5C [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 62 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 62 00 D9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 0A 00 00 0E 04 04 00 11 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 58 [14:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 0A 00 00 0E 04 04 00 11 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 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_GetFieldsCounters done [14:40:33]requested_item shift.num is exist - process it [14:40:33]requested_item shift.opened is exist - process it [14:40:33]req_shift_opened [14:40:33]FM_GetShiftState [14:40:33]SAM_PROTO_GetShiftState [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 13 01 00 [14:40:33]Write to MH i2c: E2 08 00 DA 07 80 13 01 00 00 00 00 00 5E [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0E 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0E 00 DA 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 2B [14:40:33]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_GetShiftState done [14:40:33]FM_GetShiftState done [14:40:33]req_shift_opened done [14:40:33]requested_item shift.open_date is exist - process it [14:40:33]req_shift_open_date [14:40:33]req_shift_open_date done [14:40:33]produce_requested_data done [14:40:33]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2660,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:40:33]process_action_free close_receipt [14:40:33]json_value_free [14:40:33]json_value_free done [14:40:33]process_json_proto returns [14:40:33]Send response to host [14:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2660,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:40:33]free response buf [14:40:33]execute_script done [14:40:33]execute_script returns [14:40:33]free content buf [14:40:33]Sock 9.Close socket [14:40:33]Sock 9.Thread stoped [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [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:22]accept exits with 10 [14:46:22]New connection [14:46:22]New thread 3066637668 created [14:46:22]Thread 3066781028 joined [14:46:22]Waiting for new connection... [14:46:22] Sock 10.Parse request [14:46:22]Sock 10.Check first char [14:46:22]Sock 10.First char is OK [14:46:22]request: POST /json_proto HTTP/1.0 [14:46:22]Method: POST [14:46:22]URL: /json_proto [14:46:22]Method is POST - this is cgi request [14:46:22]url: /json_proto [14:46:22]query_string will be loaded in cgi processing [14:46:22]execute_cgi json_proto POST (null) [14:46:22]execute_cgi path=json_proto method=POST [14:46:22]POST find Content-Length [14:46:22]Host: 172.17.45.132:8080 [14:46:22]Content-Length: 930 [14:46:22]Content-Type: application/json [14:46:22] [14:46:22]POST finish read [14:46:22]Found Content-Length = 930 [14:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126824", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:22]execute_script... [14:46: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 : (3)126824", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:22]POST & json_proto [14:46:22]process_json_proto [14:46:22]json parsed OK: [14:46:22]protocol is kg_v1.0 [14:46:22]action value=close_receipt [14:46:22]process_action close_receipt [14:46:22]cmd_close_receipt [14:46:22]MH_GetDate [14:46:22]Write to MH i2c: F0 00 00 DB 07 D1 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: F0 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: F0 09 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: F0 09 00 DB 07 00 3F 4E AA 66 E3 0B 90 66 5B [14:46:22]GetLastDocTimeStamp 1722436829 [14:46:22]current date 1722437183 [14:46:22]FM_GetShiftState [14:46:22]SAM_PROTO_GetShiftState [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 13 01 00 [14:46:22]Write to MH i2c: E2 08 00 DC 07 80 13 01 00 00 00 00 00 60 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 DC 07 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 2D [14:46:22]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_GetShiftState done [14:46:22]FM_GetShiftState done [14:46:22]opened in 1722384689 [14:46:22]opened+sec_in_day 1722471089 [14:46:22]quantity*price = 7500 [14:46:22]sum+1 = 7501 [14:46:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 114 31.07.2024 14:46 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2661 ФПД: 17011530172015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144623&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2661&fm=17011530172015&tin=02508201610067®Number=0000000000189667&sum=22500 0 [14:46:23]StoreToDocumentArchive [14:46:23]shift 17 fd 2661 [14:46:23]save to /storage/0017/doc_00002661 [14:46:23]save last doc name /storage/0017/doc_00002661 to /storage/kkm_last_doc_name [14:46:23]save OK [14:46:23]Clear old archive folders... [14:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=394 [14:46:23]tlvbuf is 00F07DF0 [14:46:23]SAM_PROTO_ClearQueue [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 09 00 00 [14:46:23]Write to MH i2c: E2 08 00 E9 07 80 09 00 00 00 00 00 00 62 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [14:46:24]RAPDU: 90 00 [14:46:24]wFMCommunicate OK [14:46:24]SAM_PROTO_ClearQueue done [14:46:24]KKMCreateOFDPacket [14:46:24]OFDProtocolAddRootSTLVToBuf [14:46:24]FM_MakeSignedData [14:46:24]FM_MakeSignedData [14:46:24]SAM_PROTO_SignData [14:46:24]wFMCommunicate request_size=4 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 0D 01 02 [14:46:24]Write to MH i2c: E2 08 00 EA 07 80 0D 01 02 00 00 00 00 6A [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [14:46:24]RAPDU: 90 00 [14:46:24]wFMCommunicate OK [14:46:24]wFMCommunicate request_size=255 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F [14:46:24]Write to MH i2c: E2 02 01 EB 07 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 EA [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [14:46:24]RAPDU: 90 00 [14:46:24]wFMCommunicate OK [14:46:24]wFMCommunicate request_size=153 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3F 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 0A 00 00 35 04 06 00 0F 78 CE 36 86 6F [14:46:24]Write to MH i2c: E2 9C 00 EC 07 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3F 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 0A 00 00 35 04 06 00 0F 78 CE 36 86 6F 00 00 35 [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [14:46:24]RAPDU: 90 00 [14:46:24]wFMCommunicate OK [14:46:24]wFMCommunicate request_size=4 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 0D 03 02 [14:46:24]Write to MH i2c: E2 08 00 ED 07 80 0D 03 02 00 00 00 00 6F [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 0B 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 0B 00 ED 07 00 24 9A 21 5D 2E 61 B3 8A 90 00 78 [14:46:24]RAPDU: 24 9A 21 5D 2E 61 B3 8A 90 00 [14:46:24]wFMCommunicate OK [14:46:24]SAM_PROTO_SignData done [14:46:24]FM_MakeSignedData done [14:46:24]CreateOFDProtocolMessage [14:46:24]wFMCommunicate request_size=4 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 11 00 00 [14:46:24]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 17 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BF [14:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:46:24]wFMCommunicate OK [14:46:24]CreateOFDProtocolMessage done [14:46:24]OFDSenderStorePacket 2661 [14:46:24]StoreOFDPacket docnum=2661 [14:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 BA AB 96 01 C7 A0 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3F 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 0A 00 00 35 04 06 00 0F 78 CE 36 86 6F 24 9A 21 5D 2E 61 B3 8A [14:46:24]CheckFolder [14:46:24]dirname=/storage/ofd_packets [14:46:24]CheckFolder done [14:46:24]ProducePacketName [14:46:24]name=ofd_packets/00002661 [14:46:24]NVStorageSaveData ofd_packets/00002661 [14:46:24]File name is /storage/ofd_packets/00002661 [14:46:24]Write 444 bytes [14:46:24]NVStorageSaveData done [14:46:24]OFDSenderStorePacket done [14:46:24]KKMCreateOFDPacket done [14:46:24]NVStorageSaveData kkm_last_timestamp [14:46:24]File name is /storage/kkm_last_timestamp [14:46:24]Write 4 bytes [14:46:24]NVStorageSaveData done [14:46:24]ExternCall_PrintAddStr [14:46:24]wPrintStart [14:46:24]Write to MH i2c: 01 00 00 EF 07 F6 [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: 01 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: 01 07 00 [14:46:24]MH_I2C_Read... [14:46:24]OFD Sender: Processing packet 2661 [packets to send 1, broken 0] [14:46:24]ProducePacketName [14:46:24]name=ofd_packets/00002661 [14:46:24]OFD Sender: To server: pG, [14:46:24]CommunicateWithHost lk.salyk.kg:30040 [14:46:24]ConnectInit lk.salyk.kg [14:46:24]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [14:46:24]RasterBufferAndPrint [14:46:24]line Счет N : (3)126824 [14:46:24]line ИНН: 02508201610067 [14:46:24]line Контрольно-Кассовый Чек [14:46:24]line ПРОДАЖА [14:46:24]line Товар: 4700000310258 [14:46:24]line Напиток Лимонад Келечек 1л [14:46:24]line 1.000 * 75.00 [14:46:24]line = 75.00 [14:46:24]line НДС 12% НСП 1% [14:46:24]line > о реализуемом товаре [14:46:24]line Товар: 4640030091645 [14:46:24]line Сигареты ESSE Exchange M [14:46:24]line 1.000 * 150.00 [14:46:24]line = 150.00 [14:46:24]line НДС 12% НСП 1% [14:46:24]line > о реализуемом товаре [14:46:24]line ИТОГО: 225.00 [14:46:24]line НСП 1% : 1.99 [14:46:24]line НДС 12% : 23.89 [14:46:24]line Наличными: 225.00 [14:46:24]line Безнал.: 0.00 [14:46:24]line Место: АЗС № 127 "Партнер Нефть" [14:46:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:46:24]line СНО: Общий режим [14:46:24]line Чек 114 31.07.2024 14:46 [14:46:24]line Смена: 17 ФФД: 1.0 [14:46:24]line ЗНМ: 0300000161 [14:46:24]line РНМ: 0000000000189667 [14:46:24]line Версия ККМ: v1.0 [14:46:24]line ФМ: 0000000002094248 [14:46:24]line ФД: 2661 [14:46:24]line ФПД: 17011530172015 [14:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144623&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2661&fm=17011530172015&tin=02508201610067®Number=0000000000189667&sum=22500 [14:46:24]line 0 [14:46:24]written 0, free lines is 4095 [14:46:25]Connected sock=9 [14:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 BA AB 96 01 C7 A0 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 3F 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 0A 00 00 35 04 06 00 0F 78 CE 36 86 6F 24 9A 21 5D 2E 61 B3 8A [14:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6D 71 47 00 DF 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 32 30 39 34 32 34 38 10 04 04 00 65 0A 00 00 F4 03 04 00 A5 F9 A9 66 B6 04 01 00 00 5D 26 BC 1A 99 B7 DB 91 [14:46:25]CommunicateWithHost err = 0 [14:46:25]CheckOFDResponse [14:46:25]1017 (14) - 77093643461234 [14:46:25]1041 (16) - 0000000002094248 [14:46:25]1040 (4) - 2661 [14:46:25]1012 (4) - 31.07.2024 08:45 [14:46:25]1206 (1) - 0 [14:46:25]OFD Sender: Remove packet 2661 [14:46:25]ProducePacketName [14:46:25]name=ofd_packets/00002661 [14:46:25]NVStorageDeleteData [14:46:25]Write to MH i2c: 01 00 00 1D 08 25 [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: 01 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: 01 07 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: 01 07 00 1D 08 00 00 00 00 00 CD 0C 05 [14:46:25]RasterBufferAndPrint [14:46:25]line [14:46:25]line [14:46:25]line [14:46:25]line [14:46:25]line [14:46:25]written 0, free lines is 3286 [14:46:25]MH_Cut [14:46:25]Write to MH i2c: D1 01 00 24 08 01 FE [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: D1 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: D1 01 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: D1 01 00 24 08 00 FD [14:46:25]Write to MH i2c: 01 00 00 25 08 2D [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]OFD Sender: No OFD packet to send [14:46:26]*** Cut start [14:46:26]*** Partial cut [14:46:26]*** CUTSNS_PIN = 1 [14:46:26]*** CUTSNS_PIN = 0 [14:46:26]*** Brake cut motor [14:46:26]Read from MH i2c: 01 [14:46:26]MH_I2C_Read... [14:46:26]*** Stop cut motor [14:46:26]*** Cut end [14:46:26]Read from MH i2c: 01 07 00 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [14:46:26]process_action close_receipt done [14:46:26]requested_data is exist [14:46:26]produce_requested_data [14:46:26]requested_item fm.sn is exist - process it [14:46:26]wFMCommunicate request_size=4 [14:46:26]MH_SAM_APDU [14:46:26]CAPDU: 80 11 00 00 [14:46:26]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:26]Read from MH i2c: E2 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: E2 17 00 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [14:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:46:26]wFMCommunicate OK [14:46:26]requested_item fd.num is exist - process it [14:46:26]SAM_PROTO_GetFieldsCounters [14:46:26]wFMCommunicate request_size=4 [14:46:26]MH_SAM_APDU [14:46:26]CAPDU: 80 13 00 00 [14:46:26]Write to MH i2c: E2 08 00 27 08 80 13 00 00 00 00 00 00 AB [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:27]Read from MH i2c: E2 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 62 00 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 62 00 27 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [14:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:27]wFMCommunicate OK [14:46:27]SAM_PROTO_GetFieldsCounters done [14:46:27]requested_item shift.num is exist - process it [14:46:27]requested_item shift.opened is exist - process it [14:46:27]req_shift_opened [14:46:27]FM_GetShiftState [14:46:27]SAM_PROTO_GetShiftState [14:46:27]wFMCommunicate request_size=4 [14:46:27]MH_SAM_APDU [14:46:27]CAPDU: 80 13 01 00 [14:46:27]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [14:46:27]Write i2c OK [14:46:27]MH_I2C_Read... [14:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:27]Read from MH i2c: E2 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 0E 00 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7A [14:46:27]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:46:27]wFMCommunicate OK [14:46:27]SAM_PROTO_GetShiftState done [14:46:27]FM_GetShiftState done [14:46:27]req_shift_opened done [14:46:27]requested_item shift.open_date is exist - process it [14:46:27]req_shift_open_date [14:46:27]req_shift_open_date done [14:46:27]produce_requested_data done [14:46:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2661,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:46:27]process_action_free close_receipt [14:46:27]json_value_free [14:46:27]json_value_free done [14:46:27]process_json_proto returns [14:46:27]Send response to host [14:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2661,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:46:27]free response buf [14:46:27]execute_script done [14:46:27]execute_script returns [14:46:27]free content buf [14:46:27]Sock 10.Close socket [14:46:27]Sock 10.Thread stoped [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:46]accept exits with 8 [14:46:46]New connection [14:46:46]New thread 3066781028 created [14:46:46]Thread 3066637668 joined [14:46:46]Waiting for new connection... [14:46:46] Sock 8.Parse request [14:46:46]Sock 8.Check first char [14:46:46]Sock 8.First char is OK [14:46:46]request: POST /json_proto HTTP/1.0 [14:46:46]Method: POST [14:46:46]URL: /json_proto [14:46:46]Method is POST - this is cgi request [14:46:46]url: /json_proto [14:46:46]query_string will be loaded in cgi processing [14:46:46]execute_cgi json_proto POST (null) [14:46:46]execute_cgi path=json_proto method=POST [14:46:46]POST find Content-Length [14:46:46]Host: 172.17.45.132:8080 [14:46:46]Content-Length: 627 [14:46:46]Content-Type: application/json [14:46:46] [14:46:46]POST finish read [14:46:46]Found Content-Length = 627 [14:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126825", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:46]execute_script... [14:46:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126825", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:46]POST & json_proto [14:46:46]process_json_proto [14:46:46]json parsed OK: [14:46:46]protocol is kg_v1.0 [14:46:46]action value=close_receipt [14:46:46]process_action close_receipt [14:46:46]cmd_close_receipt [14:46:46]MH_GetDate [14:46:46]Write to MH i2c: F0 00 00 29 08 20 [14:46:46]Write i2c OK [14:46:46]MH_I2C_Read... [14:46:46]Read from MH i2c: F0 [14:46:46]MH_I2C_Read... [14:46:46]Read from MH i2c: F0 09 00 [14:46:46]MH_I2C_Read... [14:46:46]Read from MH i2c: F0 09 00 29 08 00 57 4E AA 66 E3 0B 90 66 C2 [14:46:46]GetLastDocTimeStamp 1722437183 [14:46:46]current date 1722437207 [14:46:46]FM_GetShiftState [14:46:46]SAM_PROTO_GetShiftState [14:46:46]wFMCommunicate request_size=4 [14:46:46]MH_SAM_APDU [14:46:46]CAPDU: 80 13 01 00 [14:46:46]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [14:46:46]Write i2c OK [14:46:46]MH_I2C_Read... [14:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:46]Read from MH i2c: E2 [14:46:46]MH_I2C_Read... [14:46:46]Read from MH i2c: E2 0E 00 [14:46:46]MH_I2C_Read... [14:46:46]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 7C [14:46:46]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:46:46]wFMCommunicate OK [14:46:46]SAM_PROTO_GetShiftState done [14:46:46]FM_GetShiftState done [14:46:46]opened in 1722384689 [14:46:46]opened+sec_in_day 1722471089 [14:46:46]quantity*price = 12000 [14:46:46]sum+1 = 12001 [14:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 115 31.07.2024 14:46 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2662 ФПД: 258377606049321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144647&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2662&fm=258377606049321&tin=02508201610067®Number=0000000000189667&sum=12000 0 [14:46:47]StoreToDocumentArchive [14:46:47]shift 17 fd 2662 [14:46:47]save to /storage/0017/doc_00002662 [14:46:47]save last doc name /storage/0017/doc_00002662 to /storage/kkm_last_doc_name [14:46:47]save OK [14:46:47]Clear old archive folders... [14:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:46:47]tlvbuf is 00EF4D90 [14:46:47]SAM_PROTO_ClearQueue [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 09 00 00 [14:46:47]Write to MH i2c: E2 08 00 37 08 80 09 00 00 00 00 00 00 B1 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_ClearQueue done [14:46:47]KKMCreateOFDPacket [14:46:47]OFDProtocolAddRootSTLVToBuf [14:46:47]FM_MakeSignedData [14:46:47]FM_MakeSignedData [14:46:47]SAM_PROTO_SignData [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 01 02 [14:46:47]Write to MH i2c: E2 08 00 38 08 80 0D 01 02 00 00 00 00 B9 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]wFMCommunicate request_size=255 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 57 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [14:46:47]Write to MH i2c: E2 02 01 39 08 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 57 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 2E [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]wFMCommunicate request_size=27 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 66 0A 00 00 35 04 06 00 EA FE 39 6D 2E 29 [14:46:48]Write to MH i2c: E2 1E 00 3A 08 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 66 0A 00 00 35 04 06 00 EA FE 39 6D 2E 29 00 00 66 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 0D 03 02 [14:46:48]Write to MH i2c: E2 08 00 3B 08 80 0D 03 02 00 00 00 00 BE [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0B 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0B 00 3B 08 00 5D 43 A9 75 B1 91 62 8E 90 00 AF [14:46:48]RAPDU: 5D 43 A9 75 B1 91 62 8E 90 00 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_SignData done [14:46:48]FM_MakeSignedData done [14:46:48]CreateOFDProtocolMessage [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 11 00 00 [14:46:48]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0E [14:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:46:48]wFMCommunicate OK [14:46:48]CreateOFDProtocolMessage done [14:46:48]OFDSenderStorePacket 2662 [14:46:48]StoreOFDPacket docnum=2662 [14:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 BE 03 18 01 CC 84 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 57 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 0A 00 00 35 04 06 00 EA FE 39 6D 2E 29 5D 43 A9 75 B1 91 62 8E [14:46:48]CheckFolder [14:46:48]dirname=/storage/ofd_packets [14:46:48]CheckFolder done [14:46:48]ProducePacketName [14:46:48]name=ofd_packets/00002662 [14:46:48]NVStorageSaveData ofd_packets/00002662 [14:46:48]File name is /storage/ofd_packets/00002662 [14:46:48]Write 318 bytes [14:46:48]NVStorageSaveData done [14:46:48]OFDSenderStorePacket done [14:46:48]KKMCreateOFDPacket done [14:46:48]NVStorageSaveData kkm_last_timestamp [14:46:48]File name is /storage/kkm_last_timestamp [14:46:48]Write 4 bytes [14:46:48]NVStorageSaveData done [14:46:48]ExternCall_PrintAddStr [14:46:48]wPrintStart [14:46:48]Write to MH i2c: 01 00 00 3D 08 45 [14:46:48]OFD Sender: Processing packet 2662 [packets to send 1, broken 0] [14:46:48]ProducePacketName [14:46:48]name=ofd_packets/00002662 [14:46:48]OFD Sender: To server: pG, [14:46:48]CommunicateWithHost lk.salyk.kg:30040 [14:46:48]ConnectInit lk.salyk.kg [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [14:46:48]RasterBufferAndPrint [14:46:48]line Счет N : (3)126825 [14:46:48]line ИНН: 02508201610067 [14:46:48]line Контрольно-Кассовый Чек [14:46:48]line ПРОДАЖА [14:46:48]line Товар: 4700003610560 [14:46:48]line Вода Энесай 5л. [14:46:48]line 2.000 * 60.00 [14:46:48]line = 120.00 [14:46:48]line НДС 12% НСП 1% [14:46:48]line > о реализуемом товаре [14:46:48]line ИТОГО: 120.00 [14:46:48]line НСП 1% : 1.06 [14:46:48]line НДС 12% : 12.74 [14:46:48]line Наличными: 120.00 [14:46:48]line Безнал.: 0.00 [14:46:48]line Место: АЗС № 127 "Партнер Нефть" [14:46:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:46:48]line СНО: Общий режим [14:46:48]line Чек 115 31.07.2024 14:46 [14:46:48]line Смена: 17 ФФД: 1.0 [14:46:48]line ЗНМ: 0300000161 [14:46:48]line РНМ: 0000000000189667 [14:46:48]line Версия ККМ: v1.0 [14:46:48]line ФМ: 0000000002094248 [14:46:48]line ФД: 2662 [14:46:48]line ФПД: 258377606049321 [14:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T144647&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2662&fm=258377606049321&tin=02508201610067®Number=0000000000189667&sum=12000 [14:46:48]line 0 [14:46:48]Connected sock=10 [14:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 BE 03 18 01 CC 84 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 57 4E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 0A 00 00 35 04 06 00 EA FE 39 6D 2E 29 5D 43 A9 75 B1 91 62 8E [14:46:48]written 0, free lines is 4095 [14:46:49]Write to MH i2c: 01 00 00 65 08 6D [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 07 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 0E 0D 8F [14:46:49]RasterBufferAndPrint [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]written 0, free lines is 3348 [14:46:49]MH_Cut [14:46:49]Write to MH i2c: D1 01 00 6C 08 01 46 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 01 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 01 00 6C 08 00 45 [14:46:49]Write to MH i2c: 01 00 00 6D 08 75 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** Cut start [14:46:49]*** Partial cut [14:46:49]*** CUTSNS_PIN = 1 [14:46:49]*** CUTSNS_PIN = 0 [14:46:50]*** Brake cut motor [14:46:50]Read from MH i2c: 01 [14:46:50]MH_I2C_Read... [14:46:50]*** Stop cut motor [14:46:50]*** Cut end [14:46:50]Read from MH i2c: 01 07 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [14:46:50]process_action close_receipt done [14:46:50]requested_data is exist [14:46:50]produce_requested_data [14:46:50]requested_item fm.sn is exist - process it [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 11 00 00 [14:46:50]Write to MH i2c: E2 08 00 6E 08 80 11 00 00 00 00 00 00 F0 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 17 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 17 00 6E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [14:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:46:50]wFMCommunicate OK [14:46:50]requested_item fd.num is exist - process it [14:46:50]SAM_PROTO_GetFieldsCounters [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 13 00 00 [14:46:50]Write to MH i2c: E2 08 00 6F 08 80 13 00 00 00 00 00 00 F3 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 69 32 47 00 51 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 0A 00 00 F4 03 04 00 BD F9 A9 66 B6 04 01 00 00 F3 F7 D9 68 6A 4F 74 57 [14:46:50]CommunicateWithHost err = 0 [14:46:50]CheckOFDResponse [14:46:50]1017 (14) - 77093643461234 [14:46:50]1041 (16) - 0000000002094248 [14:46:50]1040 (4) - 2662 [14:46:50]1012 (4) - 31.07.2024 08:45 [14:46:50]1206 (1) - 0 [14:46:50]OFD Sender: Remove packet 2662 [14:46:50]ProducePacketName [14:46:50]name=ofd_packets/00002662 [14:46:50]NVStorageDeleteData [14:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 62 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 62 00 6F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:50]wFMCommunicate OK [14:46:50]SAM_PROTO_GetFieldsCounters done [14:46:50]requested_item shift.num is exist - process it [14:46:50]requested_item shift.opened is exist - process it [14:46:50]req_shift_opened [14:46:50]FM_GetShiftState [14:46:50]SAM_PROTO_GetShiftState [14:46:50]wFMCommunicate request_size=4 [14:46:50]MH_SAM_APDU [14:46:50]CAPDU: 80 13 01 00 [14:46:50]Write to MH i2c: E2 08 00 70 08 80 13 01 00 00 00 00 00 F5 [14:46:50]Write i2c OK [14:46:50]MH_I2C_Read... [14:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:50]Read from MH i2c: E2 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0E 00 [14:46:50]MH_I2C_Read... [14:46:50]Read from MH i2c: E2 0E 00 70 08 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C2 [14:46:50]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [14:46:50]wFMCommunicate OK [14:46:50]SAM_PROTO_GetShiftState done [14:46:50]FM_GetShiftState done [14:46:50]req_shift_opened done [14:46:50]requested_item shift.open_date is exist - process it [14:46:50]req_shift_open_date [14:46:50]req_shift_open_date done [14:46:50]produce_requested_data done [14:46:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2662,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [14:46:50]process_action_free close_receipt [14:46:50]json_value_free [14:46:50]json_value_free done [14:46:50]process_json_proto returns [14:46:50]Send response to host [14:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2662,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [14:46:50]free response buf [14:46:50]execute_script done [14:46:50]execute_script returns [14:46:50]free content buf [14:46:50]Sock 8.Close socket [14:46:50]Sock 8.Thread stoped [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [15:01:52]ConnectInit Can't connect to host [15:01:55]OFD Sender: Processing packet 2663 [packets to send 3, broken 0] [15:01:55]ProducePacketName [15:01:55]name=ofd_packets/00002663 [15:01:55]OFD Sender: To server: pG, [15:01:55]CommunicateWithHost lk.salyk.kg:30040 [15:01:55]ConnectInit lk.salyk.kg [15:09:33]ConnectInit Can't connect to host [15:09:36]ConnectInit Can't take IP for lk.salyk.kg [15:09:36]CommunicateWithHost connect error [15:09:36]CommunicateWithHost err = -1 [15:09:36]OFD Sender: Server communicate error [15:15:33]ConnectInit Can't connect to host [15:15:34]ConnectInit Can't take IP for lk.salyk.kg [15:15:34]CommunicateWithHost connect error [15:15:34]CommunicateWithHost err = -1 [15:15:34]OFD Sender: Server communicate error [15:15:39]OFD Sender: Processing packet 2663 [packets to send 13, broken 0] [15:15:39]ProducePacketName [15:15:39]name=ofd_packets/00002663 [15:15:39]OFD Sender: To server: pG, [15:15:39]CommunicateWithHost lk.salyk.kg:30040 [15:15:39]ConnectInit lk.salyk.kg [15:15:39]Connected sock=8 [15:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 5E AD 1D 01 FA A3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 03 51 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 67 0A 00 00 35 04 06 00 62 22 9F 51 D7 23 BF 52 D9 10 1F D3 B5 5D [15:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 63 31 47 00 7C 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 67 0A 00 00 F4 03 04 00 80 00 AA 66 B6 04 01 00 00 C3 EF 6A 18 AF AD CE 61 [15:15:39]CommunicateWithHost err = 0 [15:15:39]CheckOFDResponse [15:15:39]1017 (14) - 77093643461234 [15:15:39]1041 (16) - 0000000002094248 [15:15:39]1040 (4) - 2663 [15:15:39]1012 (4) - 31.07.2024 09:14 [15:15:39]1206 (1) - 0 [15:15:39]OFD Sender: Remove packet 2663 [15:15:39]ProducePacketName [15:15:39]name=ofd_packets/00002663 [15:15:39]NVStorageDeleteData [15:15:40]OFD Sender: Processing packet 2664 [packets to send 12, broken 0] [15:15:40]ProducePacketName [15:15:40]name=ofd_packets/00002664 [15:15:40]OFD Sender: To server: pG, [15:15:40]CommunicateWithHost lk.salyk.kg:30040 [15:15:40]ConnectInit lk.salyk.kg [15:15:40]Connected sock=8 [15:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 DD 01 00 00 69 86 D5 01 10 D0 5A 03 01 00 03 00 C9 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 39 51 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 0A 00 00 35 04 06 00 80 DA 06 C7 FF 5A A2 D5 33 18 A4 BD 72 9A [15:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 82 0B 47 00 37 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 0A 00 00 F4 03 04 00 81 00 AA 66 B6 04 01 00 00 8A AF 73 49 CE 63 2A DA [15:15:40]CommunicateWithHost err = 0 [15:15:40]CheckOFDResponse [15:15:40]1017 (14) - 77093643461234 [15:15:40]1041 (16) - 0000000002094248 [15:15:40]1040 (4) - 2664 [15:15:40]1012 (4) - 31.07.2024 09:14 [15:15:40]1206 (1) - 0 [15:15:40]OFD Sender: Remove packet 2664 [15:15:40]ProducePacketName [15:15:40]name=ofd_packets/00002664 [15:15:40]NVStorageDeleteData [15:15:41]OFD Sender: Processing packet 2665 [packets to send 11, broken 0] [15:15:41]ProducePacketName [15:15:41]name=ofd_packets/00002665 [15:15:41]OFD Sender: To server: pG, [15:15:41]CommunicateWithHost lk.salyk.kg:30040 [15:15:41]ConnectInit lk.salyk.kg [15:15:41]Connected sock=8 [15:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 73 9A 07 01 E9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BA 51 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 0A 00 00 35 04 06 00 31 7A 30 38 F7 3A FE 88 82 9C 87 97 4E 51 [15:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C3 E6 47 00 95 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 0A 00 00 F4 03 04 00 82 00 AA 66 B6 04 01 00 00 CB FB 8A 86 AC 1C 20 46 [15:15:41]CommunicateWithHost err = 0 [15:15:41]CheckOFDResponse [15:15:41]1017 (14) - 77093643461234 [15:15:41]1041 (16) - 0000000002094248 [15:15:41]1040 (4) - 2665 [15:15:41]1012 (4) - 31.07.2024 09:14 [15:15:41]1206 (1) - 0 [15:15:41]OFD Sender: Remove packet 2665 [15:15:41]ProducePacketName [15:15:41]name=ofd_packets/00002665 [15:15:41]NVStorageDeleteData [15:15:42]OFD Sender: Processing packet 2666 [packets to send 10, broken 0] [15:15:42]ProducePacketName [15:15:42]name=ofd_packets/00002666 [15:15:42]OFD Sender: To server: pG, [15:15:42]CommunicateWithHost lk.salyk.kg:30040 [15:15:42]ConnectInit lk.salyk.kg [15:15:42]Connected sock=8 [15:15:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 94 77 16 01 24 0E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EC 51 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 0A 00 00 35 04 06 00 7C 18 FD DD 3D 44 68 B0 8C A0 38 33 54 80 [15:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 70 D2 47 00 65 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 0A 00 00 F4 03 04 00 82 00 AA 66 B6 04 01 00 00 C7 B2 20 59 8B 61 A9 FD [15:15:42]CommunicateWithHost err = 0 [15:15:42]CheckOFDResponse [15:15:42]1017 (14) - 77093643461234 [15:15:42]1041 (16) - 0000000002094248 [15:15:42]1040 (4) - 2666 [15:15:42]1012 (4) - 31.07.2024 09:14 [15:15:42]1206 (1) - 0 [15:15:42]OFD Sender: Remove packet 2666 [15:15:42]ProducePacketName [15:15:42]name=ofd_packets/00002666 [15:15:42]NVStorageDeleteData [15:15:43]OFD Sender: Processing packet 2667 [packets to send 9, broken 0] [15:15:43]ProducePacketName [15:15:43]name=ofd_packets/00002667 [15:15:43]OFD Sender: To server: pG, [15:15:43]CommunicateWithHost lk.salyk.kg:30040 [15:15:43]ConnectInit lk.salyk.kg [15:15:43]Connected sock=8 [15:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 66 C4 07 01 A8 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C5 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 22 52 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 0A 00 00 35 04 06 00 D8 92 77 45 CF 7D AB 95 6A BF 79 1D 21 D5 [15:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D5 48 47 00 FE D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 0A 00 00 F4 03 04 00 83 00 AA 66 B6 04 01 00 00 14 E2 5E 9A BB E1 E5 D2 [15:15:43]CommunicateWithHost err = 0 [15:15:43]CheckOFDResponse [15:15:43]1017 (14) - 77093643461234 [15:15:43]1041 (16) - 0000000002094248 [15:15:43]1040 (4) - 2667 [15:15:43]1012 (4) - 31.07.2024 09:14 [15:15:43]1206 (1) - 0 [15:15:43]OFD Sender: Remove packet 2667 [15:15:43]ProducePacketName [15:15:43]name=ofd_packets/00002667 [15:15:43]NVStorageDeleteData [15:15:44]OFD Sender: Processing packet 2668 [packets to send 8, broken 0] [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00002668 [15:15:44]OFD Sender: To server: pG, [15:15:44]CommunicateWithHost lk.salyk.kg:30040 [15:15:44]ConnectInit lk.salyk.kg [15:15:44]Connected sock=10 [15:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 E7 26 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 4F 52 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 0A 00 00 35 04 06 00 F7 C5 C2 C4 55 AB 34 03 EC F1 14 3B 81 59 [15:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 84 02 47 00 5B 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 0A 00 00 F4 03 04 00 84 00 AA 66 B6 04 01 00 00 96 79 17 28 A5 03 1C 09 [15:15:44]CommunicateWithHost err = 0 [15:15:44]CheckOFDResponse [15:15:44]1017 (14) - 77093643461234 [15:15:44]1041 (16) - 0000000002094248 [15:15:44]1040 (4) - 2668 [15:15:44]1012 (4) - 31.07.2024 09:14 [15:15:44]1206 (1) - 0 [15:15:44]OFD Sender: Remove packet 2668 [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00002668 [15:15:44]NVStorageDeleteData [15:15:45]OFD Sender: Processing packet 2669 [packets to send 7, broken 0] [15:15:45]ProducePacketName [15:15:45]name=ofd_packets/00002669 [15:15:45]OFD Sender: To server: pG, [15:15:45]CommunicateWithHost lk.salyk.kg:30040 [15:15:45]ConnectInit lk.salyk.kg [15:15:45]Connected sock=8 [15:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D6 22 07 01 C4 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D6 52 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 0A 00 00 35 04 06 00 C3 88 BB 42 AF D2 6D 25 94 00 D9 0E CB 06 [15:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 76 72 47 00 20 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 32 30 39 34 32 34 38 10 04 04 00 6D 0A 00 00 F4 03 04 00 86 00 AA 66 B6 04 01 00 00 17 48 82 54 B2 F7 49 06 [15:15:46]CommunicateWithHost err = 0 [15:15:46]CheckOFDResponse [15:15:46]1017 (14) - 77093643461234 [15:15:46]1041 (16) - 0000000002094248 [15:15:46]1040 (4) - 2669 [15:15:46]1012 (4) - 31.07.2024 09:14 [15:15:46]1206 (1) - 0 [15:15:46]OFD Sender: Remove packet 2669 [15:15:46]ProducePacketName [15:15:46]name=ofd_packets/00002669 [15:15:46]NVStorageDeleteData [15:15:46]OFD Sender: Processing packet 2670 [packets to send 6, broken 0] [15:15:46]ProducePacketName [15:15:46]name=ofd_packets/00002670 [15:15:46]OFD Sender: To server: pG, [15:15:46]CommunicateWithHost lk.salyk.kg:30040 [15:15:46]ConnectInit lk.salyk.kg [15:15:47]Connected sock=8 [15:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 01 72 20 01 3B 72 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 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 7B 00 00 00 F4 03 04 00 46 53 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 0A 00 00 35 04 06 00 33 02 21 4D 36 3F 0D 89 CD 9E 7E F6 6E 76 [15:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 47 EC 47 00 C0 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 0A 00 00 F4 03 04 00 87 00 AA 66 B6 04 01 00 00 7B 6A E1 C0 EA 09 82 12 [15:15:47]CommunicateWithHost err = 0 [15:15:47]CheckOFDResponse [15:15:47]1017 (14) - 77093643461234 [15:15:47]1041 (16) - 0000000002094248 [15:15:47]1040 (4) - 2670 [15:15:47]1012 (4) - 31.07.2024 09:14 [15:15:47]1206 (1) - 0 [15:15:47]OFD Sender: Remove packet 2670 [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00002670 [15:15:47]NVStorageDeleteData [15:15:47]OFD Sender: Processing packet 2671 [packets to send 5, broken 0] [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00002671 [15:15:47]OFD Sender: To server: pG, [15:15:47]CommunicateWithHost lk.salyk.kg:30040 [15:15:47]ConnectInit lk.salyk.kg [15:15:48]Connected sock=8 [15:15:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 0F 6E 31 01 7E 14 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5C 53 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 0A 00 00 35 04 06 00 5F BF FC D5 63 48 84 06 A2 1F EA 8D F5 3D [15:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 47 1A 47 00 91 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 0A 00 00 F4 03 04 00 88 00 AA 66 B6 04 01 00 00 0B 43 1D 62 DB F3 94 1C [15:15:48]CommunicateWithHost err = 0 [15:15:48]CheckOFDResponse [15:15:48]1017 (14) - 77093643461234 [15:15:48]1041 (16) - 0000000002094248 [15:15:48]1040 (4) - 2671 [15:15:48]1012 (4) - 31.07.2024 09:14 [15:15:48]1206 (1) - 0 [15:15:48]OFD Sender: Remove packet 2671 [15:15:48]ProducePacketName [15:15:48]name=ofd_packets/00002671 [15:15:48]NVStorageDeleteData [15:15:48]OFD Sender: Processing packet 2672 [packets to send 4, broken 0] [15:15:48]ProducePacketName [15:15:48]name=ofd_packets/00002672 [15:15:48]OFD Sender: To server: pG, [15:15:48]CommunicateWithHost lk.salyk.kg:30040 [15:15:48]ConnectInit lk.salyk.kg [15:15:49]Connected sock=8 [15:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 E6 B4 19 01 C2 68 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 76 53 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 0A 00 00 35 04 06 00 EA 9E 56 67 1C C1 23 7F 22 08 26 7C 7C 70 [15:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 44 46 47 00 9A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 0A 00 00 F4 03 04 00 89 00 AA 66 B6 04 01 00 00 3A 6F 51 CF B7 EE 94 B9 [15:15:49]CommunicateWithHost err = 0 [15:31:52]ConnectInit Can't connect to host [15:31:54]ConnectInit Can't take IP for lk.salyk.kg [15:31:54]CommunicateWithHost connect error [15:31:54]CommunicateWithHost err = -1 [15:31:54]OFD Sender: Server communicate error [15:31:59]OFD Sender: Processing packet 2675 [packets to send 5, broken 0] [15:31:59]ProducePacketName [15:31:59]name=ofd_packets/00002675 [15:31:59]OFD Sender: To server: pG, [15:31:59]CommunicateWithHost lk.salyk.kg:30040 [15:31:59]ConnectInit lk.salyk.kg [15:31:59]Connected sock=8 [15:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 64 C9 04 01 C8 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 26 34 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 C4 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 29 00 00 00 00 07 04 06 00 88 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 AC 54 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 0A 00 00 35 04 06 00 EA 40 3B 7B A1 37 4B 29 9E DD B2 01 CC C1 [15:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B7 2F 47 00 82 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 0A 00 00 F4 03 04 00 54 04 AA 66 B6 04 01 00 00 91 1D B7 02 FD 7B 9A 1C [15:32:00]CommunicateWithHost err = 0 [15:32:00]CheckOFDResponse [15:32:00]1017 (14) - 77093643461234 [15:32:00]1041 (16) - 0000000002094248 [15:32:00]1040 (4) - 2675 [15:32:00]1012 (4) - 31.07.2024 09:31 [15:32:00]1206 (1) - 0 [15:32:00]OFD Sender: Remove packet 2675 [15:32:00]ProducePacketName [15:32:00]name=ofd_packets/00002675 [15:32:00]NVStorageDeleteData [15:32:00]OFD Sender: Processing packet 2676 [packets to send 4, broken 0] [15:32:00]ProducePacketName [15:32:00]name=ofd_packets/00002676 [15:32:00]OFD Sender: To server: pG, [15:32:00]CommunicateWithHost lk.salyk.kg:30040 [15:32:00]ConnectInit lk.salyk.kg [15:32:00]Connected sock=8 [15:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 32 01 00 00 F4 23 2A 01 BD 5F 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 7C 55 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 0A 00 00 35 04 06 00 69 15 08 59 0C 6E D2 9D 84 17 84 02 2D 2E [15:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 87 F8 47 00 D0 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 0A 00 00 F4 03 04 00 55 04 AA 66 B6 04 01 00 00 F0 7C 37 78 35 65 11 B4 [15:32:00]CommunicateWithHost err = 0 [15:32:00]CheckOFDResponse [15:32:00]1017 (14) - 77093643461234 [15:32:00]1041 (16) - 0000000002094248 [15:32:00]1040 (4) - 2676 [15:32:00]1012 (4) - 31.07.2024 09:31 [15:32:00]1206 (1) - 0 [15:32:00]OFD Sender: Remove packet 2676 [15:32:00]ProducePacketName [15:32:00]name=ofd_packets/00002676 [15:32:00]NVStorageDeleteData [15:32:01]OFD Sender: Processing packet 2677 [packets to send 3, broken 0] [15:32:01]ProducePacketName [15:32:01]name=ofd_packets/00002677 [15:32:01]OFD Sender: To server: pG, [15:32:01]CommunicateWithHost lk.salyk.kg:30040 [15:32:01]ConnectInit lk.salyk.kg [15:32:01]Connected sock=8 [15:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F2 4F 1B 01 63 18 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 87 55 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 0A 00 00 35 04 06 00 CC 85 23 6D C6 20 2E 2F 9A 12 49 D8 92 E0 [15:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7E A2 47 00 CF 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 0A 00 00 F4 03 04 00 56 04 AA 66 B6 04 01 00 00 4D F5 7F 1A 06 4B E1 EE [15:32:01]CommunicateWithHost err = 0 [15:32:01]CheckOFDResponse [15:32:01]1017 (14) - 77093643461234 [15:32:01]1041 (16) - 0000000002094248 [15:32:01]1040 (4) - 2677 [15:32:01]1012 (4) - 31.07.2024 09:31 [15:32:01]1206 (1) - 0 [15:32:01]OFD Sender: Remove packet 2677 [15:32:01]ProducePacketName [15:32:01]name=ofd_packets/00002677 [15:32:01]NVStorageDeleteData [15:32:02]OFD Sender: Processing packet 2678 [packets to send 2, broken 0] [15:32:02]ProducePacketName [15:32:02]name=ofd_packets/00002678 [15:32:02]OFD Sender: To server: pG, [15:32:02]CommunicateWithHost lk.salyk.kg:30040 [15:32:02]ConnectInit lk.salyk.kg [15:32:02]Connected sock=8 [15:32:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 A4 CF 26 01 2C 9D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 20 58 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 76 0A 00 00 35 04 06 00 62 73 35 BA 13 5C AF 5B 30 76 BD E7 43 B5 [15:32:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 18 B6 47 00 34 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 32 30 39 34 32 34 38 10 04 04 00 76 0A 00 00 F4 03 04 00 57 04 AA 66 B6 04 01 00 00 36 ED 11 83 EC 30 BC 8E [15:32:02]CommunicateWithHost err = 0 [15:32:02]CheckOFDResponse [15:32:02]1017 (14) - 77093643461234 [15:32:02]1041 (16) - 0000000002094248 [15:32:02]1040 (4) - 2678 [15:32:02]1012 (4) - 31.07.2024 09:31 [15:32:02]1206 (1) - 0 [15:32:02]OFD Sender: Remove packet 2678 [15:32:02]ProducePacketName [15:32:02]name=ofd_packets/00002678 [15:32:02]NVStorageDeleteData [15:32:03]OFD Sender: Processing packet 2679 [packets to send 1, broken 0] [15:32:03]ProducePacketName [15:32:03]name=ofd_packets/00002679 [15:32:03]OFD Sender: To server: pG, [15:32:03]CommunicateWithHost lk.salyk.kg:30040 [15:32:03]ConnectInit lk.salyk.kg [15:32:03]Connected sock=9 [15:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 44 ED 27 01 E9 E9 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DA 58 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 0A 00 00 35 04 06 00 E5 F8 DE 5E 57 BE B3 71 3E 7C E7 5A 52 4B [15:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B0 A9 47 00 61 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 0A 00 00 F4 03 04 00 58 04 AA 66 B6 04 01 00 00 FC 9A C6 4D 48 93 3E EB [15:32:03]CommunicateWithHost err = 0 [15:32:03]CheckOFDResponse [15:32:03]1017 (14) - 77093643461234 [15:32:03]1041 (16) - 0000000002094248 [15:32:03]1040 (4) - 2679 [15:32:03]1012 (4) - 31.07.2024 09:31 [15:32:03]1206 (1) - 0 [15:32:03]OFD Sender: Remove packet 2679 [15:32:03]ProducePacketName [15:32:03]name=ofd_packets/00002679 [15:32:03]NVStorageDeleteData [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:46]accept exits with 10 [15:33:46]New connection [15:33:46]New thread 3066781028 created [15:33:46]Thread 3066637668 joined [15:33:46]Waiting for new connection... [15:33:46] Sock 10.Parse request [15:33:46]Sock 10.Check first char [15:33:46]Sock 10.First char is OK [15:33:46]request: POST /json_proto HTTP/1.0 [15:33:46]Method: POST [15:33:46]URL: /json_proto [15:33:46]Method is POST - this is cgi request [15:33:46]url: /json_proto [15:33:46]query_string will be loaded in cgi processing [15:33:46]execute_cgi json_proto POST (null) [15:33:46]execute_cgi path=json_proto method=POST [15:33:46]POST find Content-Length [15:33:46]Host: 172.17.45.132:8080 [15:33:46]Content-Length: 669 [15:33:46]Content-Type: application/json [15:33:46] [15:33:46]POST finish read [15:33:46]Found Content-Length = 669 [15:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126838", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:46]execute_script... [15:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126838", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:46]POST & json_proto [15:33:46]process_json_proto [15:33:46]json parsed OK: [15:33:46]protocol is kg_v1.0 [15:33:46]action value=close_receipt [15:33:46]process_action close_receipt [15:33:46]cmd_close_receipt [15:33:46]MH_GetDate [15:33:46]Write to MH i2c: F0 00 00 68 0D 64 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: F0 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: F0 09 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: F0 09 00 68 0D 00 5B 59 AA 66 E3 0B 90 66 15 [15:33:46]GetLastDocTimeStamp 1722439898 [15:33:46]current date 1722440027 [15:33:46]FM_GetShiftState [15:33:46]SAM_PROTO_GetShiftState [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 13 01 00 [15:33:46]Write to MH i2c: E2 08 00 69 0D 80 13 01 00 00 00 00 00 F3 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0E 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0E 00 69 0D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C0 [15:33:46]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:33:46]wFMCommunicate OK [15:33:46]SAM_PROTO_GetShiftState done [15:33:46]FM_GetShiftState done [15:33:46]opened in 1722384689 [15:33:46]opened+sec_in_day 1722471089 [15:33:46]quantity*price = 10700 [15:33:46]sum+1 = 10701 [15:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 133 31.07.2024 15:33 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2680 ФПД: 261858541975434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T153347&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2680&fm=261858541975434&tin=02508201610067®Number=0000000000189667&sum=10700 0 [15:33:47]StoreToDocumentArchive [15:33:47]shift 17 fd 2680 [15:33:47]save to /storage/0017/doc_00002680 [15:33:47]save last doc name /storage/0017/doc_00002680 to /storage/kkm_last_doc_name [15:33:47]save OK [15:33:47]Clear old archive folders... [15:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:33:47]tlvbuf is 00E7F820 [15:33:47]SAM_PROTO_ClearQueue [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 09 00 00 [15:33:47]Write to MH i2c: E2 08 00 76 0D 80 09 00 00 00 00 00 00 F5 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 03 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [15:33:47]RAPDU: 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_ClearQueue done [15:33:47]KKMCreateOFDPacket [15:33:47]OFDProtocolAddRootSTLVToBuf [15:33:47]FM_MakeSignedData [15:33:47]FM_MakeSignedData [15:33:47]SAM_PROTO_SignData [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 0D 01 02 [15:33:47]Write to MH i2c: E2 08 00 77 0D 80 0D 01 02 00 00 00 00 FD [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 03 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [15:33:47]RAPDU: 90 00 [15:33:47]wFMCommunicate OK [15:33:47]wFMCommunicate request_size=255 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 [15:33:47]Write to MH i2c: E2 02 01 78 0D 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 00 00 C5 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:48]Read from MH i2c: E2 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 03 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [15:33:48]RAPDU: 90 00 [15:33:48]wFMCommunicate OK [15:33:48]wFMCommunicate request_size=44 [15:33:48]MH_SAM_APDU [15:33:48]CAPDU: 80 0D 02 02 27 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 0A 00 00 35 04 06 00 EE 28 B1 60 37 8A [15:33:48]Write to MH i2c: E2 2F 00 79 0D 80 0D 02 02 27 00 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 0A 00 00 35 04 06 00 EE 28 B1 60 37 8A 00 00 88 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:48]Read from MH i2c: E2 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 03 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [15:33:48]RAPDU: 90 00 [15:33:48]wFMCommunicate OK [15:33:48]wFMCommunicate request_size=4 [15:33:48]MH_SAM_APDU [15:33:48]CAPDU: 80 0D 03 02 [15:33:48]Write to MH i2c: E2 08 00 7A 0D 80 0D 03 02 00 00 00 00 02 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:48]Read from MH i2c: E2 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 0B 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 0B 00 7A 0D 00 82 7C C7 05 C8 F2 80 77 90 00 7E [15:33:48]RAPDU: 82 7C C7 05 C8 F2 80 77 90 00 [15:33:48]wFMCommunicate OK [15:33:48]SAM_PROTO_SignData done [15:33:48]FM_MakeSignedData done [15:33:48]CreateOFDProtocolMessage [15:33:48]wFMCommunicate request_size=4 [15:33:48]MH_SAM_APDU [15:33:48]CAPDU: 80 11 00 00 [15:33:48]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:48]Read from MH i2c: E2 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 17 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 52 [15:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:33:48]wFMCommunicate OK [15:33:48]CreateOFDProtocolMessage done [15:33:48]OFDSenderStorePacket 2680 [15:33:48]StoreOFDPacket docnum=2680 [15:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 01 00 00 AA 33 29 01 E9 E6 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 0A 00 00 35 04 06 00 EE 28 B1 60 37 8A 82 7C C7 05 C8 F2 80 77 [15:33:48]CheckFolder [15:33:48]dirname=/storage/ofd_packets [15:33:48]CheckFolder done [15:33:48]ProducePacketName [15:33:48]name=ofd_packets/00002680 [15:33:48]NVStorageSaveData ofd_packets/00002680 [15:33:48]File name is /storage/ofd_packets/00002680 [15:33:48]Write 335 bytes [15:33:48]NVStorageSaveData done [15:33:48]OFDSenderStorePacket done [15:33:48]KKMCreateOFDPacket done [15:33:48]NVStorageSaveData kkm_last_timestamp [15:33:48]File name is /storage/kkm_last_timestamp [15:33:48]Write 4 bytes [15:33:48]NVStorageSaveData done [15:33:48]ExternCall_PrintAddStr [15:33:48]wPrintStart [15:33:48]Write to MH i2c: 01 00 00 7C 0D 89 [15:33:48]Write i2c OK [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: 01 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: 01 07 00 [15:33:48]MH_I2C_Read... [15:33:48]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [15:33:48]RasterBufferAndPrint [15:33:48]line Счет N : (3)126838 [15:33:48]line ИНН: 02508201610067 [15:33:48]line Контрольно-Кассовый Чек [15:33:48]line ПРОДАЖА [15:33:48]line Товар: 5449000189318 [15:33:48]line Холодный чай Fuse лимон 1л [15:33:48]line 1.000 * 107.00 [15:33:48]line = 107.00 [15:33:48]line НДС 12% НСП 1% [15:33:48]line > о реализуемом товаре [15:33:48]line ИТОГО: 107.00 [15:33:48]line НСП 1% : 0.95 [15:33:48]line НДС 12% : 11.36 [15:33:48]line Наличными: 107.00 [15:33:48]line Безнал.: 0.00 [15:33:48]line Место: АЗС № 127 "Партнер Нефть" [15:33:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:33:48]line СНО: Общий режим [15:33:48]line Чек 133 31.07.2024 15:33 [15:33:48]line Смена: 17 ФФД: 1.0 [15:33:48]line ЗНМ: 0300000161 [15:33:48]line РНМ: 0000000000189667 [15:33:48]line Версия ККМ: v1.0 [15:33:48]line ФМ: 0000000002094248 [15:33:48]line ФД: 2680 [15:33:48]line ФПД: 261858541975434 [15:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T153347&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2680&fm=261858541975434&tin=02508201610067®Number=0000000000189667&sum=10700 [15:33:48]line 0 [15:33:48]OFD Sender: Processing packet 2680 [packets to send 1, broken 0] [15:33:48]ProducePacketName [15:33:48]name=ofd_packets/00002680 [15:33:48]OFD Sender: To server: pG, [15:33:48]CommunicateWithHost lk.salyk.kg:30040 [15:33:48]ConnectInit lk.salyk.kg [15:33:48]written 0, free lines is 4095 [15:33:48]Connected sock=9 [15:33:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 01 00 00 AA 33 29 01 E9 E6 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 0A 00 00 35 04 06 00 EE 28 B1 60 37 8A 82 7C C7 05 C8 F2 80 77 [15:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CD 14 47 00 B8 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 0A 00 00 F4 03 04 00 C1 04 AA 66 B6 04 01 00 00 36 58 E5 16 66 F0 A7 4E [15:33:49]CommunicateWithHost err = 0 [15:33:49]CheckOFDResponse [15:33:49]1017 (14) - 77093643461234 [15:33:49]1041 (16) - 0000000002094248 [15:33:49]1040 (4) - 2680 [15:33:49]1012 (4) - 31.07.2024 09:32 [15:33:49]1206 (1) - 0 [15:33:49]OFD Sender: Remove packet 2680 [15:33:49]ProducePacketName [15:33:49]name=ofd_packets/00002680 [15:33:49]NVStorageDeleteData [15:33:49]Write to MH i2c: 01 00 00 A4 0D B1 [15:33:49]Write i2c OK [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: 01 [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: 01 07 00 [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 23 0D E8 [15:33:49]RasterBufferAndPrint [15:33:49]line [15:33:49]line [15:33:49]line [15:33:49]line [15:33:49]line [15:33:49]written 0, free lines is 3370 [15:33:49]MH_Cut [15:33:49]Write to MH i2c: D1 01 00 AB 0D 01 8A [15:33:49]Write i2c OK [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: D1 [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: D1 01 00 [15:33:49]MH_I2C_Read... [15:33:49]Read from MH i2c: D1 01 00 AB 0D 00 89 [15:33:49]Write to MH i2c: 01 00 00 AC 0D B9 [15:33:49]Write i2c OK [15:33:49]MH_I2C_Read... [15:33:49]OFD Sender: No OFD packet to send [15:33:49]*** Cut start [15:33:49]*** Partial cut [15:33:49]*** CUTSNS_PIN = 1 [15:33:49]*** CUTSNS_PIN = 0 [15:33:50]*** Brake cut motor [15:33:50]Read from MH i2c: 01 [15:33:50]MH_I2C_Read... [15:33:50]*** Stop cut motor [15:33:50]*** Cut end [15:33:50]Read from MH i2c: 01 07 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [15:33:50]process_action close_receipt done [15:33:50]requested_data is exist [15:33:50]produce_requested_data [15:33:50]requested_item fm.sn is exist - process it [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 11 00 00 [15:33:50]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 17 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 84 [15:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:33:50]wFMCommunicate OK [15:33:50]requested_item fd.num is exist - process it [15:33:50]SAM_PROTO_GetFieldsCounters [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 13 00 00 [15:33:50]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 62 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 62 00 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 78 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [15:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 78 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_GetFieldsCounters done [15:33:50]requested_item shift.num is exist - process it [15:33:50]requested_item shift.opened is exist - process it [15:33:50]req_shift_opened [15:33:50]FM_GetShiftState [15:33:50]SAM_PROTO_GetShiftState [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 13 01 00 [15:33:50]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 06 [15:33:50]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_GetShiftState done [15:33:50]FM_GetShiftState done [15:33:50]req_shift_opened done [15:33:50]requested_item shift.open_date is exist - process it [15:33:50]req_shift_open_date [15:33:50]req_shift_open_date done [15:33:50]produce_requested_data done [15:33:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2680,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [15:33:50]process_action_free close_receipt [15:33:50]json_value_free [15:33:50]json_value_free done [15:33:50]process_json_proto returns [15:33:50]Send response to host [15:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2680,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [15:33:50]free response buf [15:33:50]execute_script done [15:33:50]execute_script returns [15:33:50]free content buf [15:33:50]Sock 10.Close socket [15:33:50]Sock 10.Thread stoped [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]accept exits with 8 [15:35:19]New connection [15:35:19]New thread 3066637668 created [15:35:19]Thread 3066781028 joined [15:35:19]Waiting for new connection... [15:35:19] Sock 8.Parse request [15:35:19]Sock 8.Check first char [15:35:19]Sock 8.First char is OK [15:35:19]request: POST /json_proto HTTP/1.0 [15:35:19]Method: POST [15:35:19]URL: /json_proto [15:35:19]Method is POST - this is cgi request [15:35:19]url: /json_proto [15:35:19]query_string will be loaded in cgi processing [15:35:19]execute_cgi json_proto POST (null) [15:35:19]execute_cgi path=json_proto method=POST [15:35:19]POST find Content-Length [15:35:19]Host: 172.17.45.132:8080 [15:35:19]Content-Length: 667 [15:35:19]Content-Type: application/json [15:35:19] [15:35:19]POST finish read [15:35:19]Found Content-Length = 667 [15:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126839", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]execute_script... [15:35:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126839", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]POST & json_proto [15:35:19]process_json_proto [15:35:19]json parsed OK: [15:35:19]protocol is kg_v1.0 [15:35:19]action value=close_receipt [15:35:19]process_action close_receipt [15:35:19]cmd_close_receipt [15:35:19]MH_GetDate [15:35:19]Write to MH i2c: F0 00 00 B0 0D AC [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 B0 0D 00 B8 59 AA 66 E3 0B 90 66 BA [15:35:19]GetLastDocTimeStamp 1722440027 [15:35:19]current date 1722440120 [15:35:19]FM_GetShiftState [15:35:19]SAM_PROTO_GetShiftState [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 13 01 00 [15:35:19]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 08 [15:35:19]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:35:19]wFMCommunicate OK [15:35:19]SAM_PROTO_GetShiftState done [15:35:19]FM_GetShiftState done [15:35:19]opened in 1722384689 [15:35:19]opened+sec_in_day 1722471089 [15:35:19]quantity*price = 35000 [15:35:19]sum+1 = 35001 [15:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 134 31.07.2024 15:35 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2681 ФПД: 197969254767043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T153520&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2681&fm=197969254767043&tin=02508201610067®Number=0000000000189667&sum=35000 0 [15:35:20]StoreToDocumentArchive [15:35:20]shift 17 fd 2681 [15:35:20]save to /storage/0017/doc_00002681 [15:35:20]save last doc name /storage/0017/doc_00002681 to /storage/kkm_last_doc_name [15:35:20]save OK [15:35:20]Clear old archive folders... [15:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=283 [15:35:20]tlvbuf is 00E7F420 [15:35:20]SAM_PROTO_ClearQueue [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 09 00 00 [15:35:20]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]SAM_PROTO_ClearQueue done [15:35:20]KKMCreateOFDPacket [15:35:20]OFDProtocolAddRootSTLVToBuf [15:35:20]FM_MakeSignedData [15:35:20]FM_MakeSignedData [15:35:20]SAM_PROTO_SignData [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 01 02 [15:35:20]Write to MH i2c: E2 08 00 BF 0D 80 0D 01 02 00 00 00 00 45 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]wFMCommunicate request_size=255 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B8 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [15:35:20]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B8 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 84 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]wFMCommunicate request_size=42 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 0A 00 00 35 04 06 00 B4 0D 4F 1B 59 C3 [15:35:20]Write to MH i2c: E2 2D 00 C1 0D 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 0A 00 00 35 04 06 00 B4 0D 4F 1B 59 C3 00 00 E4 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [15:35:21]RAPDU: 90 00 [15:35:21]wFMCommunicate OK [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 0D 03 02 [15:35:21]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0B 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0B 00 C2 0D 00 2E 7C 08 E9 5D 46 C0 EA 90 00 33 [15:35:21]RAPDU: 2E 7C 08 E9 5D 46 C0 EA 90 00 [15:35:21]wFMCommunicate OK [15:35:21]SAM_PROTO_SignData done [15:35:21]FM_MakeSignedData done [15:35:21]CreateOFDProtocolMessage [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 11 00 00 [15:35:21]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 17 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9A [15:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:35:21]wFMCommunicate OK [15:35:21]CreateOFDProtocolMessage done [15:35:21]OFDSenderStorePacket 2681 [15:35:21]StoreOFDPacket docnum=2681 [15:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 A0 C9 27 01 17 2B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B8 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 0A 00 00 35 04 06 00 B4 0D 4F 1B 59 C3 2E 7C 08 E9 5D 46 C0 EA [15:35:21]CheckFolder [15:35:21]dirname=/storage/ofd_packets [15:35:21]CheckFolder done [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00002681 [15:35:21]NVStorageSaveData ofd_packets/00002681 [15:35:21]File name is /storage/ofd_packets/00002681 [15:35:21]Write 333 bytes [15:35:21]NVStorageSaveData done [15:35:21]OFDSenderStorePacket done [15:35:21]KKMCreateOFDPacket done [15:35:21]NVStorageSaveData kkm_last_timestamp [15:35:21]File name is /storage/kkm_last_timestamp [15:35:21]Write 4 bytes [15:35:21]NVStorageSaveData done [15:35:21]ExternCall_PrintAddStr [15:35:21]wPrintStart [15:35:21]Write to MH i2c: 01 00 00 C4 0D D1 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [15:35:21]RasterBufferAndPrint [15:35:21]line Счет N : (3)126839 [15:35:21]line ИНН: 02508201610067 [15:35:21]line Контрольно-Кассовый Чек [15:35:21]line ПРОДАЖА [15:35:21]line Товар: 4700002082191 [15:35:21]line Водка Белое золото 0,46л [15:35:21]line 1.000 * 350.00 [15:35:21]line = 350.00 [15:35:21]line НДС 12% НСП 1% [15:35:21]line > о реализуемом товаре [15:35:21]line ИТОГО: 350.00 [15:35:21]line НСП 1% : 3.10 [15:35:21]line НДС 12% : 37.17 [15:35:21]line Наличными: 350.00 [15:35:21]line Безнал.: 0.00 [15:35:21]line Место: АЗС № 127 "Партнер Нефть" [15:35:21]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:35:21]line СНО: Общий режим [15:35:21]line Чек 134 31.07.2024 15:35 [15:35:21]line Смена: 17 ФФД: 1.0 [15:35:21]line ЗНМ: 0300000161 [15:35:21]line РНМ: 0000000000189667 [15:35:21]line Версия ККМ: v1.0 [15:35:21]line ФМ: 0000000002094248 [15:35:21]line ФД: 2681 [15:35:21]line ФПД: 197969254767043 [15:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T153520&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2681&fm=197969254767043&tin=02508201610067®Number=0000000000189667&sum=35000 [15:35:21]line 0 [15:35:21]OFD Sender: Processing packet 2681 [packets to send 1, broken 0] [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00002681 [15:35:21]OFD Sender: To server: pG, [15:35:21]CommunicateWithHost lk.salyk.kg:30040 [15:35:21]ConnectInit lk.salyk.kg [15:35:21]written 0, free lines is 4095 [15:35:21]Connected sock=9 [15:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 A0 C9 27 01 17 2B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B8 59 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 0A 00 00 35 04 06 00 B4 0D 4F 1B 59 C3 2E 7C 08 E9 5D 46 C0 EA [15:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 62 CA 47 00 25 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 32 30 39 34 32 34 38 10 04 04 00 79 0A 00 00 F4 03 04 00 1E 05 AA 66 B6 04 01 00 00 E4 C9 0F 47 AE BB D8 32 [15:35:21]CommunicateWithHost err = 0 [15:35:21]CheckOFDResponse [15:35:21]1017 (14) - 77093643461234 [15:35:21]1041 (16) - 0000000002094248 [15:35:21]1040 (4) - 2681 [15:35:21]1012 (4) - 31.07.2024 09:34 [15:35:21]1206 (1) - 0 [15:35:21]OFD Sender: Remove packet 2681 [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00002681 [15:35:21]NVStorageDeleteData [15:35:21]Write to MH i2c: 01 00 00 EC 0D F9 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 23 0D 30 [15:35:21]RasterBufferAndPrint [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]written 0, free lines is 3370 [15:35:21]MH_Cut [15:35:21]Write to MH i2c: D1 01 00 F3 0D 01 D2 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 01 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 01 00 F3 0D 00 D1 [15:35:21]Write to MH i2c: 01 00 00 F4 0D 01 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:22]OFD Sender: No OFD packet to send [15:35:22]*** Cut start [15:35:22]*** Partial cut [15:35:22]*** CUTSNS_PIN = 1 [15:35:22]*** CUTSNS_PIN = 0 [15:35:22]*** Brake cut motor [15:35:23]Read from MH i2c: 01 [15:35:23]MH_I2C_Read... [15:35:23]*** Stop cut motor [15:35:23]*** Cut end [15:35:23]Read from MH i2c: 01 07 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 FF 0F 16 [15:35:23]process_action close_receipt done [15:35:23]requested_data is exist [15:35:23]produce_requested_data [15:35:23]requested_item fm.sn is exist - process it [15:35:23]wFMCommunicate request_size=4 [15:35:23]MH_SAM_APDU [15:35:23]CAPDU: 80 11 00 00 [15:35:23]Write to MH i2c: E2 08 00 F5 0D 80 11 00 00 00 00 00 00 7C [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:23]Read from MH i2c: E2 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 17 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 17 00 F5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CC [15:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:35:23]wFMCommunicate OK [15:35:23]requested_item fd.num is exist - process it [15:35:23]SAM_PROTO_GetFieldsCounters [15:35:23]wFMCommunicate request_size=4 [15:35:23]MH_SAM_APDU [15:35:23]CAPDU: 80 13 00 00 [15:35:23]Write to MH i2c: E2 08 00 F6 0D 80 13 00 00 00 00 00 00 7F [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:23]Read from MH i2c: E2 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 62 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 62 00 F6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 79 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 79 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:23]wFMCommunicate OK [15:35:23]SAM_PROTO_GetFieldsCounters done [15:35:23]requested_item shift.num is exist - process it [15:35:23]requested_item shift.opened is exist - process it [15:35:23]req_shift_opened [15:35:23]FM_GetShiftState [15:35:23]SAM_PROTO_GetShiftState [15:35:23]wFMCommunicate request_size=4 [15:35:23]MH_SAM_APDU [15:35:23]CAPDU: 80 13 01 00 [15:35:23]Write to MH i2c: E2 08 00 F7 0D 80 13 01 00 00 00 00 00 81 [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:23]Read from MH i2c: E2 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 0E 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 0E 00 F7 0D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 4E [15:35:23]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:35:23]wFMCommunicate OK [15:35:23]SAM_PROTO_GetShiftState done [15:35:23]FM_GetShiftState done [15:35:23]req_shift_opened done [15:35:23]requested_item shift.open_date is exist - process it [15:35:23]req_shift_open_date [15:35:23]req_shift_open_date done [15:35:23]produce_requested_data done [15:35:23]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2681,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [15:35:23]process_action_free close_receipt [15:35:23]json_value_free [15:35:23]json_value_free done [15:35:23]process_json_proto returns [15:35:23]Send response to host [15:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2681,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [15:35:23]free response buf [15:35:23]execute_script done [15:35:23]execute_script returns [15:35:23]free content buf [15:35:23]Sock 8.Close socket [15:35:23]Sock 8.Thread stoped [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:25]accept exits with 10 [15:40:25]New connection [15:40:25]New thread 3066781028 created [15:40:25]Thread 3066637668 joined [15:40:25]Waiting for new connection... [15:40:25] Sock 10.Parse request [15:40:25]Sock 10.Check first char [15:40:25]Sock 10.First char is OK [15:40:25]request: POST /json_proto HTTP/1.0 [15:40:25]Method: POST [15:40:25]URL: /json_proto [15:40:25]Method is POST - this is cgi request [15:40:25]url: /json_proto [15:40:25]query_string will be loaded in cgi processing [15:40:25]execute_cgi json_proto POST (null) [15:40:25]execute_cgi path=json_proto method=POST [15:40:25]POST find Content-Length [15:40:25]Host: 172.17.45.132:8080 [15:40:25]Content-Length: 677 [15:40:25]Content-Type: application/json [15:40:25] [15:40:25]POST finish read [15:40:25]Found Content-Length = 677 [15:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:25]execute_script... [15:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:25]POST & json_proto [15:40:25]process_json_proto [15:40:25]json parsed OK: [15:40:25]protocol is kg_v1.0 [15:40:25]action value=close_receipt [15:40:25]process_action close_receipt [15:40:25]cmd_close_receipt [15:40:25]MH_GetDate [15:40:25]Write to MH i2c: F0 00 00 F8 0D F4 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 09 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 09 00 F8 0D 00 EA 5A AA 66 E3 0B 90 66 35 [15:40:25]GetLastDocTimeStamp 1722440120 [15:40:25]current date 1722440426 [15:40:25]FM_GetShiftState [15:40:25]SAM_PROTO_GetShiftState [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 13 01 00 [15:40:25]Write to MH i2c: E2 08 00 F9 0D 80 13 01 00 00 00 00 00 83 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 F9 0D 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 50 [15:40:25]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:40:25]wFMCommunicate OK [15:40:25]SAM_PROTO_GetShiftState done [15:40:25]FM_GetShiftState done [15:40:25]opened in 1722384689 [15:40:25]opened+sec_in_day 1722471089 [15:40:25]quantity*price = 40002 [15:40:25]sum+1 = 40003 [15:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 135 31.07.2024 15:40 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2682 ФПД: 11671457030583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T154026&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2682&fm=11671457030583&tin=02508201610067®Number=0000000000189667&sum=40000 [15:40:26]StoreToDocumentArchive [15:40:26]shift 17 fd 2682 [15:40:26]save to /storage/0017/doc_00002682 [15:40:26]save last doc name /storage/0017/doc_00002682 to /storage/kkm_last_doc_name [15:40:26]save OK [15:40:26]Clear old archive folders... [15:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:26]tlvbuf is 00EAD250 [15:40:26]SAM_PROTO_ClearQueue [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 09 00 00 [15:40:26]Write to MH i2c: E2 08 00 06 0E 80 09 00 00 00 00 00 00 86 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]SAM_PROTO_ClearQueue done [15:40:26]KKMCreateOFDPacket [15:40:26]OFDProtocolAddRootSTLVToBuf [15:40:26]FM_MakeSignedData [15:40:26]FM_MakeSignedData [15:40:26]SAM_PROTO_SignData [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 01 02 [15:40:26]Write to MH i2c: E2 08 00 07 0E 80 0D 01 02 00 00 00 00 8E [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]wFMCommunicate request_size=255 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 EA 5A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 0A 00 00 35 04 06 00 0A [15:40:26]Write to MH i2c: E2 02 01 08 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 EA 5A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 0A 00 00 35 04 06 00 0A 00 00 72 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]wFMCommunicate request_size=10 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 02 02 05 9D 79 0C E1 B7 [15:40:26]Write to MH i2c: E2 0D 00 09 0E 80 0D 02 02 05 00 9D 79 0C E1 B7 00 00 55 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 03 02 [15:40:26]Write to MH i2c: E2 08 00 0A 0E 80 0D 03 02 00 00 00 00 93 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 0A 0E 00 2C A2 D5 6F 46 F3 8C 19 90 00 84 [15:40:27]RAPDU: 2C A2 D5 6F 46 F3 8C 19 90 00 [15:40:27]wFMCommunicate OK [15:40:27]SAM_PROTO_SignData done [15:40:27]FM_MakeSignedData done [15:40:27]CreateOFDProtocolMessage [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 11 00 00 [15:40:27]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E3 [15:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:40:27]wFMCommunicate OK [15:40:27]CreateOFDProtocolMessage done [15:40:27]OFDSenderStorePacket 2682 [15:40:27]StoreOFDPacket docnum=2682 [15:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 85 3F 07 01 5A 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 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 EA 5A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 0A 00 00 35 04 06 00 0A 9D 79 0C E1 B7 2C A2 D5 6F 46 F3 8C 19 [15:40:27]CheckFolder [15:40:27]dirname=/storage/ofd_packets [15:40:27]CheckFolder done [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00002682 [15:40:27]NVStorageSaveData ofd_packets/00002682 [15:40:27]File name is /storage/ofd_packets/00002682 [15:40:27]Write 301 bytes [15:40:27]NVStorageSaveData done [15:40:27]OFDSenderStorePacket done [15:40:27]KKMCreateOFDPacket done [15:40:27]NVStorageSaveData kkm_last_timestamp [15:40:27]File name is /storage/kkm_last_timestamp [15:40:27]Write 4 bytes [15:40:27]NVStorageSaveData done [15:40:27]ExternCall_PrintAddStr [15:40:27]wPrintStart [15:40:27]Write to MH i2c: 01 00 00 0C 0E 1A [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 FF 0F 2F [15:40:27]RasterBufferAndPrint [15:40:27]line Счет N : (1)611242 [15:40:27]line ИНН: 02508201610067 [15:40:27]line Контрольно-Кассовый Чек [15:40:27]line ПРОДАЖА [15:40:27]line ТРК (МРК, ГНК) : 62 [15:40:27]line Товар: 2710124130 [15:40:27]line Аи-92-К-2 [15:40:27]line 5.900 * 67.80 [15:40:27]line = 400.02 [15:40:27]line НДС 12% НСП 1% [15:40:27]line > о реализуемом товаре [15:40:27]line ОКРУГЛЕНИЕ: -0.02 [15:40:27]line ИТОГО: 400.00 [15:40:27]line Внесено: 400.00 [15:40:27]line СДАЧА: 0.00 [15:40:27]line НСП 1% : 3.54 [15:40:27]line НДС 12% : 42.48 [15:40:27]line Наличными: 400.00 [15:40:27]line Безнал.: 0.00 [15:40:27]line Место: АЗС № 127 "Партнер Нефть" [15:40:27]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:40:27]line СНО: Общий режим [15:40:27]line Чек 135 31.07.2024 15:40 [15:40:27]line Смена: 17 ФФД: 1.0 [15:40:27]line ЗНМ: 0300000161 [15:40:27]line РНМ: 0000000000189667 [15:40:27]line Версия ККМ: v1.0 [15:40:27]line ФМ: 0000000002094248 [15:40:27]line ФД: 2682 [15:40:27]line ФПД: 11671457030583 [15:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T154026&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2682&fm=11671457030583&tin=02508201610067®Number=0000000000189667&sum=40000 [15:40:27]written 0, free lines is 4095 [15:40:27]OFD Sender: Processing packet 2682 [packets to send 1, broken 0] [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00002682 [15:40:27]OFD Sender: To server: pG, [15:40:27]CommunicateWithHost lk.salyk.kg:30040 [15:40:27]ConnectInit lk.salyk.kg [15:40:27]Connected sock=9 [15:40:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 85 3F 07 01 5A 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 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 EA 5A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 0A 00 00 35 04 06 00 0A 9D 79 0C E1 B7 2C A2 D5 6F 46 F3 8C 19 [15:40:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9B AF 47 00 FF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 0A 00 00 F4 03 04 00 50 06 AA 66 B6 04 01 00 00 0B EF D3 91 5F 4E 58 F6 [15:40:27]CommunicateWithHost err = 0 [15:40:27]CheckOFDResponse [15:40:27]1017 (14) - 77093643461234 [15:40:27]1041 (16) - 0000000002094248 [15:40:27]1040 (4) - 2682 [15:40:27]1012 (4) - 31.07.2024 09:39 [15:40:27]1206 (1) - 0 [15:40:27]OFD Sender: Remove packet 2682 [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00002682 [15:40:27]NVStorageDeleteData [15:40:27]Write to MH i2c: 01 00 00 37 0E 45 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 F3 0C 4B [15:40:27]RasterBufferAndPrint [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]written 0, free lines is 3321 [15:40:27]MH_Cut [15:40:27]Write to MH i2c: D1 01 00 3E 0E 01 1E [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 01 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 01 00 3E 0E 00 1D [15:40:27]Write to MH i2c: 01 00 00 3F 0E 4D [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:28]OFD Sender: No OFD packet to send [15:40:28]*** Cut start [15:40:28]*** Partial cut [15:40:28]*** CUTSNS_PIN = 1 [15:40:28]*** CUTSNS_PIN = 0 [15:40:28]*** Brake cut motor [15:40:29]Read from MH i2c: 01 [15:40:29]MH_I2C_Read... [15:40:29]*** Stop cut motor [15:40:29]*** Cut end [15:40:29]Read from MH i2c: 01 07 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 FF 0F 62 [15:40:29]process_action close_receipt done [15:40:29]requested_data is exist [15:40:29]produce_requested_data [15:40:29]requested_item fm.sn is exist - process it [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 11 00 00 [15:40:29]Write to MH i2c: E2 08 00 40 0E 80 11 00 00 00 00 00 00 C8 [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 40 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [15:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:40:29]wFMCommunicate OK [15:40:29]requested_item fd.num is exist - process it [15:40:29]SAM_PROTO_GetFieldsCounters [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 00 00 [15:40:29]Write to MH i2c: E2 08 00 41 0E 80 13 00 00 00 00 00 00 CB [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 62 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 62 00 41 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [15:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetFieldsCounters done [15:40:29]requested_item shift.num is exist - process it [15:40:29]requested_item shift.opened is exist - process it [15:40:29]req_shift_opened [15:40:29]FM_GetShiftState [15:40:29]SAM_PROTO_GetShiftState [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 01 00 [15:40:29]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 9A [15:40:29]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetShiftState done [15:40:29]FM_GetShiftState done [15:40:29]req_shift_opened done [15:40:29]requested_item shift.open_date is exist - process it [15:40:29]req_shift_open_date [15:40:29]req_shift_open_date done [15:40:29]produce_requested_data done [15:40:29]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2682,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [15:40:29]process_action_free close_receipt [15:40:29]json_value_free [15:40:29]json_value_free done [15:40:29]process_json_proto returns [15:40:29]Send response to host [15:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2682,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [15:40:29]free response buf [15:40:29]execute_script done [15:40:29]execute_script returns [15:40:29]free content buf [15:40:29]Sock 10.Close socket [15:40:29]Sock 10.Thread stoped [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:57]accept exits with 8 [15:52:57]New connection [15:52:57]New thread 3066637668 created [15:52:57]Thread 3066781028 joined [15:52:57]Waiting for new connection... [15:52:57] Sock 8.Parse request [15:52:57]Sock 8.Check first char [15:52:57]Sock 8.First char is OK [15:52:57]request: POST /json_proto HTTP/1.0 [15:52:57]Method: POST [15:52:57]URL: /json_proto [15:52:57]Method is POST - this is cgi request [15:52:57]url: /json_proto [15:52:57]query_string will be loaded in cgi processing [15:52:57]execute_cgi json_proto POST (null) [15:52:57]execute_cgi path=json_proto method=POST [15:52:57]POST find Content-Length [15:52:57]Host: 172.17.45.132:8080 [15:52:57]Content-Length: 829 [15:52:57]Content-Type: application/json [15:52:57] [15:52:57]POST finish read [15:52:57]Found Content-Length = 829 [15:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126840", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:57]execute_script... [15:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126840", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:57]POST & json_proto [15:52:57]process_json_proto [15:52:57]json parsed OK: [15:52:57]protocol is kg_v1.0 [15:52:57]action value=close_receipt [15:52:57]process_action close_receipt [15:52:57]cmd_close_receipt [15:52:57]MH_GetDate [15:52:57]Write to MH i2c: F0 00 00 43 0E 40 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 09 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 09 00 43 0E 00 DA 5D AA 66 E3 0B 90 66 74 [15:52:57]GetLastDocTimeStamp 1722440426 [15:52:57]current date 1722441178 [15:52:57]FM_GetShiftState [15:52:57]SAM_PROTO_GetShiftState [15:52:57]wFMCommunicate request_size=4 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 13 01 00 [15:52:57]Write to MH i2c: E2 08 00 44 0E 80 13 01 00 00 00 00 00 CF [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:57]Read from MH i2c: E2 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 0E 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 0E 00 44 0E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 9C [15:52:57]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:52:57]wFMCommunicate OK [15:52:57]SAM_PROTO_GetShiftState done [15:52:57]FM_GetShiftState done [15:52:57]opened in 1722384689 [15:52:57]opened+sec_in_day 1722471089 [15:52:57]quantity*price = 13000 [15:52:57]sum+1 = 13001 [15:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 136 31.07.2024 15:52 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2683 ФПД: 191266033488156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T155258&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2683&fm=191266033488156&tin=02508201610067®Number=0000000000189667&sum=13000 0 [15:52:58]StoreToDocumentArchive [15:52:58]shift 17 fd 2683 [15:52:58]save to /storage/0017/doc_00002683 [15:52:58]save last doc name /storage/0017/doc_00002683 to /storage/kkm_last_doc_name [15:52:58]save OK [15:52:58]Clear old archive folders... [15:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=296 [15:52:58]tlvbuf is B6E7E750 [15:52:58]SAM_PROTO_ClearQueue [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 09 00 00 [15:52:58]Write to MH i2c: E2 08 00 51 0E 80 09 00 00 00 00 00 00 D1 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]SAM_PROTO_ClearQueue done [15:52:58]KKMCreateOFDPacket [15:52:58]OFDProtocolAddRootSTLVToBuf [15:52:58]FM_MakeSignedData [15:52:58]FM_MakeSignedData [15:52:58]SAM_PROTO_SignData [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 0D 01 02 [15:52:58]Write to MH i2c: E2 08 00 52 0E 80 0D 01 02 00 00 00 00 D9 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]wFMCommunicate request_size=255 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DA 5D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [15:52:58]Write to MH i2c: E2 02 01 53 0E 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DA 5D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 8F [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]OFD Sender: No OFD packet to send [15:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [15:52:59]RAPDU: 90 00 [15:52:59]wFMCommunicate OK [15:52:59]wFMCommunicate request_size=55 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 0A 00 00 35 04 06 00 AD F4 97 FB D1 1C [15:52:59]Write to MH i2c: E2 3A 00 54 0E 80 0D 02 02 32 00 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 0A 00 00 35 04 06 00 AD F4 97 FB D1 1C 00 00 E3 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [15:52:59]RAPDU: 90 00 [15:52:59]wFMCommunicate OK [15:52:59]wFMCommunicate request_size=4 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 0D 03 02 [15:52:59]Write to MH i2c: E2 08 00 55 0E 80 0D 03 02 00 00 00 00 DE [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0B 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0B 00 55 0E 00 84 FA 82 8E B4 CD 2A FA 90 00 12 [15:52:59]RAPDU: 84 FA 82 8E B4 CD 2A FA 90 00 [15:52:59]wFMCommunicate OK [15:52:59]SAM_PROTO_SignData done [15:52:59]FM_MakeSignedData done [15:52:59]CreateOFDProtocolMessage [15:52:59]wFMCommunicate request_size=4 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 11 00 00 [15:52:59]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 17 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2E [15:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:52:59]wFMCommunicate OK [15:52:59]CreateOFDProtocolMessage done [15:52:59]OFDSenderStorePacket 2683 [15:52:59]StoreOFDPacket docnum=2683 [15:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 B8 31 34 01 37 D0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DA 5D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 0A 00 00 35 04 06 00 AD F4 97 FB D1 1C 84 FA 82 8E B4 CD 2A FA [15:52:59]CheckFolder [15:52:59]dirname=/storage/ofd_packets [15:52:59]CheckFolder done [15:52:59]ProducePacketName [15:52:59]name=ofd_packets/00002683 [15:52:59]NVStorageSaveData ofd_packets/00002683 [15:52:59]File name is /storage/ofd_packets/00002683 [15:52:59]Write 346 bytes [15:52:59]NVStorageSaveData done [15:52:59]OFDSenderStorePacket done [15:52:59]KKMCreateOFDPacket done [15:52:59]NVStorageSaveData kkm_last_timestamp [15:52:59]File name is /storage/kkm_last_timestamp [15:52:59]Write 4 bytes [15:52:59]NVStorageSaveData done [15:52:59]ExternCall_PrintAddStr [15:52:59]wPrintStart [15:52:59]Write to MH i2c: 01 00 00 57 0E 65 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [15:52:59]RasterBufferAndPrint [15:52:59]line Счет N : (3)126840 [15:52:59]line ИНН: 02508201610067 [15:52:59]line Контрольно-Кассовый Чек [15:52:59]line ПРОДАЖА [15:52:59]line Товар: 4870002329951 [15:52:59]line Напиток Lipton IceTea 1л зел чай Regular [15:52:59]line 1.000 * 130.00 [15:52:59]line = 130.00 [15:52:59]line НДС 12% НСП 1% [15:52:59]line > о реализуемом товаре [15:52:59]line ИТОГО: 130.00 [15:52:59]line НСП 1% : 1.15 [15:52:59]line НДС 12% : 13.80 [15:52:59]line Наличными: 0.00 [15:52:59]line Безнал.: 130.00 [15:52:59]line Место: АЗС № 127 "Партнер Нефть" [15:52:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:52:59]line СНО: Общий режим [15:52:59]line Чек 136 31.07.2024 15:52 [15:52:59]line Смена: 17 ФФД: 1.0 [15:52:59]line ЗНМ: 0300000161 [15:52:59]line РНМ: 0000000000189667 [15:52:59]line Версия ККМ: v1.0 [15:52:59]line Платежная система: O! деньги [15:52:59]line ФМ: 0000000002094248 [15:52:59]line ФД: 2683 [15:52:59]line ФПД: 191266033488156 [15:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T155258&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2683&fm=191266033488156&tin=02508201610067®Number=0000000000189667&sum=13000 [15:52:59]line 0 [15:52:59]OFD Sender: Processing packet 2683 [packets to send 1, broken 0] [15:52:59]ProducePacketName [15:52:59]name=ofd_packets/00002683 [15:52:59]OFD Sender: To server: pG, [15:52:59]CommunicateWithHost lk.salyk.kg:30040 [15:52:59]ConnectInit lk.salyk.kg [15:52:59]written 0, free lines is 4095 [15:52:59]Connected sock=10 [15:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 B8 31 34 01 37 D0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DA 5D AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 0A 00 00 35 04 06 00 AD F4 97 FB D1 1C 84 FA 82 8E B4 CD 2A FA [15:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C5 BF 47 00 4D 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 32 30 39 34 32 34 38 10 04 04 00 7B 0A 00 00 F4 03 04 00 40 09 AA 66 B6 04 01 00 00 7A 01 78 29 93 0E D0 8B [15:52:59]CommunicateWithHost err = 0 [15:52:59]CheckOFDResponse [15:52:59]1017 (14) - 77093643461234 [15:52:59]1041 (16) - 0000000002094248 [15:52:59]1040 (4) - 2683 [15:52:59]1012 (4) - 31.07.2024 09:52 [15:52:59]1206 (1) - 0 [15:52:59]OFD Sender: Remove packet 2683 [15:52:59]ProducePacketName [15:52:59]name=ofd_packets/00002683 [15:52:59]NVStorageDeleteData [15:53:00]Write to MH i2c: 01 00 00 82 0E 90 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: 01 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: 01 07 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 F3 0C 96 [15:53:00]RasterBufferAndPrint [15:53:00]line [15:53:00]line [15:53:00]line [15:53:00]line [15:53:00]line [15:53:00]written 0, free lines is 3321 [15:53:00]MH_Cut [15:53:00]Write to MH i2c: D1 01 00 89 0E 01 69 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: D1 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: D1 01 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: D1 01 00 89 0E 00 68 [15:53:00]Write to MH i2c: 01 00 00 8A 0E 98 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]OFD Sender: No OFD packet to send [15:53:00]*** Cut start [15:53:00]*** Partial cut [15:53:00]*** CUTSNS_PIN = 1 [15:53:00]*** CUTSNS_PIN = 0 [15:53:01]*** Brake cut motor [15:53:01]Read from MH i2c: 01 [15:53:01]MH_I2C_Read... [15:53:01]*** Stop cut motor [15:53:01]*** Cut end [15:53:01]Read from MH i2c: 01 07 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FF 0F AD [15:53:01]process_action close_receipt done [15:53:01]requested_data is exist [15:53:01]produce_requested_data [15:53:01]requested_item fm.sn is exist - process it [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 11 00 00 [15:53:01]Write to MH i2c: E2 08 00 8B 0E 80 11 00 00 00 00 00 00 13 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 17 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 17 00 8B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 63 [15:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:53:01]wFMCommunicate OK [15:53:01]requested_item fd.num is exist - process it [15:53:01]SAM_PROTO_GetFieldsCounters [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 13 00 00 [15:53:01]Write to MH i2c: E2 08 00 8C 0E 80 13 00 00 00 00 00 00 16 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 62 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 62 00 8C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:01]wFMCommunicate OK [15:53:01]SAM_PROTO_GetFieldsCounters done [15:53:01]requested_item shift.num is exist - process it [15:53:01]requested_item shift.opened is exist - process it [15:53:01]req_shift_opened [15:53:01]FM_GetShiftState [15:53:01]SAM_PROTO_GetShiftState [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 13 01 00 [15:53:01]Write to MH i2c: E2 08 00 8D 0E 80 13 01 00 00 00 00 00 18 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 0E 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 0E 00 8D 0E 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 E5 [15:53:01]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:53:01]wFMCommunicate OK [15:53:01]SAM_PROTO_GetShiftState done [15:53:01]FM_GetShiftState done [15:53:01]req_shift_opened done [15:53:01]requested_item shift.open_date is exist - process it [15:53:01]req_shift_open_date [15:53:01]req_shift_open_date done [15:53:01]produce_requested_data done [15:53:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2683,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [15:53:01]process_action_free close_receipt [15:53:01]json_value_free [15:53:01]json_value_free done [15:53:01]process_json_proto returns [15:53:01]Send response to host [15:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2683,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [15:53:01]free response buf [15:53:01]execute_script done [15:53:01]execute_script returns [15:53:01]free content buf [15:53:01]Sock 8.Close socket [15:53:01]Sock 8.Thread stoped [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:59:00]ConnectInit Can't connect to host [15:59:04]OFD Sender: Processing packet 2684 [packets to send 4, broken 0] [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00002684 [15:59:04]OFD Sender: To server: pG, [15:59:04]CommunicateWithHost lk.salyk.kg:30040 [15:59:04]ConnectInit lk.salyk.kg [15:59:04]Connected sock=8 [15:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 92 0A 19 01 61 C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 04 5E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 0A 00 00 35 04 06 00 E7 70 E0 95 E9 F2 1E 03 E1 12 E8 64 82 6F [15:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C2 B7 47 00 11 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 32 30 39 34 32 34 38 10 04 04 00 7C 0A 00 00 F4 03 04 00 AC 0A AA 66 B6 04 01 00 00 18 A5 F5 19 F2 40 E7 B0 [15:59:04]CommunicateWithHost err = 0 [15:59:04]CheckOFDResponse [15:59:04]1017 (14) - 77093643461234 [15:59:04]1041 (16) - 0000000002094248 [15:59:04]1040 (4) - 2684 [15:59:04]1012 (4) - 31.07.2024 09:58 [15:59:04]1206 (1) - 0 [15:59:04]OFD Sender: Remove packet 2684 [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00002684 [15:59:04]NVStorageDeleteData [15:59:05]OFD Sender: Processing packet 2685 [packets to send 3, broken 0] [15:59:05]ProducePacketName [15:59:05]name=ofd_packets/00002685 [15:59:05]OFD Sender: To server: pG, [15:59:05]CommunicateWithHost lk.salyk.kg:30040 [15:59:05]ConnectInit lk.salyk.kg [15:59:05]Connected sock=8 [15:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 55 02 07 01 1B 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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 22 5E AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7D 0A 00 00 35 04 06 00 28 19 C8 F6 E2 95 4F DD B0 9C 55 17 BA 50 [15:59:05]accept exits with 10 [15:59:05]New connection [15:59:05]New thread 3066781028 created [15:59:05]Thread 3066637668 joined [15:59:05]Waiting for new connection... [15:59:05] Sock 10.Parse request [15:59:05]Sock 10.Check first char [15:59:05]Sock 10.First char is OK [15:59:05]request: POST /json_proto HTTP/1.0 [15:59:05]Method: POST [15:59:05]URL: /json_proto [15:59:05]Method is POST - this is cgi request [15:59:05]url: /json_proto [15:59:05]query_string will be loaded in cgi processing [15:59:05]execute_cgi json_proto POST (null) [15:59:05]execute_cgi path=json_proto method=POST [15:59:05]POST find Content-Length [15:59:05]Host: 172.17.45.132:8080 [15:59:05]Content-Length: 682 [15:59:05]Content-Type: application/json [15:59:05] [15:59:05]POST finish read [15:59:05]Found Content-Length = 682 [15:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:05]execute_script... [15:59: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)611254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:05]POST & json_proto [15:59:05]process_json_proto [15:59:05]json parsed OK: [15:59:05]protocol is kg_v1.0 [15:59:05]action value=close_receipt [15:59:05]process_action close_receipt [15:59:05]cmd_close_receipt [15:59:05]MH_GetDate [15:59:05]Write to MH i2c: F0 00 00 B6 0F B4 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 09 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 09 00 B6 0F 00 4A 5F AA 66 E3 0B 90 66 5A [15:59:05]GetLastDocTimeStamp 1722441502 [15:59:05]current date 1722441546 [15:59:05]FM_GetShiftState [15:59:05]SAM_PROTO_GetShiftState [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 13 01 00 [15:59:05]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 10 [15:59:05]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:59:05]wFMCommunicate OK [15:59:05]SAM_PROTO_GetShiftState done [15:59:05]FM_GetShiftState done [15:59:05]opened in 1722384689 [15:59:05]opened+sec_in_day 1722471089 [15:59:05]quantity*price = 100005 [15:59:05]sum+1 = 100006 [15:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 141 31.07.2024 15:59 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2688 ФПД: 276497595596254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T155906&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2688&fm=276497595596254&tin=02508201610067®Number=0000000000189667&sum=100000 [15:59:06]StoreToDocumentArchive [15:59:06]shift 17 fd 2688 [15:59:06]save to /storage/0017/doc_00002688 [15:59:06]save last doc name /storage/0017/doc_00002688 to /storage/kkm_last_doc_name [15:59:06]save OK [15:59:06]Clear old archive folders... [15:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:06]tlvbuf is 00E4E580 [15:59:06]SAM_PROTO_ClearQueue [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 09 00 00 [15:59:06]Write to MH i2c: E2 08 00 C4 0F 80 09 00 00 00 00 00 00 45 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_ClearQueue done [15:59:06]KKMCreateOFDPacket [15:59:06]OFDProtocolAddRootSTLVToBuf [15:59:06]FM_MakeSignedData [15:59:06]FM_MakeSignedData [15:59:06]SAM_PROTO_SignData [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 01 02 [15:59:06]Write to MH i2c: E2 08 00 C5 0F 80 0D 01 02 00 00 00 00 4D [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=255 [15:59:06]MH_SAM_APDU [15:59: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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4A 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 0A 00 00 35 04 06 00 FB [15:59:06]Write to MH i2c: E2 02 01 C6 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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4A 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 0A 00 00 35 04 06 00 FB 00 00 3D [15:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 20 FA 47 00 B9 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7E 0A 00 00 F4 03 04 00 AE 0A AA 66 B6 04 01 00 00 64 64 B6 AD D4 6E 96 AA [15:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:06]CommunicateWithHost err = 0 [15:59:06]CheckOFDResponse [15:59:06]1017 (14) - 77093643461234 [15:59:06]1041 (16) - 0000000002094248 [15:59:06]1040 (4) - 2686 [15:59:06]1012 (4) - 31.07.2024 09:58 [15:59:06]1206 (1) - 0 [15:59:06]OFD Sender: Remove packet 2686 [15:59:06]ProducePacketName [15:59:06]name=ofd_packets/00002686 [15:59:06]NVStorageDeleteData [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=10 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 02 02 05 79 1C F7 7D DE [15:59:06]Write to MH i2c: E2 0D 00 C7 0F 80 0D 02 02 05 00 79 1C F7 7D DE 00 00 41 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 03 02 [15:59:06]Write to MH i2c: E2 08 00 C8 0F 80 0D 03 02 00 00 00 00 52 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0B 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0B 00 C8 0F 00 99 FD 8A 3C C5 E7 83 FB 90 00 D9 [15:59:06]RAPDU: 99 FD 8A 3C C5 E7 83 FB 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_SignData done [15:59:06]FM_MakeSignedData done [15:59:06]CreateOFDProtocolMessage [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 11 00 00 [15:59:06]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 17 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A2 [15:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:59:06]wFMCommunicate OK [15:59:06]CreateOFDProtocolMessage done [15:59:06]OFDSenderStorePacket 2688 [15:59:06]StoreOFDPacket docnum=2688 [15:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 4D A2 07 01 14 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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4A 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 0A 00 00 35 04 06 00 FB 79 1C F7 7D DE 99 FD 8A 3C C5 E7 83 FB [15:59:07]CheckFolder [15:59:07]dirname=/storage/ofd_packets [15:59:07]CheckFolder done [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00002688 [15:59:07]NVStorageSaveData ofd_packets/00002688 [15:59:07]File name is /storage/ofd_packets/00002688 [15:59:07]Write 301 bytes [15:59:07]NVStorageSaveData done [15:59:07]OFDSenderStorePacket done [15:59:07]KKMCreateOFDPacket done [15:59:07]NVStorageSaveData kkm_last_timestamp [15:59:07]File name is /storage/kkm_last_timestamp [15:59:07]Write 4 bytes [15:59:07]NVStorageSaveData done [15:59:07]ExternCall_PrintAddStr [15:59:07]wPrintStart [15:59:07]Write to MH i2c: 01 00 00 CA 0F D9 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [15:59:07]RasterBufferAndPrint [15:59:07]line Счет N : (1)611254 [15:59:07]line ИНН: 02508201610067 [15:59:07]line Контрольно-Кассовый Чек [15:59:07]line ПРОДАЖА [15:59:07]line ТРК (МРК, ГНК) : 52 [15:59:07]line Товар: 2710124130 [15:59:07]line Аи-92-К-2 [15:59:07]line 14.750 * 67.80 [15:59:07]line = 1000.05 [15:59:07]line НДС 12% НСП 1% [15:59:07]line > о реализуемом товаре [15:59:07]line ОКРУГЛЕНИЕ: -0.05 [15:59:07]line ИТОГО: 1000.00 [15:59:07]line Внесено: 1000.00 [15:59:07]line СДАЧА: 0.00 [15:59:07]line НСП 1% : 8.85 [15:59:07]line НДС 12% : 106.20 [15:59:07]line Наличными: 1000.00 [15:59:07]line Безнал.: 0.00 [15:59:07]line Место: АЗС № 127 "Партнер Нефть" [15:59:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:59:07]line СНО: Общий режим [15:59:07]line Чек 141 31.07.2024 15:59 [15:59:07]line Смена: 17 ФФД: 1.0 [15:59:07]line ЗНМ: 0300000161 [15:59:07]line РНМ: 0000000000189667 [15:59:07]line Версия ККМ: v1.0 [15:59:07]line ФМ: 0000000002094248 [15:59:07]line ФД: 2688 [15:59:07]line ФПД: 276497595596254 [15:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T155906&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2688&fm=276497595596254&tin=02508201610067®Number=0000000000189667&sum=100000 [15:59:07]written 0, free lines is 4095 [15:59:07]OFD Sender: Processing packet 2687 [packets to send 2, broken 0] [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00002687 [15:59:07]OFD Sender: To server: pG, [15:59:07]CommunicateWithHost lk.salyk.kg:30040 [15:59:07]ConnectInit lk.salyk.kg [15:59:07]Connected sock=8 [15:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 DC FC 07 01 E4 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1E 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7F 0A 00 00 35 04 06 00 58 44 CF 8A 9B 87 0E 6C 5E 9E AD 92 8C 9D [15:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CC D3 47 00 96 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 32 30 39 34 32 34 38 10 04 04 00 7F 0A 00 00 F4 03 04 00 B0 0A AA 66 B6 04 01 00 00 9B CC E4 44 AB CA 0C C4 [15:59:07]CommunicateWithHost err = 0 [15:59:07]CheckOFDResponse [15:59:07]1017 (14) - 77093643461234 [15:59:07]1041 (16) - 0000000002094248 [15:59:07]1040 (4) - 2687 [15:59:07]1012 (4) - 31.07.2024 09:58 [15:59:07]1206 (1) - 0 [15:59:07]OFD Sender: Remove packet 2687 [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00002687 [15:59:07]NVStorageDeleteData [15:59:07]Write to MH i2c: 01 00 00 F5 0F 04 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 F7 0C 0E [15:59:07]RasterBufferAndPrint [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]written 0, free lines is 3328 [15:59:07]MH_Cut [15:59:07]Write to MH i2c: D1 01 00 FC 0F 01 DD [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 01 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 01 00 FC 0F 00 DC [15:59:07]Write to MH i2c: 01 00 00 FD 0F 0C [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:08]OFD Sender: Processing packet 2688 [packets to send 1, broken 0] [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00002688 [15:59:08]OFD Sender: To server: pG, [15:59:08]CommunicateWithHost lk.salyk.kg:30040 [15:59:08]ConnectInit lk.salyk.kg [15:59:08]Connected sock=8 [15:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 4D A2 07 01 14 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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4A 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 0A 00 00 35 04 06 00 FB 79 1C F7 7D DE 99 FD 8A 3C C5 E7 83 FB [15:59:08]*** Cut start [15:59:08]*** Partial cut [15:59:08]*** CUTSNS_PIN = 1 [15:59:08]*** CUTSNS_PIN = 0 [15:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E5 42 47 00 70 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 32 30 39 34 32 34 38 10 04 04 00 80 0A 00 00 F4 03 04 00 B0 0A AA 66 B6 04 01 00 00 89 7E 32 CB 38 4C E0 46 [15:59:08]CommunicateWithHost err = 0 [15:59:08]CheckOFDResponse [15:59:08]1017 (14) - 77093643461234 [15:59:08]1041 (16) - 0000000002094248 [15:59:08]1040 (4) - 2688 [15:59:08]1012 (4) - 31.07.2024 09:58 [15:59:08]1206 (1) - 0 [15:59:08]OFD Sender: Remove packet 2688 [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00002688 [15:59:08]NVStorageDeleteData [15:59:08]*** Brake cut motor [15:59:09]OFD Sender: No OFD packet to send [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]*** Stop cut motor [15:59:09]*** Cut end [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [15:59:09]process_action close_receipt done [15:59:09]requested_data is exist [15:59:09]produce_requested_data [15:59:09]requested_item fm.sn is exist - process it [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 11 00 00 [15:59:09]Write to MH i2c: E2 08 00 FE 0F 80 11 00 00 00 00 00 00 87 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]OFD Sender: No OFD packet to send [15:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 FE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [15:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:59:09]wFMCommunicate OK [15:59:09]requested_item fd.num is exist - process it [15:59:09]SAM_PROTO_GetFieldsCounters [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 00 00 [15:59:09]Write to MH i2c: E2 08 00 FF 0F 80 13 00 00 00 00 00 00 8A [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 62 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 62 00 FF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 80 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 80 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetFieldsCounters done [15:59:09]requested_item shift.num is exist - process it [15:59:09]requested_item shift.opened is exist - process it [15:59:09]req_shift_opened [15:59:09]FM_GetShiftState [15:59:09]SAM_PROTO_GetShiftState [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 01 00 [15:59:09]Write to MH i2c: E2 08 00 00 10 80 13 01 00 00 00 00 00 8D [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 00 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 5A [15:59:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetShiftState done [15:59:09]FM_GetShiftState done [15:59:09]req_shift_opened done [15:59:09]requested_item shift.open_date is exist - process it [15:59:09]req_shift_open_date [15:59:09]req_shift_open_date done [15:59:09]produce_requested_data done [15:59:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2688,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [15:59:09]process_action_free close_receipt [15:59:09]json_value_free [15:59:09]json_value_free done [15:59:09]process_json_proto returns [15:59:09]Send response to host [15:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2688,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [15:59:09]free response buf [15:59:09]execute_script done [15:59:09]execute_script returns [15:59:09]free content buf [15:59:09]Sock 10.Close socket [15:59:09]Sock 10.Thread stoped [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:15]accept exits with 9 [16:00:15]New connection [16:00:15]New thread 3066637668 created [16:00:15]Thread 3066781028 joined [16:00:15]Waiting for new connection... [16:00:15] Sock 9.Parse request [16:00:15]Sock 9.Check first char [16:00:15]Sock 9.First char is OK [16:00:15]request: POST /json_proto HTTP/1.0 [16:00:15]Method: POST [16:00:15]URL: /json_proto [16:00:15]Method is POST - this is cgi request [16:00:15]url: /json_proto [16:00:15]query_string will be loaded in cgi processing [16:00:15]execute_cgi json_proto POST (null) [16:00:15]execute_cgi path=json_proto method=POST [16:00:15]POST find Content-Length [16:00:15]Host: 172.17.45.132:8080 [16:00:15]Content-Length: 678 [16:00:15]Content-Type: application/json [16:00:15] [16:00:15]POST finish read [16:00:15]Found Content-Length = 678 [16:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 10.050, "sum" : 750.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:15]execute_script... [16:00: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)611256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 10.050, "sum" : 750.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:15]POST & json_proto [16:00:15]process_json_proto [16:00:15]json parsed OK: [16:00:15]protocol is kg_v1.0 [16:00:15]action value=close_receipt [16:00:15]process_action close_receipt [16:00:15]cmd_close_receipt [16:00:15]MH_GetDate [16:00:15]Write to MH i2c: F0 00 00 01 10 00 [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: F0 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: F0 09 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: F0 09 00 01 10 00 90 5F AA 66 E3 0B 90 66 EC [16:00:15]GetLastDocTimeStamp 1722441546 [16:00:15]current date 1722441616 [16:00:15]FM_GetShiftState [16:00:15]SAM_PROTO_GetShiftState [16:00:15]wFMCommunicate request_size=4 [16:00:15]MH_SAM_APDU [16:00:15]CAPDU: 80 13 01 00 [16:00:15]Write to MH i2c: E2 08 00 02 10 80 13 01 00 00 00 00 00 8F [16:00:15]Write i2c OK [16:00:15]MH_I2C_Read... [16:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:15]Read from MH i2c: E2 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 0E 00 [16:00:15]MH_I2C_Read... [16:00:15]Read from MH i2c: E2 0E 00 02 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 5C [16:00:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:00:15]wFMCommunicate OK [16:00:15]SAM_PROTO_GetShiftState done [16:00:15]FM_GetShiftState done [16:00:15]opened in 1722384689 [16:00:15]opened+sec_in_day 1722471089 [16:00:15]quantity*price = 75073 [16:00:15]sum+1 = 75075 [16:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.72 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 142 31.07.2024 16:00 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2689 ФПД: 146380143795902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T160016&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2689&fm=146380143795902&tin=02508201610067®Number=0000000000189667&sum=75000 [16:00:16]StoreToDocumentArchive [16:00:16]shift 17 fd 2689 [16:00:16]save to /storage/0017/doc_00002689 [16:00:16]save last doc name /storage/0017/doc_00002689 to /storage/kkm_last_doc_name [16:00:16]save OK [16:00:16]Clear old archive folders... [16:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:16]tlvbuf is 00F03680 [16:00:16]SAM_PROTO_ClearQueue [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 09 00 00 [16:00:16]Write to MH i2c: E2 08 00 0F 10 80 09 00 00 00 00 00 00 91 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]SAM_PROTO_ClearQueue done [16:00:16]KKMCreateOFDPacket [16:00:16]OFDProtocolAddRootSTLVToBuf [16:00:16]FM_MakeSignedData [16:00:16]FM_MakeSignedData [16:00:16]SAM_PROTO_SignData [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 01 02 [16:00:16]Write to MH i2c: E2 08 00 10 10 80 0D 01 02 00 00 00 00 99 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=255 [16:00:16]MH_SAM_APDU [16:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 42 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 90 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 0A 00 00 35 04 06 00 85 [16:00:16]Write to MH i2c: E2 02 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 42 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 90 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 0A 00 00 35 04 06 00 85 00 00 8F [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=10 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 02 02 05 21 C8 79 1E BE [16:00:16]Write to MH i2c: E2 0D 00 12 10 80 0D 02 02 05 00 21 C8 79 1E BE 00 00 E4 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 03 00 12 10 00 90 00 96 [16:00:16]RAPDU: 90 00 [16:00:16]wFMCommunicate OK [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 0D 03 02 [16:00:16]Write to MH i2c: E2 08 00 13 10 80 0D 03 02 00 00 00 00 9E [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0B 00 13 10 00 9B DB 08 14 B3 84 F0 5F 90 00 B7 [16:00:16]RAPDU: 9B DB 08 14 B3 84 F0 5F 90 00 [16:00:16]wFMCommunicate OK [16:00:16]SAM_PROTO_SignData done [16:00:16]FM_MakeSignedData done [16:00:16]CreateOFDProtocolMessage [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 11 00 00 [16:00:16]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 17 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EE [16:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:00:17]wFMCommunicate OK [16:00:17]CreateOFDProtocolMessage done [16:00:17]OFDSenderStorePacket 2689 [16:00:17]StoreOFDPacket docnum=2689 [16:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A1 9A 07 01 C8 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 42 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 90 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 0A 00 00 35 04 06 00 85 21 C8 79 1E BE 9B DB 08 14 B3 84 F0 5F [16:00:17]CheckFolder [16:00:17]dirname=/storage/ofd_packets [16:00:17]CheckFolder done [16:00:17]ProducePacketName [16:00:17]name=ofd_packets/00002689 [16:00:17]NVStorageSaveData ofd_packets/00002689 [16:00:17]File name is /storage/ofd_packets/00002689 [16:00:17]Write 301 bytes [16:00:17]NVStorageSaveData done [16:00:17]OFDSenderStorePacket done [16:00:17]KKMCreateOFDPacket done [16:00:17]NVStorageSaveData kkm_last_timestamp [16:00:17]File name is /storage/kkm_last_timestamp [16:00:17]Write 4 bytes [16:00:17]NVStorageSaveData done [16:00:17]ExternCall_PrintAddStr [16:00:17]wPrintStart [16:00:17]Write to MH i2c: 01 00 00 15 10 25 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 FF 0F 3A [16:00:17]RasterBufferAndPrint [16:00:17]line Счет N : (1)611256 [16:00:17]line ИНН: 02508201610067 [16:00:17]line Контрольно-Кассовый Чек [16:00:17]line ПРОДАЖА [16:00:17]line ТРК (МРК, ГНК) : 63 [16:00:17]line Товар: 2710124500 [16:00:17]line Аи-95-К-3 [16:00:17]line 10.050 * 74.70 [16:00:17]line = 750.74 [16:00:17]line НДС 12% НСП 1% [16:00:17]line > о реализуемом товаре [16:00:17]line ОКРУГЛЕНИЕ: -0.74 [16:00:17]line ИТОГО: 750.00 [16:00:17]line Внесено: 750.00 [16:00:17]line СДАЧА: 0.00 [16:00:17]line НСП 1% : 6.64 [16:00:17]line НДС 12% : 79.72 [16:00:17]line Наличными: 750.00 [16:00:17]line Безнал.: 0.00 [16:00:17]line Место: АЗС № 127 "Партнер Нефть" [16:00:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:00:17]line СНО: Общий режим [16:00:17]line Чек 142 31.07.2024 16:00 [16:00:17]line Смена: 17 ФФД: 1.0 [16:00:17]line ЗНМ: 0300000161 [16:00:17]line РНМ: 0000000000189667 [16:00:17]line Версия ККМ: v1.0 [16:00:17]line ФМ: 0000000002094248 [16:00:17]line ФД: 2689 [16:00:17]line ФПД: 146380143795902 [16:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T160016&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2689&fm=146380143795902&tin=02508201610067®Number=0000000000189667&sum=75000 [16:00:17]OFD Sender: Processing packet 2689 [packets to send 1, broken 0] [16:00:17]ProducePacketName [16:00:17]name=ofd_packets/00002689 [16:00:17]OFD Sender: To server: pG, [16:00:17]CommunicateWithHost lk.salyk.kg:30040 [16:00:17]ConnectInit lk.salyk.kg [16:00:17]written 0, free lines is 4095 [16:00:17]Connected sock=10 [16:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A1 9A 07 01 C8 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 42 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 90 5F AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 0A 00 00 35 04 06 00 85 21 C8 79 1E BE 9B DB 08 14 B3 84 F0 5F [16:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D3 4E 47 00 3B 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 0A 00 00 F4 03 04 00 F6 0A AA 66 B6 04 01 00 00 70 18 1A CB AA 51 E7 DB [16:00:17]CommunicateWithHost err = 0 [16:00:17]CheckOFDResponse [16:00:17]1017 (14) - 77093643461234 [16:00:17]1041 (16) - 0000000002094248 [16:00:17]1040 (4) - 2689 [16:00:17]1012 (4) - 31.07.2024 09:59 [16:00:17]1206 (1) - 0 [16:00:17]OFD Sender: Remove packet 2689 [16:00:17]ProducePacketName [16:00:17]name=ofd_packets/00002689 [16:00:17]NVStorageDeleteData [16:00:17]Write to MH i2c: 01 00 00 40 10 50 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: 01 07 00 40 10 00 00 00 00 00 EE 0C 51 [16:00:17]RasterBufferAndPrint [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]line [16:00:17]written 0, free lines is 3316 [16:00:17]MH_Cut [16:00:17]Write to MH i2c: D1 01 00 47 10 01 29 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: D1 01 00 47 10 00 28 [16:00:17]Write to MH i2c: 01 00 00 48 10 58 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:18]OFD Sender: No OFD packet to send [16:00:18]*** Cut start [16:00:18]*** Partial cut [16:00:18]*** CUTSNS_PIN = 1 [16:00:18]*** CUTSNS_PIN = 0 [16:00:18]*** Brake cut motor [16:00:19]Read from MH i2c: 01 [16:00:19]MH_I2C_Read... [16:00:19]*** Stop cut motor [16:00:19]*** Cut end [16:00:19]Read from MH i2c: 01 07 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: 01 07 00 48 10 00 00 00 00 00 FF 0F 6D [16:00:19]process_action close_receipt done [16:00:19]requested_data is exist [16:00:19]produce_requested_data [16:00:19]requested_item fm.sn is exist - process it [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 11 00 00 [16:00:19]Write to MH i2c: E2 08 00 49 10 80 11 00 00 00 00 00 00 D3 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 17 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 17 00 49 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 23 [16:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:00:19]wFMCommunicate OK [16:00:19]requested_item fd.num is exist - process it [16:00:19]SAM_PROTO_GetFieldsCounters [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 13 00 00 [16:00:19]Write to MH i2c: E2 08 00 4A 10 80 13 00 00 00 00 00 00 D6 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 62 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 62 00 4A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 81 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [16:00:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 81 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetFieldsCounters done [16:00:19]requested_item shift.num is exist - process it [16:00:19]requested_item shift.opened is exist - process it [16:00:19]req_shift_opened [16:00:19]FM_GetShiftState [16:00:19]SAM_PROTO_GetShiftState [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 13 01 00 [16:00:19]Write to MH i2c: E2 08 00 4B 10 80 13 01 00 00 00 00 00 D8 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 4B 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A5 [16:00:19]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetShiftState done [16:00:19]FM_GetShiftState done [16:00:19]req_shift_opened done [16:00:19]requested_item shift.open_date is exist - process it [16:00:19]req_shift_open_date [16:00:19]req_shift_open_date done [16:00:19]produce_requested_data done [16:00:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2689,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:00:19]process_action_free close_receipt [16:00:19]json_value_free [16:00:19]json_value_free done [16:00:19]process_json_proto returns [16:00:19]Send response to host [16:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2689,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:00:19]free response buf [16:00:19]execute_script done [16:00:19]execute_script returns [16:00:19]free content buf [16:00:19]Sock 9.Close socket [16:00:19]Sock 9.Thread stoped [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:51]accept exits with 8 [16:02:51]New connection [16:02:51]New thread 3066781028 created [16:02:51]Thread 3066637668 joined [16:02:51]Waiting for new connection... [16:02:51] Sock 8.Parse request [16:02:51]Sock 8.Check first char [16:02:51]Sock 8.First char is OK [16:02:51]request: POST /json_proto HTTP/1.0 [16:02:51]Method: POST [16:02:51]URL: /json_proto [16:02:51]Method is POST - this is cgi request [16:02:51]url: /json_proto [16:02:51]query_string will be loaded in cgi processing [16:02:51]execute_cgi json_proto POST (null) [16:02:51]execute_cgi path=json_proto method=POST [16:02:51]POST find Content-Length [16:02:51]Host: 172.17.45.132:8080 [16:02:51]Content-Length: 803 [16:02:51]Content-Type: application/json [16:02:51] [16:02:51]POST finish read [16:02:51]Found Content-Length = 803 [16:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:51]execute_script... [16:02: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)611257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:51]POST & json_proto [16:02:51]process_json_proto [16:02:51]json parsed OK: [16:02:51]protocol is kg_v1.0 [16:02:51]action value=close_receipt [16:02:51]process_action close_receipt [16:02:51]cmd_close_receipt [16:02:51]MH_GetDate [16:02:51]Write to MH i2c: F0 00 00 4C 10 4B [16:02:51]Write i2c OK [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 09 00 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 09 00 4C 10 00 2C 60 AA 66 E3 0B 90 66 D4 [16:02:51]GetLastDocTimeStamp 1722441616 [16:02:51]current date 1722441772 [16:02:51]FM_GetShiftState [16:02:51]SAM_PROTO_GetShiftState [16:02:51]wFMCommunicate request_size=4 [16:02:51]MH_SAM_APDU [16:02:51]CAPDU: 80 13 01 00 [16:02:51]Write to MH i2c: E2 08 00 4D 10 80 13 01 00 00 00 00 00 DA [16:02:51]Write i2c OK [16:02:51]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 0E 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 0E 00 4D 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 A7 [16:02:52]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:02:52]wFMCommunicate OK [16:02:52]SAM_PROTO_GetShiftState done [16:02:52]FM_GetShiftState done [16:02:52]opened in 1722384689 [16:02:52]opened+sec_in_day 1722471089 [16:02:52]quantity*price = 100005 [16:02:52]sum+1 = 100006 [16:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 143 31.07.2024 16:02 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2690 ФПД: 49632565888052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T160252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2690&fm=49632565888052&tin=02508201610067®Number=0000000000189667&sum=100005 [16:02:53]StoreToDocumentArchive [16:02:53]shift 17 fd 2690 [16:02:53]save to /storage/0017/doc_00002690 [16:02:53]save last doc name /storage/0017/doc_00002690 to /storage/kkm_last_doc_name [16:02:53]save OK [16:02:53]Clear old archive folders... [16:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:53]tlvbuf is 00F03240 [16:02:53]SAM_PROTO_ClearQueue [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 09 00 00 [16:02:53]Write to MH i2c: E2 08 00 5A 10 80 09 00 00 00 00 00 00 DC [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_ClearQueue done [16:02:53]KKMCreateOFDPacket [16:02:53]OFDProtocolAddRootSTLVToBuf [16:02:53]FM_MakeSignedData [16:02:53]FM_MakeSignedData [16:02:53]SAM_PROTO_SignData [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 01 02 [16:02:53]Write to MH i2c: E2 08 00 5B 10 80 0D 01 02 00 00 00 00 E4 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=255 [16:02:53]MH_SAM_APDU [16:02: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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 2C 60 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 82 0A 00 00 35 04 06 00 2D [16:02:53]Write to MH i2c: E2 02 01 5C 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 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 2C 60 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 82 0A 00 00 35 04 06 00 2D 00 00 F7 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]OFD Sender: No OFD packet to send [16:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=10 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 02 02 05 23 FB 75 84 34 [16:02:53]Write to MH i2c: E2 0D 00 5D 10 80 0D 02 02 05 00 23 FB 75 84 34 00 00 3C [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 03 02 [16:02:53]Write to MH i2c: E2 08 00 5E 10 80 0D 03 02 00 00 00 00 E9 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0B 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0B 00 5E 10 00 40 C6 B0 89 11 37 5A 95 90 00 60 [16:02:53]RAPDU: 40 C6 B0 89 11 37 5A 95 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_SignData done [16:02:53]FM_MakeSignedData done [16:02:53]CreateOFDProtocolMessage [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 11 00 00 [16:02:53]Write to MH i2c: E2 08 00 5F 10 80 11 00 00 00 00 00 00 E9 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 17 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 17 00 5F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 39 [16:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:02:53]wFMCommunicate OK [16:02:53]CreateOFDProtocolMessage done [16:02:53]OFDSenderStorePacket 2690 [16:02:53]StoreOFDPacket docnum=2690 [16:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CA F1 07 01 FA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 2C 60 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 82 0A 00 00 35 04 06 00 2D 23 FB 75 84 34 40 C6 B0 89 11 37 5A 95 [16:02:53]CheckFolder [16:02:53]dirname=/storage/ofd_packets [16:02:53]CheckFolder done [16:02:53]ProducePacketName [16:02:53]name=ofd_packets/00002690 [16:02:53]NVStorageSaveData ofd_packets/00002690 [16:02:53]File name is /storage/ofd_packets/00002690 [16:02:53]Write 301 bytes [16:02:53]NVStorageSaveData done [16:02:53]OFDSenderStorePacket done [16:02:53]KKMCreateOFDPacket done [16:02:53]NVStorageSaveData kkm_last_timestamp [16:02:53]File name is /storage/kkm_last_timestamp [16:02:53]Write 4 bytes [16:02:53]NVStorageSaveData done [16:02:53]ExternCall_PrintAddStr [16:02:53]wPrintStart [16:02:53]Write to MH i2c: 01 00 00 60 10 70 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FF 0F 85 [16:02:53]RasterBufferAndPrint [16:02:53]line Счет N : (1)611257 [16:02:53]line ИНН: 02508201610067 [16:02:53]line Контрольно-Кассовый Чек [16:02:53]line ПРОДАЖА [16:02:53]line ТРК (МРК, ГНК) : 52 [16:02:53]line Товар: 2710124130 [16:02:53]line Аи-92-К-2 [16:02:53]line 14.750 * 67.80 [16:02:53]line = 1000.05 [16:02:53]line НДС 12% НСП 1% [16:02:53]line > о реализуемом товаре [16:02:53]line ИТОГО: 1000.05 [16:02:53]line НСП 1% : 8.85 [16:02:53]line НДС 12% : 106.20 [16:02:53]line Наличными: 0.00 [16:02:53]line Безнал.: 1000.05 [16:02:53]line Место: АЗС № 127 "Партнер Нефть" [16:02:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:02:53]line СНО: Общий режим [16:02:53]line Чек 143 31.07.2024 16:02 [16:02:53]line Смена: 17 ФФД: 1.0 [16:02:53]line ЗНМ: 0300000161 [16:02:53]line РНМ: 0000000000189667 [16:02:53]line Версия ККМ: v1.0 [16:02:53]line Платежная система: O! деньги [16:02:53]line ФМ: 0000000002094248 [16:02:53]line ФД: 2690 [16:02:53]line ФПД: 49632565888052 [16:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T160252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2690&fm=49632565888052&tin=02508201610067®Number=0000000000189667&sum=100005 [16:02:54]OFD Sender: Processing packet 2690 [packets to send 1, broken 0] [16:02:54]ProducePacketName [16:02:54]name=ofd_packets/00002690 [16:02:54]OFD Sender: To server: pG, [16:02:54]CommunicateWithHost lk.salyk.kg:30040 [16:02:54]ConnectInit lk.salyk.kg [16:02:54]written 0, free lines is 4095 [16:02:54]Connected sock=10 [16:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CA F1 07 01 FA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 2C 60 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 82 0A 00 00 35 04 06 00 2D 23 FB 75 84 34 40 C6 B0 89 11 37 5A 95 [16:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F7 A0 47 00 1F 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 82 0A 00 00 F4 03 04 00 92 0B AA 66 B6 04 01 00 00 3A 02 38 E2 02 92 AA 3C [16:02:54]CommunicateWithHost err = 0 [16:02:54]CheckOFDResponse [16:02:54]1017 (14) - 77093643461234 [16:02:54]1041 (16) - 0000000002094248 [16:02:54]1040 (4) - 2690 [16:02:54]1012 (4) - 31.07.2024 10:01 [16:02:54]1206 (1) - 0 [16:02:54]OFD Sender: Remove packet 2690 [16:02:54]ProducePacketName [16:02:54]name=ofd_packets/00002690 [16:02:54]NVStorageDeleteData [16:02:54]Write to MH i2c: 01 00 00 8A 10 9A [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 07 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 07 00 8A 10 00 00 00 00 00 01 0D AF [16:02:54]RasterBufferAndPrint [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]written 0, free lines is 3335 [16:02:54]MH_Cut [16:02:54]Write to MH i2c: D1 01 00 91 10 01 73 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 01 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 01 00 91 10 00 72 [16:02:54]Write to MH i2c: 01 00 00 92 10 A2 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]OFD Sender: No OFD packet to send [16:02:55]*** Cut start [16:02:55]*** Partial cut [16:02:55]*** CUTSNS_PIN = 1 [16:02:55]*** CUTSNS_PIN = 0 [16:02:55]*** Brake cut motor [16:02:55]Read from MH i2c: 01 [16:02:55]MH_I2C_Read... [16:02:55]*** Stop cut motor [16:02:55]*** Cut end [16:02:55]Read from MH i2c: 01 07 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 FF 0F B7 [16:02:55]process_action close_receipt done [16:02:55]requested_data is exist [16:02:55]produce_requested_data [16:02:55]requested_item fm.sn is exist - process it [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 11 00 00 [16:02:55]Write to MH i2c: E2 08 00 93 10 80 11 00 00 00 00 00 00 1D [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 93 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [16:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:02:55]wFMCommunicate OK [16:02:55]requested_item fd.num is exist - process it [16:02:55]SAM_PROTO_GetFieldsCounters [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 13 00 00 [16:02:55]Write to MH i2c: E2 08 00 94 10 80 13 00 00 00 00 00 00 20 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 62 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 62 00 94 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 82 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 82 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:55]wFMCommunicate OK [16:02:55]SAM_PROTO_GetFieldsCounters done [16:02:55]requested_item shift.num is exist - process it [16:02:55]requested_item shift.opened is exist - process it [16:02:55]req_shift_opened [16:02:55]FM_GetShiftState [16:02:55]SAM_PROTO_GetShiftState [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 13 01 00 [16:02:55]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:56]Read from MH i2c: E2 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 EF [16:02:56]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:02:56]wFMCommunicate OK [16:02:56]SAM_PROTO_GetShiftState done [16:02:56]FM_GetShiftState done [16:02:56]req_shift_opened done [16:02:56]requested_item shift.open_date is exist - process it [16:02:56]req_shift_open_date [16:02:56]req_shift_open_date done [16:02:56]produce_requested_data done [16:02:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2690,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:02:56]process_action_free close_receipt [16:02:56]json_value_free [16:02:56]json_value_free done [16:02:56]process_json_proto returns [16:02:56]Send response to host [16:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2690,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:02:56]free response buf [16:02:56]execute_script done [16:02:56]execute_script returns [16:02:56]free content buf [16:02:56]Sock 8.Close socket [16:02:56]Sock 8.Thread stoped [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:12]accept exits with 9 [16:10:12]New connection [16:10:12]New thread 3066637668 created [16:10:12]Thread 3066781028 joined [16:10:12]Waiting for new connection... [16:10:12] Sock 9.Parse request [16:10:12]Sock 9.Check first char [16:10:12]Sock 9.First char is OK [16:10:12]request: POST /json_proto HTTP/1.0 [16:10:12]Method: POST [16:10:12]URL: /json_proto [16:10:12]Method is POST - this is cgi request [16:10:12]url: /json_proto [16:10:12]query_string will be loaded in cgi processing [16:10:12]execute_cgi json_proto POST (null) [16:10:12]execute_cgi path=json_proto method=POST [16:10:12]POST find Content-Length [16:10:12]Host: 172.17.45.132:8080 [16:10:12]Content-Length: 677 [16:10:12]Content-Type: application/json [16:10:12] [16:10:12]POST finish read [16:10:12]Found Content-Length = 677 [16:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:12]execute_script... [16:10: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)611262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:12]POST & json_proto [16:10:12]process_json_proto [16:10:12]json parsed OK: [16:10:12]protocol is kg_v1.0 [16:10:12]action value=close_receipt [16:10:12]process_action close_receipt [16:10:12]cmd_close_receipt [16:10:12]MH_GetDate [16:10:12]Write to MH i2c: F0 00 00 96 10 95 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 09 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 09 00 96 10 00 E5 61 AA 66 E3 0B 90 66 D8 [16:10:12]GetLastDocTimeStamp 1722441772 [16:10:12]current date 1722442213 [16:10:12]FM_GetShiftState [16:10:12]SAM_PROTO_GetShiftState [16:10:12]wFMCommunicate request_size=4 [16:10:12]MH_SAM_APDU [16:10:12]CAPDU: 80 13 01 00 [16:10:12]Write to MH i2c: E2 08 00 97 10 80 13 01 00 00 00 00 00 24 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:12]Read from MH i2c: E2 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 97 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 F1 [16:10:12]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:10:12]wFMCommunicate OK [16:10:12]SAM_PROTO_GetShiftState done [16:10:12]FM_GetShiftState done [16:10:12]opened in 1722384689 [16:10:12]opened+sec_in_day 1722471089 [16:10:12]quantity*price = 60003 [16:10:12]sum+1 = 60004 [16:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 144 31.07.2024 16:10 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2691 ФПД: 176184253554003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T161013&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2691&fm=176184253554003&tin=02508201610067®Number=0000000000189667&sum=60000 [16:10:13]StoreToDocumentArchive [16:10:13]shift 17 fd 2691 [16:10:13]save to /storage/0017/doc_00002691 [16:10:13]save last doc name /storage/0017/doc_00002691 to /storage/kkm_last_doc_name [16:10:13]save OK [16:10:13]Clear old archive folders... [16:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:13]tlvbuf is 00E6CDB0 [16:10:13]SAM_PROTO_ClearQueue [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 09 00 00 [16:10:13]Write to MH i2c: E2 08 00 A4 10 80 09 00 00 00 00 00 00 26 [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]SAM_PROTO_ClearQueue done [16:10:13]KKMCreateOFDPacket [16:10:13]OFDProtocolAddRootSTLVToBuf [16:10:13]FM_MakeSignedData [16:10:13]FM_MakeSignedData [16:10:13]SAM_PROTO_SignData [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 0D 01 02 [16:10:13]Write to MH i2c: E2 08 00 A5 10 80 0D 01 02 00 00 00 00 2E [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]wFMCommunicate request_size=255 [16:10:13]MH_SAM_APDU [16:10: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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E5 61 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 0A 00 00 35 04 06 00 A0 [16:10:13]Write to MH i2c: E2 02 01 A6 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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E5 61 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 0A 00 00 35 04 06 00 A0 00 00 9E [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 03 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 03 00 A6 10 00 90 00 2A [16:10:14]RAPDU: 90 00 [16:10:14]wFMCommunicate OK [16:10:14]wFMCommunicate request_size=10 [16:10:14]MH_SAM_APDU [16:10:14]CAPDU: 80 0D 02 02 05 3D 17 D9 1D 53 [16:10:14]Write to MH i2c: E2 0D 00 A7 10 80 0D 02 02 05 00 3D 17 D9 1D 53 00 00 D8 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 03 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 03 00 A7 10 00 90 00 2B [16:10:14]RAPDU: 90 00 [16:10:14]wFMCommunicate OK [16:10:14]wFMCommunicate request_size=4 [16:10:14]MH_SAM_APDU [16:10:14]CAPDU: 80 0D 03 02 [16:10:14]Write to MH i2c: E2 08 00 A8 10 80 0D 03 02 00 00 00 00 33 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0B 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0B 00 A8 10 00 E0 84 CC 36 61 70 D2 DB 90 00 18 [16:10:14]RAPDU: E0 84 CC 36 61 70 D2 DB 90 00 [16:10:14]wFMCommunicate OK [16:10:14]SAM_PROTO_SignData done [16:10:14]FM_MakeSignedData done [16:10:14]CreateOFDProtocolMessage [16:10:14]wFMCommunicate request_size=4 [16:10:14]MH_SAM_APDU [16:10:14]CAPDU: 80 11 00 00 [16:10:14]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 17 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [16:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:10:14]wFMCommunicate OK [16:10:14]CreateOFDProtocolMessage done [16:10:14]OFDSenderStorePacket 2691 [16:10:14]StoreOFDPacket docnum=2691 [16:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2F 42 07 01 65 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E5 61 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 0A 00 00 35 04 06 00 A0 3D 17 D9 1D 53 E0 84 CC 36 61 70 D2 DB [16:10:14]CheckFolder [16:10:14]dirname=/storage/ofd_packets [16:10:14]CheckFolder done [16:10:14]ProducePacketName [16:10:14]name=ofd_packets/00002691 [16:10:14]NVStorageSaveData ofd_packets/00002691 [16:10:14]File name is /storage/ofd_packets/00002691 [16:10:14]Write 301 bytes [16:10:14]NVStorageSaveData done [16:10:14]OFDSenderStorePacket done [16:10:14]KKMCreateOFDPacket done [16:10:14]NVStorageSaveData kkm_last_timestamp [16:10:14]File name is /storage/kkm_last_timestamp [16:10:14]Write 4 bytes [16:10:14]NVStorageSaveData done [16:10:14]ExternCall_PrintAddStr [16:10:14]wPrintStart [16:10:14]Write to MH i2c: 01 00 00 AA 10 BA [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 FF 0F CF [16:10:14]RasterBufferAndPrint [16:10:14]line Счет N : (1)611262 [16:10:14]line ИНН: 02508201610067 [16:10:14]line Контрольно-Кассовый Чек [16:10:14]line ПРОДАЖА [16:10:14]line ТРК (МРК, ГНК) : 52 [16:10:14]line Товар: 2710124130 [16:10:14]line Аи-92-К-2 [16:10:14]line 8.850 * 67.80 [16:10:14]line = 600.03 [16:10:14]line НДС 12% НСП 1% [16:10:14]line > о реализуемом товаре [16:10:14]line ОКРУГЛЕНИЕ: -0.03 [16:10:14]line ИТОГО: 600.00 [16:10:14]line Внесено: 600.00 [16:10:14]line СДАЧА: 0.00 [16:10:14]line НСП 1% : 5.31 [16:10:14]line НДС 12% : 63.72 [16:10:14]line Наличными: 600.00 [16:10:14]line Безнал.: 0.00 [16:10:14]line Место: АЗС № 127 "Партнер Нефть" [16:10:14]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:10:14]line СНО: Общий режим [16:10:14]line Чек 144 31.07.2024 16:10 [16:10:14]line Смена: 17 ФФД: 1.0 [16:10:14]line ЗНМ: 0300000161 [16:10:14]line РНМ: 0000000000189667 [16:10:14]line Версия ККМ: v1.0 [16:10:14]line ФМ: 0000000002094248 [16:10:14]line ФД: 2691 [16:10:14]line ФПД: 176184253554003 [16:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T161013&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2691&fm=176184253554003&tin=02508201610067®Number=0000000000189667&sum=60000 [16:10:14]OFD Sender: Processing packet 2691 [packets to send 1, broken 0] [16:10:14]ProducePacketName [16:10:14]name=ofd_packets/00002691 [16:10:14]OFD Sender: To server: pG, [16:10:14]CommunicateWithHost lk.salyk.kg:30040 [16:10:14]ConnectInit lk.salyk.kg [16:10:14]written 0, free lines is 4095 [16:10:15]Connected sock=10 [16:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2F 42 07 01 65 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E5 61 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 0A 00 00 35 04 06 00 A0 3D 17 D9 1D 53 E0 84 CC 36 61 70 D2 DB [16:10:15]Write to MH i2c: 01 00 00 D5 10 E5 [16:10:15]Write i2c OK [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: 01 [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: 01 07 00 [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: 01 07 00 D5 10 00 00 00 00 00 F9 0C F1 [16:10:15]RasterBufferAndPrint [16:10:15]line [16:10:15]line [16:10:15]line [16:10:15]line [16:10:15]line [16:10:15]written 0, free lines is 3327 [16:10:15]MH_Cut [16:10:15]Write to MH i2c: D1 01 00 DC 10 01 BE [16:10:15]Write i2c OK [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: D1 [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: D1 01 00 [16:10:15]MH_I2C_Read... [16:10:15]Read from MH i2c: D1 01 00 DC 10 00 BD [16:10:15]Write to MH i2c: 01 00 00 DD 10 ED [16:10:15]Write i2c OK [16:10:15]MH_I2C_Read... [16:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DB 0B 47 00 A9 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 0A 00 00 F4 03 04 00 4B 0D AA 66 B6 04 01 00 00 40 25 E7 AC 7E 1F 40 3A [16:10:15]CommunicateWithHost err = 0 [16:10:15]CheckOFDResponse [16:10:15]1017 (14) - 77093643461234 [16:10:15]1041 (16) - 0000000002094248 [16:10:15]1040 (4) - 2691 [16:10:15]1012 (4) - 31.07.2024 10:09 [16:10:15]1206 (1) - 0 [16:10:15]OFD Sender: Remove packet 2691 [16:10:15]ProducePacketName [16:10:15]name=ofd_packets/00002691 [16:10:15]NVStorageDeleteData [16:10:15]*** Cut start [16:10:15]*** Partial cut [16:10:15]*** CUTSNS_PIN = 1 [16:10:15]OFD Sender: No OFD packet to send [16:10:15]*** CUTSNS_PIN = 0 [16:10:16]*** Brake cut motor [16:10:16]Read from MH i2c: 01 [16:10:16]MH_I2C_Read... [16:10:16]*** Stop cut motor [16:10:16]*** Cut end [16:10:16]Read from MH i2c: 01 07 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 DD 10 00 00 00 00 00 FF 0F 02 [16:10:16]process_action close_receipt done [16:10:16]requested_data is exist [16:10:16]produce_requested_data [16:10:16]requested_item fm.sn is exist - process it [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 11 00 00 [16:10:16]Write to MH i2c: E2 08 00 DE 10 80 11 00 00 00 00 00 00 68 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 DE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [16:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:10:16]wFMCommunicate OK [16:10:16]requested_item fd.num is exist - process it [16:10:16]SAM_PROTO_GetFieldsCounters [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 13 00 00 [16:10:16]Write to MH i2c: E2 08 00 DF 10 80 13 00 00 00 00 00 00 6B [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 62 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 62 00 DF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 83 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 83 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_GetFieldsCounters done [16:10:16]requested_item shift.num is exist - process it [16:10:16]requested_item shift.opened is exist - process it [16:10:16]req_shift_opened [16:10:16]FM_GetShiftState [16:10:16]SAM_PROTO_GetShiftState [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 13 01 00 [16:10:16]Write to MH i2c: E2 08 00 E0 10 80 13 01 00 00 00 00 00 6D [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0E 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0E 00 E0 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3A [16:10:16]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_GetShiftState done [16:10:16]FM_GetShiftState done [16:10:16]req_shift_opened done [16:10:16]requested_item shift.open_date is exist - process it [16:10:16]req_shift_open_date [16:10:16]req_shift_open_date done [16:10:16]produce_requested_data done [16:10:16]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2691,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:10:16]process_action_free close_receipt [16:10:16]json_value_free [16:10:16]json_value_free done [16:10:16]process_json_proto returns [16:10:16]Send response to host [16:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2691,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:10:16]free response buf [16:10:16]execute_script done [16:10:16]execute_script returns [16:10:16]free content buf [16:10:16]Sock 9.Close socket [16:10:16]Sock 9.Thread stoped [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:04]accept exits with 8 [16:11:04]New connection [16:11:04]New thread 3066781028 created [16:11:04]Thread 3066637668 joined [16:11:04]Waiting for new connection... [16:11:04] Sock 8.Parse request [16:11:04]Sock 8.Check first char [16:11:04]Sock 8.First char is OK [16:11:04]request: POST /json_proto HTTP/1.0 [16:11:04]Method: POST [16:11:04]URL: /json_proto [16:11:04]Method is POST - this is cgi request [16:11:04]url: /json_proto [16:11:04]query_string will be loaded in cgi processing [16:11:04]execute_cgi json_proto POST (null) [16:11:04]execute_cgi path=json_proto method=POST [16:11:04]POST find Content-Length [16:11:04]Host: 172.17.45.132:8080 [16:11:04]Content-Length: 910 [16:11:04]Content-Type: application/json [16:11:04] [16:11:04]POST finish read [16:11:04]Found Content-Length = 910 [16:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126842", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:04]execute_script... [16: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 : (3)126842", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:04]POST & json_proto [16:11:04]process_json_proto [16:11:04]json parsed OK: [16:11:04]protocol is kg_v1.0 [16:11:04]action value=close_receipt [16:11:04]process_action close_receipt [16:11:04]cmd_close_receipt [16:11:04]MH_GetDate [16:11:04]Write to MH i2c: F0 00 00 E1 10 E0 [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 09 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 09 00 E1 10 00 19 62 AA 66 E3 0B 90 66 58 [16:11:04]GetLastDocTimeStamp 1722442213 [16:11:04]current date 1722442265 [16:11:04]FM_GetShiftState [16:11:04]SAM_PROTO_GetShiftState [16:11:04]wFMCommunicate request_size=4 [16:11:04]MH_SAM_APDU [16:11:04]CAPDU: 80 13 01 00 [16:11:04]Write to MH i2c: E2 08 00 E2 10 80 13 01 00 00 00 00 00 6F [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:04]Read from MH i2c: E2 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: E2 0E 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: E2 0E 00 E2 10 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 3C [16:11:04]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:11:04]wFMCommunicate OK [16:11:04]SAM_PROTO_GetShiftState done [16:11:04]FM_GetShiftState done [16:11:04]opened in 1722384689 [16:11:04]opened+sec_in_day 1722471089 [16:11:04]quantity*price = 5000 [16:11:04]sum+1 = 5001 [16:11:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре [16:11:06]line Товар: 5449000176431 [16:11:06]line Сок Piko Pulpy апельсин ПЭТ 0,5л [16:11:06]line 1.000 * 95.00 [16:11:06]line = 95.00 [16:11:06]line НДС 12% НСП 1% [16:11:06]line > о реализуемом товаре [16:11:06]line ИТОГО: 145.00 [16:11:06]line НСП 1% : 1.28 [16:11:06]line НДС 12% : 15.40 [16:11:06]line Наличными: 145.00 [16:11:06]line Безнал.: 0.00 [16:11:06]line Место: АЗС № 127 "Партнер Нефть" [16:11:06]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:11:06]line СНО: Общий режим [16:11:06]line Чек 145 31.07.2024 16:11 [16:11:06]line Смена: 17 ФФД: 1.0 [16:11:06]line ЗНМ: 0300000161 [16:11:06]line РНМ: 0000000000189667 [16:11:06]line Версия ККМ: v1.0 [16:11:06]line ФМ: 0000000002094248 [16:11:06]line ФД: 2692 [16:11:06]line ФПД: 102424663058349 [16:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T161105&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2692&fm=102424663058349&tin=02508201610067®Number=0000000000189667&sum=14500 [16:11:06]line 0 [16:11:06]OFD Sender: Processing packet 2692 [packets to send 1, broken 0] [16:11:06]ProducePacketName [16:11:06]name=ofd_packets/00002692 [16:11:06]OFD Sender: To server: pG, [16:11:06]CommunicateWithHost lk.salyk.kg:30040 [16:11:06]ConnectInit lk.salyk.kg [16:11:06]written 0, free lines is 4095 [16:11:06]Write to MH i2c: 01 00 00 24 11 35 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 24 11 00 00 00 00 00 A6 0C EE [16:11:06]RasterBufferAndPrint [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]written 0, free lines is 3244 [16:11:06]MH_Cut [16:11:06]Write to MH i2c: D1 01 00 2B 11 01 0E [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 01 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 01 00 2B 11 00 0D [16:11:06]Write to MH i2c: 01 00 00 2C 11 3D [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:07]Connected sock=11 [16:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 98 01 00 00 38 31 90 01 CA A6 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 19 62 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 0A 00 00 35 04 06 00 5D 27 99 A8 67 AD 5E 3C CD CA 57 77 0F 22 [16:11:07]*** Cut start [16:11:07]*** Partial cut [16:11:07]*** CUTSNS_PIN = 1 [16:11:07]*** CUTSNS_PIN = 0 [16:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CF 32 47 00 DF ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 0A 00 00 F4 03 04 00 80 0D AA 66 B6 04 01 00 00 B0 FB 2E 90 B6 4C 10 02 [16:11:07]CommunicateWithHost err = 0 [16:11:07]CheckOFDResponse [16:11:07]1017 (14) - 77093643461234 [16:11:07]1041 (16) - 0000000002094248 [16:11:07]1040 (4) - 2692 [16:11:07]1012 (4) - 31.07.2024 10:10 [16:11:07]1206 (1) - 0 [16:11:07]OFD Sender: Remove packet 2692 [16:11:07]ProducePacketName [16:11:07]name=ofd_packets/00002692 [16:11:07]NVStorageDeleteData [16:11:07]*** Brake cut motor [16:11:08]OFD Sender: No OFD packet to send [16:11:08]Read from MH i2c: 01 [16:11:08]MH_I2C_Read... [16:11:08]*** Stop cut motor [16:11:08]*** Cut end [16:11:08]Read from MH i2c: 01 07 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 2C 11 00 00 00 00 00 FF 0F 52 [16:11:08]process_action close_receipt done [16:11:08]requested_data is exist [16:11:08]produce_requested_data [16:11:08]requested_item fm.sn is exist - process it [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 11 00 00 [16:11:08]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 08 [16:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:11:08]wFMCommunicate OK [16:11:08]requested_item fd.num is exist - process it [16:11:08]SAM_PROTO_GetFieldsCounters [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 13 00 00 [16:11:08]Write to MH i2c: E2 08 00 2E 11 80 13 00 00 00 00 00 00 BB [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 62 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 62 00 2E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_GetFieldsCounters done [16:11:08]requested_item shift.num is exist - process it [16:11:08]requested_item shift.opened is exist - process it [16:11:08]req_shift_opened [16:11:08]FM_GetShiftState [16:11:08]SAM_PROTO_GetShiftState [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 13 01 00 [16:11:08]Write to MH i2c: E2 08 00 2F 11 80 13 01 00 00 00 00 00 BD [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 2F 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 8A [16:11:08]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_GetShiftState done [16:11:08]FM_GetShiftState done [16:11:08]req_shift_opened done [16:11:08]requested_item shift.open_date is exist - process it [16:11:08]req_shift_open_date [16:11:08]req_shift_open_date done [16:11:08]produce_requested_data done [16:11:08]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2692,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:11:08]process_action_free close_receipt [16:11:08]json_value_free [16:11:08]json_value_free done [16:11:08]process_json_proto returns [16:11:08]Send response to host [16:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2692,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:11:08]free response buf [16:11:08]execute_script done [16:11:08]execute_script returns [16:11:08]free content buf [16:11:08]Sock 8.Close socket [16:11:08]Sock 8.Thread stoped [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:35]accept exits with 9 [16:12:35]New connection [16:12:35]New thread 3066637668 created [16:12:35]Thread 3066781028 joined [16:12:35]Waiting for new connection... [16:12:35] Sock 9.Parse request [16:12:35]Sock 9.Check first char [16:12:35]Sock 9.First char is OK [16:12:35]request: POST /json_proto HTTP/1.0 [16:12:35]Method: POST [16:12:35]URL: /json_proto [16:12:35]Method is POST - this is cgi request [16:12:35]url: /json_proto [16:12:35]query_string will be loaded in cgi processing [16:12:35]execute_cgi json_proto POST (null) [16:12:35]execute_cgi path=json_proto method=POST [16:12:35]POST find Content-Length [16:12:35]Host: 172.17.45.132:8080 [16:12:35]Content-Length: 805 [16:12:35]Content-Type: application/json [16:12:35] [16:12:35]POST finish read [16:12:35]Found Content-Length = 805 [16:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 45.950, "sum" : 1700.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:35]execute_script... [16:12: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)611261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 45.950, "sum" : 1700.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:35]POST & json_proto [16:12:35]process_json_proto [16:12:35]json parsed OK: [16:12:35]protocol is kg_v1.0 [16:12:35]action value=close_receipt [16:12:35]process_action close_receipt [16:12:35]cmd_close_receipt [16:12:35]MH_GetDate [16:12:35]Write to MH i2c: F0 00 00 30 11 30 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: F0 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: F0 09 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: F0 09 00 30 11 00 74 62 AA 66 E3 0B 90 66 03 [16:12:35]GetLastDocTimeStamp 1722442265 [16:12:35]current date 1722442356 [16:12:35]FM_GetShiftState [16:12:35]SAM_PROTO_GetShiftState [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 13 01 00 [16:12:35]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 0E 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 8C [16:12:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:12:35]wFMCommunicate OK [16:12:35]SAM_PROTO_GetShiftState done [16:12:35]FM_GetShiftState done [16:12:35]opened in 1722384689 [16:12:35]opened+sec_in_day 1722471089 [16:12:35]quantity*price = 170015 [16:12:35]sum+1 = 170016 [16:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.15 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 0.00 Безнал.: 1700.15 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 146 31.07.2024 16:12 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2693 ФПД: 247083972079950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T161236&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2693&fm=247083972079950&tin=02508201610067®Number=0000000000189667&sum=170015 [16:12:37]StoreToDocumentArchive [16:12:37]shift 17 fd 2693 [16:12:37]save to /storage/0017/doc_00002693 [16:12:37]save last doc name /storage/0017/doc_00002693 to /storage/kkm_last_doc_name [16:12:37]save OK [16:12:37]Clear old archive folders... [16:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:12:37]tlvbuf is 00E84090 [16:12:37]SAM_PROTO_ClearQueue [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 09 00 00 [16:12:37]Write to MH i2c: E2 08 00 3E 11 80 09 00 00 00 00 00 00 C1 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [16:12:37]RAPDU: 90 00 [16:12:37]wFMCommunicate OK [16:12:37]SAM_PROTO_ClearQueue done [16:12:37]KKMCreateOFDPacket [16:12:37]OFDProtocolAddRootSTLVToBuf [16:12:37]FM_MakeSignedData [16:12:37]FM_MakeSignedData [16:12:37]SAM_PROTO_SignData [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 0D 01 02 [16:12:37]Write to MH i2c: E2 08 00 3F 11 80 0D 01 02 00 00 00 00 C9 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [16:12:37]RAPDU: 90 00 [16:12:37]wFMCommunicate OK [16:12:37]wFMCommunicate request_size=255 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E B3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 1F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 74 62 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 0A 00 00 35 04 06 00 E0 B8 [16:12:37]Write to MH i2c: E2 02 01 40 11 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E B3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 1F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 74 62 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 0A 00 00 35 04 06 00 E0 B8 00 00 C2 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [16:12:37]RAPDU: 90 00 [16:12:37]wFMCommunicate OK [16:12:37]wFMCommunicate request_size=9 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 0D 02 02 04 B8 62 B1 4E [16:12:37]Write to MH i2c: E2 0C 00 41 11 80 0D 02 02 04 00 B8 62 B1 4E 00 00 ED [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [16:12:37]RAPDU: 90 00 [16:12:37]wFMCommunicate OK [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 0D 03 02 [16:12:37]Write to MH i2c: E2 08 00 42 11 80 0D 03 02 00 00 00 00 CE [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0B 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0B 00 42 11 00 0F 54 33 F6 F6 87 2B 24 90 00 27 [16:12:37]RAPDU: 0F 54 33 F6 F6 87 2B 24 90 00 [16:12:37]wFMCommunicate OK [16:12:37]SAM_PROTO_SignData done [16:12:37]FM_MakeSignedData done [16:12:37]CreateOFDProtocolMessage [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 11 00 00 [16:12:37]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 17 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1E [16:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:12:37]wFMCommunicate OK [16:12:37]CreateOFDProtocolMessage done [16:12:37]OFDSenderStorePacket 2693 [16:12:37]StoreOFDPacket docnum=2693 [16:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 4A 64 06 01 EA C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E B3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 1F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 74 62 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 0A 00 00 35 04 06 00 E0 B8 B8 62 B1 4E 0F 54 33 F6 F6 87 2B 24 [16:12:37]CheckFolder [16:12:37]dirname=/storage/ofd_packets [16:12:37]CheckFolder done [16:12:37]ProducePacketName [16:12:37]name=ofd_packets/00002693 [16:12:37]NVStorageSaveData ofd_packets/00002693 [16:12:37]File name is /storage/ofd_packets/00002693 [16:12:37]Write 300 bytes [16:12:37]NVStorageSaveData done [16:12:37]OFDSenderStorePacket done [16:12:37]KKMCreateOFDPacket done [16:12:37]NVStorageSaveData kkm_last_timestamp [16:12:37]File name is /storage/kkm_last_timestamp [16:12:37]Write 4 bytes [16:12:37]NVStorageSaveData done [16:12:37]ExternCall_PrintAddStr [16:12:37]wPrintStart [16:12:37]Write to MH i2c: 01 00 00 44 11 55 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 07 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [16:12:37]RasterBufferAndPrint [16:12:37]line Счет N : (1)611261 [16:12:37]line ИНН: 02508201610067 [16:12:37]line Контрольно-Кассовый Чек [16:12:37]line ПРОДАЖА [16:12:37]line ТРК (МРК, ГНК) : 7 [16:12:37]line Товар: 2711190000 [16:12:37]line ГАЗ-К-3 [16:12:37]line 45.950 * 37.00 [16:12:37]line = 1700.15 [16:12:37]line НДС 12% НСП 1% [16:12:37]line > о реализуемом товаре [16:12:37]line ИТОГО: 1700.15 [16:12:37]line НСП 1% : 15.05 [16:12:37]line НДС 12% : 180.55 [16:12:37]line Наличными: 0.00 [16:12:37]line Безнал.: 1700.15 [16:12:37]line Место: АЗС № 127 "Партнер Нефть" [16:12:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:12:37]line СНО: Общий режим [16:12:37]line Чек 146 31.07.2024 16:12 [16:12:37]line Смена: 17 ФФД: 1.0 [16:12:37]line ЗНМ: 0300000161 [16:12:37]line РНМ: 0000000000189667 [16:12:37]line Версия ККМ: v1.0 [16:12:37]line Платежная система: O! деньги [16:12:37]line ФМ: 0000000002094248 [16:12:37]line ФД: 2693 [16:12:37]line ФПД: 247083972079950 [16:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T161236&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2693&fm=247083972079950&tin=02508201610067®Number=0000000000189667&sum=170015 [16:12:37]OFD Sender: Processing packet 2693 [packets to send 1, broken 0] [16:12:37]ProducePacketName [16:12:37]name=ofd_packets/00002693 [16:12:37]OFD Sender: To server: pG, [16:12:37]CommunicateWithHost lk.salyk.kg:30040 [16:12:37]ConnectInit lk.salyk.kg [16:12:37]written 0, free lines is 4095 [16:12:38]Write to MH i2c: 01 00 00 6E 11 7F [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 07 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 07 00 6E 11 00 00 00 00 00 EE 0C 80 [16:12:38]RasterBufferAndPrint [16:12:38]line [16:12:38]line [16:12:38]line [16:12:38]line [16:12:38]line [16:12:38]written 0, free lines is 3319 [16:12:38]MH_Cut [16:12:38]Write to MH i2c: D1 01 00 75 11 01 58 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: D1 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: D1 01 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: D1 01 00 75 11 00 57 [16:12:38]Write to MH i2c: 01 00 00 76 11 87 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:39]*** Cut start [16:12:39]*** Partial cut [16:12:39]*** CUTSNS_PIN = 1 [16:12:39]*** CUTSNS_PIN = 0 [16:12:39]*** Brake cut motor [16:12:39]Read from MH i2c: 01 [16:12:39]MH_I2C_Read... [16:12:39]*** Stop cut motor [16:12:39]*** Cut end [16:12:39]Read from MH i2c: 01 07 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 07 00 76 11 00 00 00 00 00 FF 0F 9C [16:12:39]process_action close_receipt done [16:12:39]requested_data is exist [16:12:39]produce_requested_data [16:12:39]requested_item fm.sn is exist - process it [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 11 00 00 [16:12:39]Write to MH i2c: E2 08 00 77 11 80 11 00 00 00 00 00 00 02 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 17 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 17 00 77 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 52 [16:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:12:39]wFMCommunicate OK [16:12:39]requested_item fd.num is exist - process it [16:12:39]SAM_PROTO_GetFieldsCounters [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 13 00 00 [16:12:39]Write to MH i2c: E2 08 00 78 11 80 13 00 00 00 00 00 00 05 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 62 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 62 00 78 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 85 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 85 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:39]wFMCommunicate OK [16:12:39]SAM_PROTO_GetFieldsCounters done [16:12:39]requested_item shift.num is exist - process it [16:12:39]requested_item shift.opened is exist - process it [16:12:39]req_shift_opened [16:12:39]FM_GetShiftState [16:12:39]SAM_PROTO_GetShiftState [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 13 01 00 [16:12:39]Write to MH i2c: E2 08 00 79 11 80 13 01 00 00 00 00 00 07 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0E 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0E 00 79 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 D4 [16:12:39]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:12:39]wFMCommunicate OK [16:12:39]SAM_PROTO_GetShiftState done [16:12:39]FM_GetShiftState done [16:12:39]req_shift_opened done [16:12:39]requested_item shift.open_date is exist - process it [16:12:39]req_shift_open_date [16:12:39]req_shift_open_date done [16:12:39]produce_requested_data done [16:12:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2693,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:12:39]process_action_free close_receipt [16:12:39]json_value_free [16:12:39]json_value_free done [16:12:39]process_json_proto returns [16:12:39]Send response to host [16:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2693,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:12:39]free response buf [16:12:39]execute_script done [16:12:39]execute_script returns [16:12:39]free content buf [16:12:39]Sock 9.Close socket [16:12:39]Sock 9.Thread stoped [16:12:42]ConnectInit Can't take IP for lk.salyk.kg [16:12:42]CommunicateWithHost connect error [16:12:42]CommunicateWithHost err = -1 [16:12:42]OFD Sender: Server communicate error [16:12:47]OFD Sender: Processing packet 2693 [packets to send 1, broken 0] [16:12:47]ProducePacketName [16:12:47]name=ofd_packets/00002693 [16:12:47]OFD Sender: To server: pG, [16:12:47]CommunicateWithHost lk.salyk.kg:30040 [16:12:47]ConnectInit lk.salyk.kg [16:12:52]ConnectInit Can't take IP for lk.salyk.kg [16:12:52]CommunicateWithHost connect error [16:12:52]CommunicateWithHost err = -1 [16:12:52]OFD Sender: Server communicate error [16:12:57]OFD Sender: Processing packet 2693 [packets to send 1, broken 0] [16:12:57]ProducePacketName [16:12:57]name=ofd_packets/00002693 [16:12:57]OFD Sender: To server: pG, [16:12:57]CommunicateWithHost lk.salyk.kg:30040 [16:12:57]ConnectInit lk.salyk.kg [16:13:02]ConnectInit Can't take IP for lk.salyk.kg [16:13:02]CommunicateWithHost connect error [16:13:02]CommunicateWithHost err = -1 [16:13:02]OFD Sender: Server communicate error [16:13:07]OFD Sender: Processing packet 2693 [packets to send 1, broken 0] [16:13:07]ProducePacketName [16:13:07]name=ofd_packets/00002693 [16:13:07]OFD Sender: To server: pG, [16:13:07]CommunicateWithHost lk.salyk.kg:30040 [16:13:07]ConnectInit lk.salyk.kg [16:13:12]ConnectInit Can't take IP for lk.salyk.kg [16:13:12]CommunicateWithHost connect error [16:13:12]CommunicateWithHost err = -1 [16:13:12]OFD Sender: Server communicate error [16:13:17]OFD Sender: Processing packet 2693 [packets to send 1, broken 0] [16:13:17]ProducePacketName [16:13:17]name=ofd_packets/00002693 [16:13:17]OFD Sender: To server: pG, [16:13:17]CommunicateWithHost lk.salyk.kg:30040 [16:13:17]ConnectInit lk.salyk.kg [16:13:17]Connected sock=9 [16:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 4A 64 06 01 EA C3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E B3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 1F 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 74 62 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 0A 00 00 35 04 06 00 E0 B8 B8 62 B1 4E 0F 54 33 F6 F6 87 2B 24 [16:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 97 27 47 00 7F AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 0A 00 00 F4 03 04 00 02 0E AA 66 B6 04 01 00 00 DA 9D BC 8A 95 E6 FE 86 [16:13:18]CommunicateWithHost err = 0 [16:13:18]CheckOFDResponse [16:13:18]1017 (14) - 77093643461234 [16:13:18]1041 (16) - 0000000002094248 [16:13:18]1040 (4) - 2693 [16:13:18]1012 (4) - 31.07.2024 10:12 [16:13:18]1206 (1) - 0 [16:13:18]OFD Sender: Remove packet 2693 [16:13:18]ProducePacketName [16:13:18]name=ofd_packets/00002693 [16:13:18]NVStorageDeleteData [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:24]ConnectInit Can't connect to host [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:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]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:35]accept exits with 10 [16:29:35]New connection [16:29:35]New thread 3066781028 created [16:29:35]Thread 3066637668 joined [16:29:35]Waiting for new connection... [16:29:35] Sock 10.Parse request [16:29:35]Sock 10.Check first char [16:29:35]Sock 10.First char is OK [16:29:35]request: POST /json_proto HTTP/1.0 [16:29:35]Method: POST [16:29:35]URL: /json_proto [16:29:35]Method is POST - this is cgi request [16:29:35]url: /json_proto [16:29:35]query_string will be loaded in cgi processing [16:29:35]execute_cgi json_proto POST (null) [16:29:35]execute_cgi path=json_proto method=POST [16:29:35]POST find Content-Length [16:29:35]Host: 172.17.45.132:8080 [16:29:35]Content-Length: 800 [16:29:35]Content-Type: application/json [16:29:35] [16:29:35]POST finish read [16:29:35]Found Content-Length = 800 [16:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)611270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:35]execute_script... [16:29: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)611270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:35]POST & json_proto [16:29:35]process_json_proto [16:29:35]json parsed OK: [16:29:35]protocol is kg_v1.0 [16:29:35]action value=close_receipt [16:29:35]process_action close_receipt [16:29:35]cmd_close_receipt [16:29:35]MH_GetDate [16:29:35]Write to MH i2c: F0 00 00 7A 11 7A [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 09 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 09 00 7A 11 00 70 66 AA 66 E3 0B 90 66 4D [16:29:35]GetLastDocTimeStamp 1722442356 [16:29:35]current date 1722443376 [16:29:35]FM_GetShiftState [16:29:35]SAM_PROTO_GetShiftState [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 13 01 00 [16:29:35]Write to MH i2c: E2 08 00 7B 11 80 13 01 00 00 00 00 00 09 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 7B 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 D6 [16:29:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:29:35]wFMCommunicate OK [16:29:35]SAM_PROTO_GetShiftState done [16:29:35]FM_GetShiftState done [16:29:35]opened in 1722384689 [16:29:35]opened+sec_in_day 1722471089 [16:29:35]quantity*price = 60003 [16:29:35]sum+1 = 60004 [16:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 147 31.07.2024 16:29 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2694 ФПД: 47181057861999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T162936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2694&fm=47181057861999&tin=02508201610067®Number=0000000000189667&sum=60003 [16:29:36]StoreToDocumentArchive [16:29:36]shift 17 fd 2694 [16:29:36]save to /storage/0017/doc_00002694 [16:29:36]save last doc name /storage/0017/doc_00002694 to /storage/kkm_last_doc_name [16:29:36]save OK [16:29:36]Clear old archive folders... [16:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:36]tlvbuf is B6E7E0F0 [16:29:36]SAM_PROTO_ClearQueue [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 09 00 00 [16:29:36]Write to MH i2c: E2 08 00 88 11 80 09 00 00 00 00 00 00 0B [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_ClearQueue done [16:29:36]KKMCreateOFDPacket [16:29:36]OFDProtocolAddRootSTLVToBuf [16:29:36]FM_MakeSignedData [16:29:36]FM_MakeSignedData [16:29:36]SAM_PROTO_SignData [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 01 02 [16:29:36]Write to MH i2c: E2 08 00 89 11 80 0D 01 02 00 00 00 00 13 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [16:29:37]RAPDU: 90 00 [16:29:37]wFMCommunicate OK [16:29:37]wFMCommunicate request_size=255 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 70 66 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 0A 00 00 35 04 06 00 2A [16:29:37]Write to MH i2c: E2 02 01 8A 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 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 70 66 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 0A 00 00 35 04 06 00 2A 00 00 A9 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [16:29:37]RAPDU: 90 00 [16:29:37]wFMCommunicate OK [16:29:37]wFMCommunicate request_size=10 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 0D 02 02 05 E9 32 31 A9 6F [16:29:37]Write to MH i2c: E2 0D 00 8B 11 80 0D 02 02 05 00 E9 32 31 A9 6F 00 00 84 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [16:29:37]RAPDU: 90 00 [16:29:37]wFMCommunicate OK [16:29:37]wFMCommunicate request_size=4 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 0D 03 02 [16:29:37]Write to MH i2c: E2 08 00 8C 11 80 0D 03 02 00 00 00 00 18 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0B 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0B 00 8C 11 00 E5 8C D9 0F 3B CA AB C7 90 00 E9 [16:29:37]RAPDU: E5 8C D9 0F 3B CA AB C7 90 00 [16:29:37]wFMCommunicate OK [16:29:37]SAM_PROTO_SignData done [16:29:37]FM_MakeSignedData done [16:29:37]CreateOFDProtocolMessage [16:29:37]wFMCommunicate request_size=4 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 11 00 00 [16:29:37]Write to MH i2c: E2 08 00 8D 11 80 11 00 00 00 00 00 00 18 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 17 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 17 00 8D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 68 [16:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:29:37]wFMCommunicate OK [16:29:37]CreateOFDProtocolMessage done [16:29:37]OFDSenderStorePacket 2694 [16:29:37]StoreOFDPacket docnum=2694 [16:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 EA 05 07 01 6C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 70 66 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 0A 00 00 35 04 06 00 2A E9 32 31 A9 6F E5 8C D9 0F 3B CA AB C7 [16:29:37]CheckFolder [16:29:37]dirname=/storage/ofd_packets [16:29:37]CheckFolder done [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00002694 [16:29:37]NVStorageSaveData ofd_packets/00002694 [16:29:37]File name is /storage/ofd_packets/00002694 [16:29:37]Write 301 bytes [16:29:37]NVStorageSaveData done [16:29:37]OFDSenderStorePacket done [16:29:37]KKMCreateOFDPacket done [16:29:37]NVStorageSaveData kkm_last_timestamp [16:29:37]File name is /storage/kkm_last_timestamp [16:29:37]Write 4 bytes [16:29:37]NVStorageSaveData done [16:29:37]ExternCall_PrintAddStr [16:29:37]wPrintStart [16:29:37]Write to MH i2c: 01 00 00 8E 11 9F [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [16:29:37]RasterBufferAndPrint [16:29:37]line Счет N : (1)611270 [16:29:37]line ИНН: 02508201610067 [16:29:37]line Контрольно-Кассовый Чек [16:29:37]line ПРОДАЖА [16:29:37]line ТРК (МРК, ГНК) : 42 [16:29:37]line Товар: 2710124130 [16:29:37]line Аи-92-К-2 [16:29:37]line 8.850 * 67.80 [16:29:37]line = 600.03 [16:29:37]line НДС 12% НСП 1% [16:29:37]line > о реализуемом товаре [16:29:37]line ИТОГО: 600.03 [16:29:37]line НСП 1% : 5.31 [16:29:37]line НДС 12% : 63.72 [16:29:37]line Наличными: 0.00 [16:29:37]line Безнал.: 600.03 [16:29:37]line Место: АЗС № 127 "Партнер Нефть" [16:29:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:29:37]line СНО: Общий режим [16:29:37]line Чек 147 31.07.2024 16:29 [16:29:37]line Смена: 17 ФФД: 1.0 [16:29:37]line ЗНМ: 0300000161 [16:29:37]line РНМ: 0000000000189667 [16:29:37]line Версия ККМ: v1.0 [16:29:37]line Платежная система: O! деньги [16:29:37]line ФМ: 0000000002094248 [16:29:37]line ФД: 2694 [16:29:37]line ФПД: 47181057861999 [16:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T162936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2694&fm=47181057861999&tin=02508201610067®Number=0000000000189667&sum=60003 [16:29:37]OFD Sender: Processing packet 2694 [packets to send 1, broken 0] [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00002694 [16:29:37]OFD Sender: To server: pG, [16:29:37]CommunicateWithHost lk.salyk.kg:30040 [16:29:37]ConnectInit lk.salyk.kg [16:29:37]written 0, free lines is 4095 [16:29:37]Connected sock=9 [16:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 EA 05 07 01 6C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 70 66 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 0A 00 00 35 04 06 00 2A E9 32 31 A9 6F E5 8C D9 0F 3B CA AB C7 [16:29:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E4 85 47 00 18 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 0A 00 00 F4 03 04 00 D6 11 AA 66 B6 04 01 00 00 3D 7C DF 5A 2B 4F 02 9A [16:29:38]CommunicateWithHost err = 0 [16:29:38]CheckOFDResponse [16:29:38]1017 (14) - 77093643461234 [16:29:38]1041 (16) - 0000000002094248 [16:29:38]1040 (4) - 2694 [16:29:38]1012 (4) - 31.07.2024 10:28 [16:29:38]1206 (1) - 0 [16:29:38]OFD Sender: Remove packet 2694 [16:29:38]ProducePacketName [16:29:38]name=ofd_packets/00002694 [16:29:38]NVStorageDeleteData [16:29:38]Write to MH i2c: 01 00 00 B8 11 C9 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 B8 11 00 00 00 00 00 FF 0C DB [16:29:38]RasterBufferAndPrint [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]written 0, free lines is 3333 [16:29:38]MH_Cut [16:29:38]Write to MH i2c: D1 01 00 BF 11 01 A2 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 01 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 01 00 BF 11 00 A1 [16:29:38]Write to MH i2c: 01 00 00 C0 11 D1 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]OFD Sender: No OFD packet to send [16:29:38]*** Cut start [16:29:38]*** Partial cut [16:29:38]*** CUTSNS_PIN = 1 [16:29:38]*** CUTSNS_PIN = 0 [16:29:39]*** Brake cut motor [16:29:39]Read from MH i2c: 01 [16:29:39]MH_I2C_Read... [16:29:39]*** Stop cut motor [16:29:39]*** Cut end [16:29:39]Read from MH i2c: 01 07 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: 01 07 00 C0 11 00 00 00 00 00 FF 0F E6 [16:29:39]process_action close_receipt done [16:29:39]requested_data is exist [16:29:39]produce_requested_data [16:29:39]requested_item fm.sn is exist - process it [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 11 00 00 [16:29:39]Write to MH i2c: E2 08 00 C1 11 80 11 00 00 00 00 00 00 4C [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 17 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 17 00 C1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [16:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:29:39]wFMCommunicate OK [16:29:39]requested_item fd.num is exist - process it [16:29:39]SAM_PROTO_GetFieldsCounters [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 13 00 00 [16:29:39]Write to MH i2c: E2 08 00 C2 11 80 13 00 00 00 00 00 00 4F [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 C2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 86 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 86 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetFieldsCounters done [16:29:39]requested_item shift.num is exist - process it [16:29:39]requested_item shift.opened is exist - process it [16:29:39]req_shift_opened [16:29:39]FM_GetShiftState [16:29:39]SAM_PROTO_GetShiftState [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 13 01 00 [16:29:39]Write to MH i2c: E2 08 00 C3 11 80 13 01 00 00 00 00 00 51 [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 C3 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 1E [16:29:39]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetShiftState done [16:29:39]FM_GetShiftState done [16:29:39]req_shift_opened done [16:29:39]requested_item shift.open_date is exist - process it [16:29:39]req_shift_open_date [16:29:39]req_shift_open_date done [16:29:39]produce_requested_data done [16:29:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2694,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:29:39]process_action_free close_receipt [16:29:39]json_value_free [16:29:39]json_value_free done [16:29:39]process_json_proto returns [16:29:39]Send response to host [16:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2694,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:29:39]free response buf [16:29:39]execute_script done [16:29:39]execute_script returns [16:29:39]free content buf [16:29:39]Sock 10.Close socket [16:29:39]Sock 10.Thread stoped [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [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:54]accept exits with 8 [16:32:54]New connection [16:32:54]New thread 3066637668 created [16:32:54]Thread 3066781028 joined [16:32:54]Waiting for new connection... [16:32:54] Sock 8.Parse request [16:32:54]Sock 8.Check first char [16:32:54]Sock 8.First char is OK [16:32:54]request: POST /json_proto HTTP/1.0 [16:32:54]Method: POST [16:32:54]URL: /json_proto [16:32:54]Method is POST - this is cgi request [16:32:54]url: /json_proto [16:32:54]query_string will be loaded in cgi processing [16:32:54]execute_cgi json_proto POST (null) [16:32:54]execute_cgi path=json_proto method=POST [16:32:54]POST find Content-Length [16:32:54]Host: 172.17.45.132:8080 [16:32:54]Content-Length: 698 [16:32:54]Content-Type: application/json [16:32:54] [16:32:54]POST finish read [16:32:54]Found Content-Length = 698 [16:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126843", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:54]execute_script... [16:32: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 : (3)126843", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:54]POST & json_proto [16:32:54]process_json_proto [16:32:54]json parsed OK: [16:32:54]protocol is kg_v1.0 [16:32:54]action value=close_receipt [16:32:54]process_action close_receipt [16:32:54]cmd_close_receipt [16:32:54]MH_GetDate [16:32:54]Write to MH i2c: F0 00 00 C4 11 C4 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 09 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: F0 09 00 C4 11 00 37 67 AA 66 E3 0B 90 66 5F [16:32:54]GetLastDocTimeStamp 1722443376 [16:32:54]current date 1722443575 [16:32:54]FM_GetShiftState [16:32:54]SAM_PROTO_GetShiftState [16:32:54]wFMCommunicate request_size=4 [16:32:54]MH_SAM_APDU [16:32:54]CAPDU: 80 13 01 00 [16:32:54]Write to MH i2c: E2 08 00 C5 11 80 13 01 00 00 00 00 00 53 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:54]Read from MH i2c: E2 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: E2 0E 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: E2 0E 00 C5 11 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 20 [16:32:54]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:32:54]wFMCommunicate OK [16:32:54]SAM_PROTO_GetShiftState done [16:32:54]FM_GetShiftState done [16:32:54]opened in 1722384689 [16:32:54]opened+sec_in_day 1722471089 [16:32:54]quantity*price = 10000 [16:32:54]sum+1 = 10001 [16:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 148 31.07.2024 16:32 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2695 ФПД: 180863440595303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T163255&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2695&fm=180863440595303&tin=02508201610067®Number=0000000000189667&sum=10000 0 [16:32:55]StoreToDocumentArchive [16:32:55]shift 17 fd 2695 [16:32:55]save to /storage/0017/doc_00002695 [16:32:55]save last doc name /storage/0017/doc_00002695 to /storage/kkm_last_doc_name [16:32:55]save OK [16:32:55]Clear old archive folders... [16:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=298 [16:32:55]tlvbuf is B6E7E3D0 [16:32:55]SAM_PROTO_ClearQueue [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 09 00 00 [16:32:55]Write to MH i2c: E2 08 00 D2 11 80 09 00 00 00 00 00 00 55 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]SAM_PROTO_ClearQueue done [16:32:55]KKMCreateOFDPacket [16:32:55]OFDProtocolAddRootSTLVToBuf [16:32:55]FM_MakeSignedData [16:32:55]FM_MakeSignedData [16:32:55]SAM_PROTO_SignData [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 01 02 [16:32:55]Write to MH i2c: E2 08 00 D3 11 80 0D 01 02 00 00 00 00 5D [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=255 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 94 00 00 00 F4 03 04 00 37 67 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [16:32:55]Write to MH i2c: E2 02 01 D4 11 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 94 00 00 00 F4 03 04 00 37 67 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 19 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 D4 11 00 90 00 59 [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=57 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 0A 00 00 35 04 06 00 A4 7E 8D 21 29 67 [16:32:55]Write to MH i2c: E2 3C 00 D5 11 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 0A 00 00 35 04 06 00 A4 7E 8D 21 29 67 00 00 17 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 03 00 D5 11 00 90 00 5A [16:32:55]RAPDU: 90 00 [16:32:55]wFMCommunicate OK [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 0D 03 02 [16:32:55]Write to MH i2c: E2 08 00 D6 11 80 0D 03 02 00 00 00 00 62 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 0B 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 0B 00 D6 11 00 80 44 E6 DE 6A 67 4B B5 90 00 BC [16:32:56]RAPDU: 80 44 E6 DE 6A 67 4B B5 90 00 [16:32:56]wFMCommunicate OK [16:32:56]SAM_PROTO_SignData done [16:32:56]FM_MakeSignedData done [16:32:56]CreateOFDProtocolMessage [16:32:56]wFMCommunicate request_size=4 [16:32:56]MH_SAM_APDU [16:32:56]CAPDU: 80 11 00 00 [16:32:56]Write to MH i2c: E2 08 00 D7 11 80 11 00 00 00 00 00 00 62 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 17 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 17 00 D7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [16:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:32:56]wFMCommunicate OK [16:32:56]CreateOFDProtocolMessage done [16:32:56]OFDSenderStorePacket 2695 [16:32:56]StoreOFDPacket docnum=2695 [16:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3E 01 00 00 CB 9E 36 01 B6 0C 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 94 00 00 00 F4 03 04 00 37 67 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 0A 00 00 35 04 06 00 A4 7E 8D 21 29 67 80 44 E6 DE 6A 67 4B B5 [16:32:56]CheckFolder [16:32:56]dirname=/storage/ofd_packets [16:32:56]CheckFolder done [16:32:56]ProducePacketName [16:32:56]name=ofd_packets/00002695 [16:32:56]NVStorageSaveData ofd_packets/00002695 [16:32:56]File name is /storage/ofd_packets/00002695 [16:32:56]Write 348 bytes [16:32:56]NVStorageSaveData done [16:32:56]OFDSenderStorePacket done [16:32:56]KKMCreateOFDPacket done [16:32:56]NVStorageSaveData kkm_last_timestamp [16:32:56]File name is /storage/kkm_last_timestamp [16:32:56]Write 4 bytes [16:32:56]NVStorageSaveData done [16:32:56]ExternCall_PrintAddStr [16:32:56]wPrintStart [16:32:56]Write to MH i2c: 01 00 00 D8 11 E9 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 FF 0F FE [16:32:56]RasterBufferAndPrint [16:32:56]line Счет N : (3)126843 [16:32:56]line ИНН: 02508201610067 [16:32:56]line Контрольно-Кассовый Чек [16:32:56]line ПРОДАЖА [16:32:56]line Товар: 4870001571528 [16:32:56]line Вода ASU пит н.газ персик ПЭТ 1,0 л [16:32:56]line 1.000 * 100.00 [16:32:56]line = 100.00 [16:32:56]line НДС 12% НСП 1% [16:32:56]line > о реализуемом товаре [16:32:56]line ИТОГО: 100.00 [16:32:56]line НСП 1% : 0.88 [16:32:56]line НДС 12% : 10.62 [16:32:56]line Наличными: 100.00 [16:32:56]line Безнал.: 0.00 [16:32:56]line Место: АЗС № 127 "Партнер Нефть" [16:32:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:32:56]line СНО: Общий режим [16:32:56]line Чек 148 31.07.2024 16:32 [16:32:56]line Смена: 17 ФФД: 1.0 [16:32:56]line ЗНМ: 0300000161 [16:32:56]line РНМ: 0000000000189667 [16:32:56]line Версия ККМ: v1.0 [16:32:56]line ФМ: 0000000002094248 [16:32:56]line ФД: 2695 [16:32:56]line ФПД: 180863440595303 [16:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T163255&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2695&fm=180863440595303&tin=02508201610067®Number=0000000000189667&sum=10000 [16:32:56]line 0 [16:32:56]OFD Sender: Processing packet 2695 [packets to send 1, broken 0] [16:32:56]ProducePacketName [16:32:56]name=ofd_packets/00002695 [16:32:56]OFD Sender: To server: pG, [16:32:56]CommunicateWithHost lk.salyk.kg:30040 [16:32:56]ConnectInit lk.salyk.kg [16:32:56]written 0, free lines is 4095 [16:32:56]Connected sock=11 [16:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3E 01 00 00 CB 9E 36 01 B6 0C 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 94 00 00 00 F4 03 04 00 37 67 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 0A 00 00 35 04 06 00 A4 7E 8D 21 29 67 80 44 E6 DE 6A 67 4B B5 [16:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 96 F4 47 00 3A D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 0A 00 00 F4 03 04 00 9D 12 AA 66 B6 04 01 00 00 2D FC 6E B1 27 E7 CF 4B [16:32:56]CommunicateWithHost err = 0 [16:32:56]CheckOFDResponse [16:32:56]1017 (14) - 77093643461234 [16:32:56]1041 (16) - 0000000002094248 [16:32:56]1040 (4) - 2695 [16:32:56]1012 (4) - 31.07.2024 10:31 [16:32:56]1206 (1) - 0 [16:32:56]OFD Sender: Remove packet 2695 [16:32:56]ProducePacketName [16:32:56]name=ofd_packets/00002695 [16:32:56]NVStorageDeleteData [16:32:56]Write to MH i2c: 01 00 00 01 12 13 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 04 0D 2B [16:32:56]RasterBufferAndPrint [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]line [16:32:56]written 0, free lines is 3338 [16:32:56]MH_Cut [16:32:56]Write to MH i2c: D1 01 00 08 12 01 EC [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 01 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: D1 01 00 08 12 00 EB [16:32:56]Write to MH i2c: 01 00 00 09 12 1B [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:57]OFD Sender: No OFD packet to send [16:32:57]*** Cut start [16:32:57]*** Partial cut [16:32:57]*** CUTSNS_PIN = 1 [16:32:57]*** CUTSNS_PIN = 0 [16:32:57]*** Brake cut motor [16:32:58]Read from MH i2c: 01 [16:32:58]MH_I2C_Read... [16:32:58]*** Stop cut motor [16:32:58]*** Cut end [16:32:58]Read from MH i2c: 01 07 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 FF 0F 30 [16:32:58]process_action close_receipt done [16:32:58]requested_data is exist [16:32:58]produce_requested_data [16:32:58]requested_item fm.sn is exist - process it [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 11 00 00 [16:32:58]Write to MH i2c: E2 08 00 0A 12 80 11 00 00 00 00 00 00 96 [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 17 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 17 00 0A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [16:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:32:58]wFMCommunicate OK [16:32:58]requested_item fd.num is exist - process it [16:32:58]SAM_PROTO_GetFieldsCounters [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 13 00 00 [16:32:58]Write to MH i2c: E2 08 00 0B 12 80 13 00 00 00 00 00 00 99 [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 62 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 62 00 0B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 87 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 87 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:58]wFMCommunicate OK [16:32:58]SAM_PROTO_GetFieldsCounters done [16:32:58]requested_item shift.num is exist - process it [16:32:58]requested_item shift.opened is exist - process it [16:32:58]req_shift_opened [16:32:58]FM_GetShiftState [16:32:58]SAM_PROTO_GetShiftState [16:32:58]wFMCommunicate request_size=4 [16:32:58]MH_SAM_APDU [16:32:58]CAPDU: 80 13 01 00 [16:32:58]Write to MH i2c: E2 08 00 0C 12 80 13 01 00 00 00 00 00 9B [16:32:58]Write i2c OK [16:32:58]MH_I2C_Read... [16:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:58]Read from MH i2c: E2 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 0E 00 [16:32:58]MH_I2C_Read... [16:32:58]Read from MH i2c: E2 0E 00 0C 12 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 68 [16:32:58]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:32:58]wFMCommunicate OK [16:32:58]SAM_PROTO_GetShiftState done [16:32:58]FM_GetShiftState done [16:32:58]req_shift_opened done [16:32:58]requested_item shift.open_date is exist - process it [16:32:58]req_shift_open_date [16:32:58]req_shift_open_date done [16:32:58]produce_requested_data done [16:32:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2695,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:32:58]process_action_free close_receipt [16:32:58]json_value_free [16:32:58]json_value_free done [16:32:58]process_json_proto returns [16:32:58]Send response to host [16:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2695,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:32:58]free response buf [16:32:58]execute_script done [16:32:58]execute_script returns [16:32:58]free content buf [16:32:58]Sock 8.Close socket [16:32:58]Sock 8.Thread stoped [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:05]accept exits with 9 [16:37:05]New connection [16:37:05]New thread 3066781028 created [16:37:05]Thread 3066637668 joined [16:37:05]Waiting for new connection... [16:37:05] Sock 9.Parse request [16:37:05]Sock 9.Check first char [16:37:05]Sock 9.First char is OK [16:37:05]request: POST /json_proto HTTP/1.0 [16:37:05]Method: POST [16:37:05]URL: /json_proto [16:37:05]Method is POST - this is cgi request [16:37:05]url: /json_proto [16:37:05]query_string will be loaded in cgi processing [16:37:05]execute_cgi json_proto POST (null) [16:37:05]execute_cgi path=json_proto method=POST [16:37:05]POST find Content-Length [16:37:05]Host: 172.17.45.132:8080 [16:37:05]Content-Length: 747 [16:37:05]Content-Type: application/json [16:37:05] [16:37:05]POST finish read [16:37:05]Found Content-Length = 747 [16:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126845", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:05]execute_script... [16:37:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126845", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:05]POST & json_proto [16:37:05]process_json_proto [16:37:05]json parsed OK: [16:37:05]protocol is kg_v1.0 [16:37:05]action value=close_receipt [16:37:05]process_action close_receipt [16:37:05]cmd_close_receipt [16:37:05]MH_GetDate [16:37:05]Write to MH i2c: F0 00 00 0D 12 0E [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 09 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: F0 09 00 0D 12 00 32 68 AA 66 E3 0B 90 66 A5 [16:37:05]GetLastDocTimeStamp 1722443575 [16:37:05]current date 1722443826 [16:37:05]FM_GetShiftState [16:37:05]SAM_PROTO_GetShiftState [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 13 01 00 [16:37:05]Write to MH i2c: E2 08 00 0E 12 80 13 01 00 00 00 00 00 9D [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:05]Read from MH i2c: E2 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 0E 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 0E 00 0E 12 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 6A [16:37:05]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:37:05]wFMCommunicate OK [16:37:05]SAM_PROTO_GetShiftState done [16:37:05]FM_GetShiftState done [16:37:05]opened in 1722384689 [16:37:05]opened+sec_in_day 1722471089 [16:37:05]quantity*price = 59000 [16:37:05]sum+1 = 59001 [16:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 149 31.07.2024 16:37 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2696 ФПД: 180612387818787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T163706&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2696&fm=180612387818787&tin=02508201610067®Number=0000000000189667&sum=59000 0 [16:37:06]StoreToDocumentArchive [16:37:06]shift 17 fd 2696 [16:37:06]save to /storage/0017/doc_00002696 [16:37:06]save last doc name /storage/0017/doc_00002696 to /storage/kkm_last_doc_name [16:37:06]save OK [16:37:06]Clear old archive folders... [16:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=307 [16:37:06]tlvbuf is 00E7D0E0 [16:37:06]SAM_PROTO_ClearQueue [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 09 00 00 [16:37:06]Write to MH i2c: E2 08 00 1B 12 80 09 00 00 00 00 00 00 9F [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_ClearQueue done [16:37:06]KKMCreateOFDPacket [16:37:06]OFDProtocolAddRootSTLVToBuf [16:37:06]FM_MakeSignedData [16:37:06]FM_MakeSignedData [16:37:06]SAM_PROTO_SignData [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 01 02 [16:37:06]Write to MH i2c: E2 08 00 1C 12 80 0D 01 02 00 00 00 00 A7 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]wFMCommunicate request_size=255 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 32 68 AA 66 0E 04 04 00 11 00 00 00 B9 04 [16:37:06]Write to MH i2c: E2 02 01 1D 12 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 32 68 AA 66 0E 04 04 00 11 00 00 00 B9 04 00 00 78 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 1D 12 00 90 00 A3 [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]wFMCommunicate request_size=66 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 0A 00 00 35 04 06 00 A4 44 19 37 CD 23 [16:37:07]Write to MH i2c: E2 45 00 1E 12 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 0A 00 00 35 04 06 00 A4 44 19 37 CD 23 00 00 BF [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [16:37:07]RAPDU: 90 00 [16:37:07]wFMCommunicate OK [16:37:07]wFMCommunicate request_size=4 [16:37:07]MH_SAM_APDU [16:37:07]CAPDU: 80 0D 03 02 [16:37:07]Write to MH i2c: E2 08 00 1F 12 80 0D 03 02 00 00 00 00 AC [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 0B 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 0B 00 1F 12 00 41 1E E6 7B B8 9B 4B 90 90 00 9B [16:37:07]RAPDU: 41 1E E6 7B B8 9B 4B 90 90 00 [16:37:07]wFMCommunicate OK [16:37:07]SAM_PROTO_SignData done [16:37:07]FM_MakeSignedData done [16:37:07]CreateOFDProtocolMessage [16:37:07]wFMCommunicate request_size=4 [16:37:07]MH_SAM_APDU [16:37:07]CAPDU: 80 11 00 00 [16:37:07]Write to MH i2c: E2 08 00 20 12 80 11 00 00 00 00 00 00 AC [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:07]Read from MH i2c: E2 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 17 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: E2 17 00 20 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [16:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:37:07]wFMCommunicate OK [16:37:07]CreateOFDProtocolMessage done [16:37:07]OFDSenderStorePacket 2696 [16:37:07]StoreOFDPacket docnum=2696 [16:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 40 DE 3F 01 38 4A 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 32 68 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 0A 00 00 35 04 06 00 A4 44 19 37 CD 23 41 1E E6 7B B8 9B 4B 90 [16:37:07]CheckFolder [16:37:07]dirname=/storage/ofd_packets [16:37:07]CheckFolder done [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00002696 [16:37:07]NVStorageSaveData ofd_packets/00002696 [16:37:07]File name is /storage/ofd_packets/00002696 [16:37:07]Write 357 bytes [16:37:07]NVStorageSaveData done [16:37:07]OFDSenderStorePacket done [16:37:07]KKMCreateOFDPacket done [16:37:07]NVStorageSaveData kkm_last_timestamp [16:37:07]File name is /storage/kkm_last_timestamp [16:37:07]Write 4 bytes [16:37:07]NVStorageSaveData done [16:37:07]ExternCall_PrintAddStr [16:37:07]wPrintStart [16:37:07]Write to MH i2c: 01 00 00 21 12 33 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 21 12 00 00 00 00 00 FF 0F 48 [16:37:07]RasterBufferAndPrint [16:37:07]line Счет N : (3)126845 [16:37:07]line ИНН: 02508201610067 [16:37:07]line Контрольно-Кассовый Чек [16:37:07]line ПРОДАЖА [16:37:07]line Товар: 2000028410025 [16:37:07]line Очки солнцезащитные в ассортименте [16:37:07]line 1.000 * 590.00 [16:37:07]line = 590.00 [16:37:07]line НДС 12% НСП 1% [16:37:07]line > о реализуемом товаре [16:37:07]line ИТОГО: 590.00 [16:37:07]line НСП 1% : 5.22 [16:37:07]line НДС 12% : 62.65 [16:37:07]line Наличными: 590.00 [16:37:07]line Безнал.: 0.00 [16:37:07]line Место: АЗС № 127 "Партнер Нефть" [16:37:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:37:07]line СНО: Общий режим [16:37:07]line Чек 149 31.07.2024 16:37 [16:37:07]line Смена: 17 ФФД: 1.0 [16:37:07]line ЗНМ: 0300000161 [16:37:07]line РНМ: 0000000000189667 [16:37:07]line Версия ККМ: v1.0 [16:37:07]line ФМ: 0000000002094248 [16:37:07]line ФД: 2696 [16:37:07]line ФПД: 180612387818787 [16:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T163706&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2696&fm=180612387818787&tin=02508201610067®Number=0000000000189667&sum=59000 [16:37:07]line 0 [16:37:07]OFD Sender: Processing packet 2696 [packets to send 1, broken 0] [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00002696 [16:37:07]OFD Sender: To server: pG, [16:37:07]CommunicateWithHost lk.salyk.kg:30040 [16:37:07]ConnectInit lk.salyk.kg [16:37:07]written 0, free lines is 4095 [16:37:07]Connected sock=10 [16:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 40 DE 3F 01 38 4A 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 32 68 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 0A 00 00 35 04 06 00 A4 44 19 37 CD 23 41 1E E6 7B B8 9B 4B 90 [16:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4A 9F 47 00 19 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 0A 00 00 F4 03 04 00 98 13 AA 66 B6 04 01 00 00 A5 99 5B F9 C8 9F FD 5C [16:37:07]CommunicateWithHost err = 0 [16:37:07]CheckOFDResponse [16:37:07]1017 (14) - 77093643461234 [16:37:07]1041 (16) - 0000000002094248 [16:37:07]1040 (4) - 2696 [16:37:07]1012 (4) - 31.07.2024 10:36 [16:37:07]1206 (1) - 0 [16:37:07]OFD Sender: Remove packet 2696 [16:37:07]ProducePacketName [16:37:07]name=ofd_packets/00002696 [16:37:07]NVStorageDeleteData [16:37:07]Write to MH i2c: 01 00 00 4A 12 5C [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 12 0D 82 [16:37:07]RasterBufferAndPrint [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]line [16:37:07]written 0, free lines is 3353 [16:37:07]MH_Cut [16:37:07]Write to MH i2c: D1 01 00 51 12 01 35 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 01 00 [16:37:07]MH_I2C_Read... [16:37:07]Read from MH i2c: D1 01 00 51 12 00 34 [16:37:07]Write to MH i2c: 01 00 00 52 12 64 [16:37:07]Write i2c OK [16:37:07]MH_I2C_Read... [16:37:08]OFD Sender: No OFD packet to send [16:37:08]*** Cut start [16:37:08]*** Partial cut [16:37:08]*** CUTSNS_PIN = 1 [16:37:08]*** CUTSNS_PIN = 0 [16:37:08]*** Brake cut motor [16:37:09]Read from MH i2c: 01 [16:37:09]MH_I2C_Read... [16:37:09]*** Stop cut motor [16:37:09]*** Cut end [16:37:09]Read from MH i2c: 01 07 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [16:37:09]process_action close_receipt done [16:37:09]requested_data is exist [16:37:09]produce_requested_data [16:37:09]requested_item fm.sn is exist - process it [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 11 00 00 [16:37:09]Write to MH i2c: E2 08 00 53 12 80 11 00 00 00 00 00 00 DF [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 53 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2F [16:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:37:09]wFMCommunicate OK [16:37:09]requested_item fd.num is exist - process it [16:37:09]SAM_PROTO_GetFieldsCounters [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 13 00 00 [16:37:09]Write to MH i2c: E2 08 00 54 12 80 13 00 00 00 00 00 00 E2 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 62 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 62 00 54 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 88 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [16:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 88 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_GetFieldsCounters done [16:37:09]requested_item shift.num is exist - process it [16:37:09]requested_item shift.opened is exist - process it [16:37:09]req_shift_opened [16:37:09]FM_GetShiftState [16:37:09]SAM_PROTO_GetShiftState [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 13 01 00 [16:37:09]Write to MH i2c: E2 08 00 55 12 80 13 01 00 00 00 00 00 E4 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 55 12 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 B1 [16:37:09]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_GetShiftState done [16:37:09]FM_GetShiftState done [16:37:09]req_shift_opened done [16:37:09]requested_item shift.open_date is exist - process it [16:37:09]req_shift_open_date [16:37:09]req_shift_open_date done [16:37:09]produce_requested_data done [16:37:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2696,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:37:09]process_action_free close_receipt [16:37:09]json_value_free [16:37:09]json_value_free done [16:37:09]process_json_proto returns [16:37:09]Send response to host [16:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2696,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:37:09]free response buf [16:37:09]execute_script done [16:37:09]execute_script returns [16:37:09]free content buf [16:37:09]Sock 9.Close socket [16:37:09]Sock 9.Thread stoped [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:46:00]ConnectInit Can't connect to host [16:46:04]OFD Sender: Processing packet 2697 [packets to send 1, broken 0] [16:46:04]ProducePacketName [16:46:04]name=ofd_packets/00002697 [16:46:04]OFD Sender: To server: pG, [16:46:04]CommunicateWithHost lk.salyk.kg:30040 [16:46:04]ConnectInit lk.salyk.kg [16:46:04]Connected sock=8 [16:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 07 7B 07 01 D2 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 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 37 6A AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 89 0A 00 00 35 04 06 00 F0 B5 4B B7 05 58 06 60 35 80 A1 EB B7 3B [16:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1D EF 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 89 0A 00 00 F4 03 04 00 B1 15 AA 66 B6 04 01 00 00 96 23 0F 7E 91 26 7E 93 [16:46:04]CommunicateWithHost err = 0 [16:46:04]CheckOFDResponse [16:46:04]1017 (14) - 77093643461234 [16:46:04]1041 (16) - 0000000002094248 [16:46:04]1040 (4) - 2697 [16:46:04]1012 (4) - 31.07.2024 10:45 [16:46:04]1206 (1) - 0 [16:46:04]OFD Sender: Remove packet 2697 [16:46:04]ProducePacketName [16:46:04]name=ofd_packets/00002697 [16:46:04]NVStorageDeleteData [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:07]accept exits with 9 [16:50:07]New connection [16:50:07]New thread 3066781028 created [16:50:07]Thread 3066637668 joined [16:50:07]Waiting for new connection... [16:50:07] Sock 9.Parse request [16:50:07]Sock 9.Check first char [16:50:07]Sock 9.First char is OK [16:50:07]request: POST /json_proto HTTP/1.0 [16:50:07]Method: POST [16:50:07]URL: /json_proto [16:50:07]Method is POST - this is cgi request [16:50:07]url: /json_proto [16:50:07]query_string will be loaded in cgi processing [16:50:07]execute_cgi json_proto POST (null) [16:50:07]execute_cgi path=json_proto method=POST [16:50:07]POST find Content-Length [16:50:07]Host: 172.17.45.132:8080 [16:50:07]Content-Length: 786 [16:50:07]Content-Type: application/json [16:50:07] [16:50:07]POST finish read [16:50:07]Found Content-Length = 786 [16:50:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126846", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:07]execute_script... [16:50: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 : (3)126846", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:07]POST & json_proto [16:50:07]process_json_proto [16:50:07]json parsed OK: [16:50:07]protocol is kg_v1.0 [16:50:07]action value=close_receipt [16:50:07]process_action close_receipt [16:50:07]cmd_close_receipt [16:50:07]MH_GetDate [16:50:07]Write to MH i2c: F0 00 00 A1 12 A2 [16:50:07]Write i2c OK [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: F0 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: F0 09 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: F0 09 00 A1 12 00 40 6B AA 66 E3 0B 90 66 4A [16:50:07]GetLastDocTimeStamp 1722444343 [16:50:07]current date 1722444608 [16:50:07]FM_GetShiftState [16:50:07]SAM_PROTO_GetShiftState [16:50:07]wFMCommunicate request_size=4 [16:50:07]MH_SAM_APDU [16:50:07]CAPDU: 80 13 01 00 [16:50:07]Write to MH i2c: E2 08 00 A2 12 80 13 01 00 00 00 00 00 31 [16:50:07]Write i2c OK [16:50:07]MH_I2C_Read... [16:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:07]Read from MH i2c: E2 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 0E 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 0E 00 A2 12 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 FE [16:50:07]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:50:07]wFMCommunicate OK [16:50:07]SAM_PROTO_GetShiftState done [16:50:07]FM_GetShiftState done [16:50:07]opened in 1722384689 [16:50:07]opened+sec_in_day 1722471089 [16:50:07]quantity*price = 6000 [16:50:07]sum+1 = 6001 [16:50:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 151 31.07.2024 16:50 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2698 ФПД: 36791657853604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T165008&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2698&fm=36791657853604&tin=02508201610067®Number=0000000000189667&sum=6000 0 [16:50:08]StoreToDocumentArchive [16:50:08]shift 17 fd 2698 [16:50:08]save to /storage/0017/doc_00002698 [16:50:08]save last doc name /storage/0017/doc_00002698 to /storage/kkm_last_doc_name [16:50:08]save OK [16:50:08]Clear old archive folders... [16:50:08]ProcessDocumentItem done err = 0, tmpTLVsize=268 [16:50:08]tlvbuf is B6E97820 [16:50:08]SAM_PROTO_ClearQueue [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 09 00 00 [16:50:08]Write to MH i2c: E2 08 00 AF 12 80 09 00 00 00 00 00 00 33 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]SAM_PROTO_ClearQueue done [16:50:08]KKMCreateOFDPacket [16:50:08]OFDProtocolAddRootSTLVToBuf [16:50:08]FM_MakeSignedData [16:50:08]FM_MakeSignedData [16:50:08]SAM_PROTO_SignData [16:50:08]wFMCommunicate request_size=4 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 01 02 [16:50:08]Write to MH i2c: E2 08 00 B0 12 80 0D 01 02 00 00 00 00 3B [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]wFMCommunicate request_size=255 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 40 6B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [16:50:08]Write to MH i2c: E2 02 01 B1 12 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 40 6B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 A5 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:08]Read from MH i2c: E2 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [16:50:08]RAPDU: 90 00 [16:50:08]wFMCommunicate OK [16:50:08]wFMCommunicate request_size=27 [16:50:08]MH_SAM_APDU [16:50:08]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 8A 0A 00 00 35 04 06 00 21 76 39 B2 72 A4 [16:50:08]Write to MH i2c: E2 1E 00 B2 12 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 8A 0A 00 00 35 04 06 00 21 76 39 B2 72 A4 00 00 BF [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:09]Read from MH i2c: E2 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [16:50:09]RAPDU: 90 00 [16:50:09]wFMCommunicate OK [16:50:09]wFMCommunicate request_size=4 [16:50:09]MH_SAM_APDU [16:50:09]CAPDU: 80 0D 03 02 [16:50:09]Write to MH i2c: E2 08 00 B3 12 80 0D 03 02 00 00 00 00 40 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:09]Read from MH i2c: E2 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 0B 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 0B 00 B3 12 00 4C 7A 4F DC 60 8D 2D EE 90 00 3A [16:50:09]RAPDU: 4C 7A 4F DC 60 8D 2D EE 90 00 [16:50:09]wFMCommunicate OK [16:50:09]SAM_PROTO_SignData done [16:50:09]FM_MakeSignedData done [16:50:09]CreateOFDProtocolMessage [16:50:09]wFMCommunicate request_size=4 [16:50:09]MH_SAM_APDU [16:50:09]CAPDU: 80 11 00 00 [16:50:09]Write to MH i2c: E2 08 00 B4 12 80 11 00 00 00 00 00 00 40 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:09]Read from MH i2c: E2 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 17 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 17 00 B4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 90 [16:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:50:09]wFMCommunicate OK [16:50:09]CreateOFDProtocolMessage done [16:50:09]OFDSenderStorePacket 2698 [16:50:09]StoreOFDPacket docnum=2698 [16:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 3A F5 18 01 0D 0C 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 40 6B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 0A 00 00 35 04 06 00 21 76 39 B2 72 A4 4C 7A 4F DC 60 8D 2D EE [16:50:09]CheckFolder [16:50:09]dirname=/storage/ofd_packets [16:50:09]CheckFolder done [16:50:09]ProducePacketName [16:50:09]name=ofd_packets/00002698 [16:50:09]NVStorageSaveData ofd_packets/00002698 [16:50:09]File name is /storage/ofd_packets/00002698 [16:50:09]Write 318 bytes [16:50:09]NVStorageSaveData done [16:50:09]OFDSenderStorePacket done [16:50:09]KKMCreateOFDPacket done [16:50:09]NVStorageSaveData kkm_last_timestamp [16:50:09]File name is /storage/kkm_last_timestamp [16:50:09]Write 4 bytes [16:50:09]NVStorageSaveData done [16:50:09]ExternCall_PrintAddStr [16:50:09]wPrintStart [16:50:09]Write to MH i2c: 01 00 00 B5 12 C7 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 07 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [16:50:09]RasterBufferAndPrint [16:50:09]line Счет N : (3)126846 [16:50:09]line ИНН: 02508201610067 [16:50:09]line Контрольно-Кассовый Чек [16:50:09]line ПРОДАЖА [16:50:09]line Товар: 4700003610560 [16:50:09]line Вода Энесай 5л. [16:50:09]line 1.000 * 60.00 [16:50:09]line = 60.00 [16:50:09]line НДС 12% НСП 1% [16:50:09]line > о реализуемом товаре [16:50:09]line ИТОГО: 60.00 [16:50:09]line НСП 1% : 0.53 [16:50:09]line НДС 12% : 6.37 [16:50:09]line Наличными: 0.00 [16:50:09]line Безнал.: 60.00 [16:50:09]line Место: АЗС № 127 "Партнер Нефть" [16:50:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:50:09]line СНО: Общий режим [16:50:09]line Чек 151 31.07.2024 16:50 [16:50:09]line Смена: 17 ФФД: 1.0 [16:50:09]line ЗНМ: 0300000161 [16:50:09]line РНМ: 0000000000189667 [16:50:09]line Версия ККМ: v1.0 [16:50:09]line Платежная система: O! деньги [16:50:09]line ФМ: 0000000002094248 [16:50:09]line ФД: 2698 [16:50:09]line ФПД: 36791657853604 [16:50:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T165008&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2698&fm=36791657853604&tin=02508201610067®Number=0000000000189667&sum=6000 [16:50:09]line 0 [16:50:09]OFD Sender: Processing packet 2698 [packets to send 1, broken 0] [16:50:09]ProducePacketName [16:50:09]name=ofd_packets/00002698 [16:50:09]OFD Sender: To server: pG, [16:50:09]CommunicateWithHost lk.salyk.kg:30040 [16:50:09]ConnectInit lk.salyk.kg [16:50:09]written 0, free lines is 4095 [16:50:09]Connected sock=10 [16:50:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 3A F5 18 01 0D 0C 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 40 6B AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 0A 00 00 35 04 06 00 21 76 39 B2 72 A4 4C 7A 4F DC 60 8D 2D EE [16:50:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 27 DA 47 00 9C B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 0A 00 00 F4 03 04 00 A6 16 AA 66 B6 04 01 00 00 30 50 E2 FC 9E 05 B6 5F [16:50:09]CommunicateWithHost err = 0 [16:50:09]CheckOFDResponse [16:50:09]1017 (14) - 77093643461234 [16:50:09]1041 (16) - 0000000002094248 [16:50:09]1040 (4) - 2698 [16:50:09]1012 (4) - 31.07.2024 10:49 [16:50:09]1206 (1) - 0 [16:50:09]OFD Sender: Remove packet 2698 [16:50:09]ProducePacketName [16:50:09]name=ofd_packets/00002698 [16:50:09]NVStorageDeleteData [16:50:09]Write to MH i2c: 01 00 00 DF 12 F1 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 07 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: 01 07 00 DF 12 00 00 00 00 00 F6 0C FA [16:50:09]RasterBufferAndPrint [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]line [16:50:09]written 0, free lines is 3324 [16:50:09]MH_Cut [16:50:09]Write to MH i2c: D1 01 00 E6 12 01 CA [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 01 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: D1 01 00 E6 12 00 C9 [16:50:09]Write to MH i2c: 01 00 00 E7 12 F9 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:10]OFD Sender: No OFD packet to send [16:50:10]*** Cut start [16:50:10]*** Partial cut [16:50:10]*** CUTSNS_PIN = 1 [16:50:10]*** CUTSNS_PIN = 0 [16:50:10]*** Brake cut motor [16:50:11]Read from MH i2c: 01 [16:50:11]MH_I2C_Read... [16:50:11]*** Stop cut motor [16:50:11]*** Cut end [16:50:11]Read from MH i2c: 01 07 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: 01 07 00 E7 12 00 00 00 00 00 FF 0F 0E [16:50:11]process_action close_receipt done [16:50:11]requested_data is exist [16:50:11]produce_requested_data [16:50:11]requested_item fm.sn is exist - process it [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 11 00 00 [16:50:11]Write to MH i2c: E2 08 00 E8 12 80 11 00 00 00 00 00 00 74 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 17 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 17 00 E8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C4 [16:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:50:11]wFMCommunicate OK [16:50:11]requested_item fd.num is exist - process it [16:50:11]SAM_PROTO_GetFieldsCounters [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 13 00 00 [16:50:11]Write to MH i2c: E2 08 00 E9 12 80 13 00 00 00 00 00 00 77 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 62 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 62 00 E9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:11]wFMCommunicate OK [16:50:11]SAM_PROTO_GetFieldsCounters done [16:50:11]requested_item shift.num is exist - process it [16:50:11]requested_item shift.opened is exist - process it [16:50:11]req_shift_opened [16:50:11]FM_GetShiftState [16:50:11]SAM_PROTO_GetShiftState [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 13 01 00 [16:50:11]Write to MH i2c: E2 08 00 EA 12 80 13 01 00 00 00 00 00 79 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 0E 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 0E 00 EA 12 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 46 [16:50:11]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:50:11]wFMCommunicate OK [16:50:11]SAM_PROTO_GetShiftState done [16:50:11]FM_GetShiftState done [16:50:11]req_shift_opened done [16:50:11]requested_item shift.open_date is exist - process it [16:50:11]req_shift_open_date [16:50:11]req_shift_open_date done [16:50:11]produce_requested_data done [16:50:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2698,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:50:11]process_action_free close_receipt [16:50:11]json_value_free [16:50:11]json_value_free done [16:50:11]process_json_proto returns [16:50:11]Send response to host [16:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2698,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:50:11]free response buf [16:50:11]execute_script done [16:50:11]execute_script returns [16:50:11]free content buf [16:50:11]Sock 9.Close socket [16:50:11]Sock 9.Thread stoped [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:41]accept exits with 8 [16:59:41]New connection [16:59:41]New thread 3066637668 created [16:59:41]Thread 3066781028 joined [16:59:41]Waiting for new connection... [16:59:41] Sock 8.Parse request [16:59:41]Sock 8.Check first char [16:59:41]Sock 8.First char is OK [16:59:41]request: POST /json_proto HTTP/1.0 [16:59:41]Method: POST [16:59:41]URL: /json_proto [16:59:41]Method is POST - this is cgi request [16:59:41]url: /json_proto [16:59:41]query_string will be loaded in cgi processing [16:59:41]execute_cgi json_proto POST (null) [16:59:41]execute_cgi path=json_proto method=POST [16:59:41]POST find Content-Length [16:59:41]Host: 172.17.45.132:8080 [16:59:41]Content-Length: 1193 [16:59:41]Content-Type: application/json [16:59:41] [16:59:41]POST finish read [16:59:41]Found Content-Length = 1193 [16:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611287\u000A31.07.2024 16:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 36.880 x 67.80\u000A\u0418\u0422\u041E\u0413: 2500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957732;3957733\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:41]execute_script... [16:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u044F\u0442\u043E\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)611287\u000A31.07.2024 16:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 36.880 x 67.80\u000A\u0418\u0422\u041E\u0413: 2500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957732;3957733\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:41]POST & json_proto [16:59:41]process_json_proto [16:59:41]json parsed OK: [16:59:41]protocol is kg_v1.0 [16:59:41]action value=print_text [16:59:41]process_action print_text [16:59:41]cmd_print_text [16:59:41]ExternCall_PrintAddStr [16:59:41]wPrintStart [16:59:41]Write to MH i2c: 01 00 00 EB 12 FD [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 07 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [16:59:41]RasterBufferAndPrint [16:59:41]line *****ТОВАРНЫЙ ЧЕК***** [16:59:41]line АЗС 127 [16:59:41]line Партнер нефть [16:59:41]line 02508201610067 [16:59:41]line Кассир : Аятов Д. [16:59:41]line Счет N : (1)611287 [16:59:41]line 31.07.2024 16:48 [16:59:41]line ПРОДАЖА [16:59:41]line ТРК (МРК, ГНК): 52 [16:59:41]line Вид ГСМ : 2710124130 [16:59:41]line Аи-92-К-2 [16:59:41]line 36.880 x 67.80 [16:59:41]line ИТОГ: 2500.46 [16:59:41]line Тип оплаты: Талоны: Топливные Талоны [16:59:41]line 3957732;3957733 [16:59:41]line ______________________ [16:59:41]line (подпись) [16:59:41]written 0, free lines is 4095 [16:59:41]Write to MH i2c: 01 00 00 FF 12 11 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 07 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 14 0E 3A [16:59:41]RasterBufferAndPrint [16:59:41]line [16:59:41]line [16:59:41]line [16:59:41]line [16:59:41]line [16:59:41]written 0, free lines is 3605 [16:59:41]MH_Cut [16:59:41]Write to MH i2c: D1 01 00 06 13 01 EB [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: D1 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: D1 01 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: D1 01 00 06 13 00 EA [16:59:41]Write to MH i2c: 01 00 00 07 13 1A [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:42]*** Cut start [16:59:42]*** Partial cut [16:59:42]*** CUTSNS_PIN = 1 [16:59:42]*** CUTSNS_PIN = 0 [16:59:42]*** Brake cut motor [16:59:42]Read from MH i2c: 01 [16:59:42]MH_I2C_Read... [16:59:42]*** Stop cut motor [16:59:42]*** Cut end [16:59:42]Read from MH i2c: 01 07 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 07 00 07 13 00 00 00 00 00 FF 0F 2F [16:59:42]process_action print_text done [16:59:42]requested_data is exist [16:59:42]produce_requested_data [16:59:42]requested_item fm.sn is exist - process it [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 11 00 00 [16:59:42]Write to MH i2c: E2 08 00 08 13 80 11 00 00 00 00 00 00 95 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 17 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 17 00 08 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E5 [16:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:59:42]wFMCommunicate OK [16:59:42]requested_item fd.num is exist - process it [16:59:42]SAM_PROTO_GetFieldsCounters [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 13 00 00 [16:59:42]Write to MH i2c: E2 08 00 09 13 80 13 00 00 00 00 00 00 98 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 62 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 62 00 09 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:59:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_GetFieldsCounters done [16:59:42]requested_item shift.num is exist - process it [16:59:42]requested_item shift.opened is exist - process it [16:59:42]req_shift_opened [16:59:42]FM_GetShiftState [16:59:42]SAM_PROTO_GetShiftState [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 13 01 00 [16:59:42]Write to MH i2c: E2 08 00 0A 13 80 13 01 00 00 00 00 00 9A [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0E 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0E 00 0A 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 67 [16:59:42]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_GetShiftState done [16:59:42]FM_GetShiftState done [16:59:42]req_shift_opened done [16:59:42]requested_item shift.open_date is exist - process it [16:59:42]req_shift_open_date [16:59:42]req_shift_open_date done [16:59:42]produce_requested_data done [16:59:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2698,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [16:59:42]process_action_free print_text [16:59:42]json_value_free [16:59:42]json_value_free done [16:59:42]process_json_proto returns [16:59:42]Send response to host [16:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2698,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [16:59:42]free response buf [16:59:42]execute_script done [16:59:42]execute_script returns [16:59:42]free content buf [16:59:42]Sock 8.Close socket [16:59:42]Sock 8.Thread stoped [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]accept exits with 9 [17:19:31]New connection [17:19:31]New thread 3066781028 created [17:19:31]Thread 3066637668 joined [17:19:31]Waiting for new connection... [17:19:31] Sock 9.Parse request [17:19:31]Sock 9.Check first char [17:19:31]Sock 9.First char is OK [17:19:31]request: POST /json_proto HTTP/1.0 [17:19:31]Method: POST [17:19:31]URL: /json_proto [17:19:31]Method is POST - this is cgi request [17:19:31]url: /json_proto [17:19:31]query_string will be loaded in cgi processing [17:19:31]execute_cgi json_proto POST (null) [17:19:31]execute_cgi path=json_proto method=POST [17:19:31]POST find Content-Length [17:19:31]Host: 172.17.45.132:8080 [17:19:31]Content-Length: 667 [17:19:31]Content-Type: application/json [17:19:31] [17:19:31]POST finish read [17:19:31]Found Content-Length = 667 [17:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126847", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:31]execute_script... [17:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126847", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:31]POST & json_proto [17:19:31]process_json_proto [17:19:31]json parsed OK: [17:19:31]protocol is kg_v1.0 [17:19:31]action value=close_receipt [17:19:31]process_action close_receipt [17:19:31]cmd_close_receipt [17:19:31]MH_GetDate [17:19:31]Write to MH i2c: F0 00 00 0B 13 0D [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: F0 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: F0 09 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: F0 09 00 0B 13 00 24 72 AA 66 E3 0B 90 66 A0 [17:19:31]GetLastDocTimeStamp 1722444608 [17:19:31]current date 1722446372 [17:19:31]FM_GetShiftState [17:19:31]SAM_PROTO_GetShiftState [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 13 01 00 [17:19:31]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0E 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 69 [17:19:31]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:19:31]wFMCommunicate OK [17:19:31]SAM_PROTO_GetShiftState done [17:19:31]FM_GetShiftState done [17:19:31]opened in 1722384689 [17:19:31]opened+sec_in_day 1722471089 [17:19:31]quantity*price = 35000 [17:19:31]sum+1 = 35001 [17:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 152 31.07.2024 17:19 Смена: 17 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2699 ФПД: 26201384339965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T171932&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2699&fm=26201384339965&tin=02508201610067®Number=0000000000189667&sum=35000 0 [17:19:32]StoreToDocumentArchive [17:19:32]shift 17 fd 2699 [17:19:32]save to /storage/0017/doc_00002699 [17:19:32]save last doc name /storage/0017/doc_00002699 to /storage/kkm_last_doc_name [17:19:32]save OK [17:19:32]Clear old archive folders... [17:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=283 [17:19:32]tlvbuf is 00EBD860 [17:19:32]SAM_PROTO_ClearQueue [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 09 00 00 [17:19:32]Write to MH i2c: E2 08 00 19 13 80 09 00 00 00 00 00 00 9E [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [17:19:32]RAPDU: 90 00 [17:19:32]wFMCommunicate OK [17:19:32]SAM_PROTO_ClearQueue done [17:19:32]KKMCreateOFDPacket [17:19:32]OFDProtocolAddRootSTLVToBuf [17:19:32]FM_MakeSignedData [17:19:32]FM_MakeSignedData [17:19:32]SAM_PROTO_SignData [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 0D 01 02 [17:19:32]Write to MH i2c: E2 08 00 1A 13 80 0D 01 02 00 00 00 00 A6 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [17:19:32]RAPDU: 90 00 [17:19:32]wFMCommunicate OK [17:19:32]wFMCommunicate request_size=255 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 24 72 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [17:19:32]Write to MH i2c: E2 02 01 1B 13 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 24 72 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 7C [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [17:19:32]RAPDU: 90 00 [17:19:32]wFMCommunicate OK [17:19:32]wFMCommunicate request_size=42 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 0A 00 00 35 04 06 00 17 D4 7C 34 C9 FD [17:19:32]Write to MH i2c: E2 2D 00 1C 13 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 0A 00 00 35 04 06 00 17 D4 7C 34 C9 FD 00 00 71 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [17:19:32]RAPDU: 90 00 [17:19:32]wFMCommunicate OK [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 0D 03 02 [17:19:32]Write to MH i2c: E2 08 00 1D 13 80 0D 03 02 00 00 00 00 AB [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 0B 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 0B 00 1D 13 00 5B 7C 89 09 3C 7D FC 12 90 00 DC [17:19:32]RAPDU: 5B 7C 89 09 3C 7D FC 12 90 00 [17:19:32]wFMCommunicate OK [17:19:32]SAM_PROTO_SignData done [17:19:32]FM_MakeSignedData done [17:19:32]CreateOFDProtocolMessage [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 11 00 00 [17:19:32]Write to MH i2c: E2 08 00 1E 13 80 11 00 00 00 00 00 00 AB [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 17 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 17 00 1E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [17:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:19:32]wFMCommunicate OK [17:19:32]CreateOFDProtocolMessage done [17:19:32]OFDSenderStorePacket 2699 [17:19:32]StoreOFDPacket docnum=2699 [17:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 AE 76 27 01 F9 37 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 24 72 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 0A 00 00 35 04 06 00 17 D4 7C 34 C9 FD 5B 7C 89 09 3C 7D FC 12 [17:19:32]CheckFolder [17:19:32]dirname=/storage/ofd_packets [17:19:32]CheckFolder done [17:19:32]ProducePacketName [17:19:32]name=ofd_packets/00002699 [17:19:32]NVStorageSaveData ofd_packets/00002699 [17:19:32]File name is /storage/ofd_packets/00002699 [17:19:32]Write 333 bytes [17:19:32]NVStorageSaveData done [17:19:32]OFDSenderStorePacket done [17:19:32]KKMCreateOFDPacket done [17:19:32]NVStorageSaveData kkm_last_timestamp [17:19:32]File name is /storage/kkm_last_timestamp [17:19:32]Write 4 bytes [17:19:32]NVStorageSaveData done [17:19:32]ExternCall_PrintAddStr [17:19:32]wPrintStart [17:19:32]Write to MH i2c: 01 00 00 1F 13 32 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 07 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [17:19:32]RasterBufferAndPrint [17:19:32]line Счет N : (3)126847 [17:19:32]line ИНН: 02508201610067 [17:19:32]line Контрольно-Кассовый Чек [17:19:32]line ПРОДАЖА [17:19:32]line Товар: 4700002082191 [17:19:32]line Водка Белое золото 0,46л [17:19:32]line 1.000 * 350.00 [17:19:32]line = 350.00 [17:19:32]line НДС 12% НСП 1% [17:19:32]line > о реализуемом товаре [17:19:32]line ИТОГО: 350.00 [17:19:32]line НСП 1% : 3.10 [17:19:32]line НДС 12% : 37.17 [17:19:32]line Наличными: 350.00 [17:19:32]line Безнал.: 0.00 [17:19:32]line Место: АЗС № 127 "Партнер Нефть" [17:19:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:19:32]line СНО: Общий режим [17:19:32]line Чек 152 31.07.2024 17:19 [17:19:32]line Смена: 17 ФФД: 1.0 [17:19:32]line ЗНМ: 0300000161 [17:19:32]line РНМ: 0000000000189667 [17:19:32]line Версия ККМ: v1.0 [17:19:33]line ФМ: 0000000002094248 [17:19:33]line ФД: 2699 [17:19:33]line ФПД: 26201384339965 [17:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T171932&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2699&fm=26201384339965&tin=02508201610067®Number=0000000000189667&sum=35000 [17:19:33]line 0 [17:19:33]OFD Sender: Processing packet 2699 [packets to send 1, broken 0] [17:19:33]ProducePacketName [17:19:33]name=ofd_packets/00002699 [17:19:33]OFD Sender: To server: pG, [17:19:33]CommunicateWithHost lk.salyk.kg:30040 [17:19:33]ConnectInit lk.salyk.kg [17:19:33]written 0, free lines is 4095 [17:19:33]Connected sock=10 [17:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 AE 76 27 01 F9 37 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 24 72 AA 66 0E 04 04 00 11 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 0A 00 00 35 04 06 00 17 D4 7C 34 C9 FD 5B 7C 89 09 3C 7D FC 12 [17:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 91 C3 47 00 80 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 0A 00 00 F4 03 04 00 8A 1D AA 66 B6 04 01 00 00 D5 42 33 76 57 3C 63 AA [17:19:33]CommunicateWithHost err = 0 [17:19:33]CheckOFDResponse [17:19:33]1017 (14) - 77093643461234 [17:19:33]1041 (16) - 0000000002094248 [17:19:33]1040 (4) - 2699 [17:19:33]1012 (4) - 31.07.2024 11:18 [17:19:33]1206 (1) - 0 [17:19:33]OFD Sender: Remove packet 2699 [17:19:33]ProducePacketName [17:19:33]name=ofd_packets/00002699 [17:19:33]NVStorageDeleteData [17:19:33]Write to MH i2c: 01 00 00 47 13 5A [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 07 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 07 00 47 13 00 00 00 00 00 23 0D 91 [17:19:33]RasterBufferAndPrint [17:19:33]line [17:19:33]line [17:19:33]line [17:19:33]line [17:19:33]line [17:19:33]written 0, free lines is 3369 [17:19:33]MH_Cut [17:19:33]Write to MH i2c: D1 01 00 4E 13 01 33 [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: D1 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: D1 01 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: D1 01 00 4E 13 00 32 [17:19:33]Write to MH i2c: 01 00 00 4F 13 62 [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:34]OFD Sender: No OFD packet to send [17:19:34]*** Cut start [17:19:34]*** Partial cut [17:19:34]*** CUTSNS_PIN = 1 [17:19:34]*** CUTSNS_PIN = 0 [17:19:34]*** Brake cut motor [17:19:35]Read from MH i2c: 01 [17:19:35]MH_I2C_Read... [17:19:35]*** Stop cut motor [17:19:35]*** Cut end [17:19:35]Read from MH i2c: 01 07 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: 01 07 00 4F 13 00 00 00 00 00 FF 0F 77 [17:19:35]process_action close_receipt done [17:19:35]requested_data is exist [17:19:35]produce_requested_data [17:19:35]requested_item fm.sn is exist - process it [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 11 00 00 [17:19:35]Write to MH i2c: E2 08 00 50 13 80 11 00 00 00 00 00 00 DD [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 17 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 17 00 50 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [17:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:19:35]wFMCommunicate OK [17:19:35]requested_item fd.num is exist - process it [17:19:35]SAM_PROTO_GetFieldsCounters [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 13 00 00 [17:19:35]Write to MH i2c: E2 08 00 51 13 80 13 00 00 00 00 00 00 E0 [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 62 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 62 00 51 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:35]wFMCommunicate OK [17:19:35]SAM_PROTO_GetFieldsCounters done [17:19:35]requested_item shift.num is exist - process it [17:19:35]requested_item shift.opened is exist - process it [17:19:35]req_shift_opened [17:19:35]FM_GetShiftState [17:19:35]SAM_PROTO_GetShiftState [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 13 01 00 [17:19:35]Write to MH i2c: E2 08 00 52 13 80 13 01 00 00 00 00 00 E2 [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 52 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 AF [17:19:35]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:19:35]wFMCommunicate OK [17:19:35]SAM_PROTO_GetShiftState done [17:19:35]FM_GetShiftState done [17:19:35]req_shift_opened done [17:19:35]requested_item shift.open_date is exist - process it [17:19:35]req_shift_open_date [17:19:35]req_shift_open_date done [17:19:35]produce_requested_data done [17:19:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [17:19:35]process_action_free close_receipt [17:19:35]json_value_free [17:19:35]json_value_free done [17:19:35]process_json_proto returns [17:19:35]Send response to host [17:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [17:19:35]free response buf [17:19:35]execute_script done [17:19:35]execute_script returns [17:19:35]free content buf [17:19:35]Sock 9.Close socket [17:19:35]Sock 9.Thread stoped [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:15]accept exits with 8 [17:21:15]New connection [17:21:15]New thread 3066637668 created [17:21:15]Thread 3066781028 joined [17:21:15]Waiting for new connection... [17:21:15] Sock 8.Parse request [17:21:15]Sock 8.Check first char [17:21:15]Sock 8.First char is OK [17:21:15]request: POST /json_proto HTTP/1.0 [17:21:15]Method: POST [17:21:15]URL: /json_proto [17:21:15]Method is POST - this is cgi request [17:21:15]url: /json_proto [17:21:15]query_string will be loaded in cgi processing [17:21:15]execute_cgi json_proto POST (null) [17:21:15]execute_cgi path=json_proto method=POST [17:21:15]POST find Content-Length [17:21:15]Host: 172.17.45.132:8080 [17:21:15]Content-Length: 215 [17:21:15]Content-Type: application/json [17:21:15] [17:21:15]POST finish read [17:21:15]Found Content-Length = 215 [17:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:15]execute_script... [17:21:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:15]POST & json_proto [17:21:15]process_json_proto [17:21:15]json parsed OK: [17:21:15]protocol is kg_v1.0 [17:21:15]action value=get_value [17:21:15]process_action get_value [17:21:15]cmd_get_value [17:21:15]process_action get_value done [17:21:15]requested_data is exist [17:21:15]produce_requested_data [17:21:15]requested_item kkm.sn is exist - process it [17:21:15]requested_item kkm.ver is exist - process it [17:21:15]requested_item fm.sn is exist - process it [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 11 00 00 [17:21:15]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 30 [17:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:21:15]wFMCommunicate OK [17:21:15]requested_item fd.num is exist - process it [17:21:15]SAM_PROTO_GetFieldsCounters [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 00 00 [17:21:15]Write to MH i2c: E2 08 00 54 13 80 13 00 00 00 00 00 00 E3 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 62 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 62 00 54 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [17:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_GetFieldsCounters done [17:21:15]requested_item shift.num is exist - process it [17:21:15]requested_item shift.opened is exist - process it [17:21:15]req_shift_opened [17:21:15]FM_GetShiftState [17:21:15]SAM_PROTO_GetShiftState [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 01 00 [17:21:15]Write to MH i2c: E2 08 00 55 13 80 13 01 00 00 00 00 00 E5 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0E 00 55 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 B2 [17:21:15]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_GetShiftState done [17:21:15]FM_GetShiftState done [17:21:15]req_shift_opened done [17:21:15]requested_item shift.open_date is exist - process it [17:21:15]req_shift_open_date [17:21:15]req_shift_open_date done [17:21:15]produce_requested_data done [17:21:15]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [17:21:15]process_action_free get_value [17:21:15]json_value_free [17:21:15]json_value_free done [17:21:15]process_json_proto returns [17:21:15]Send response to host [17:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [17:21:15]free response buf [17:21:15]execute_script done [17:21:15]execute_script returns [17:21:15]free content buf [17:21:15]Sock 8.Close socket [17:21:15]Sock 8.Thread stoped [17:21:15]accept exits with 9 [17:21:15]New connection [17:21:15]New thread 3066781028 created [17:21:15]Thread 3066637668 joined [17:21:15]Waiting for new connection... [17:21:15] Sock 9.Parse request [17:21:15]Sock 9.Check first char [17:21:15]Sock 9.First char is OK [17:21:15]request: POST /json_proto HTTP/1.0 [17:21:15]Method: POST [17:21:15]URL: /json_proto [17:21:15]Method is POST - this is cgi request [17:21:15]url: /json_proto [17:21:15]query_string will be loaded in cgi processing [17:21:15]execute_cgi json_proto POST (null) [17:21:15]execute_cgi path=json_proto method=POST [17:21:15]POST find Content-Length [17:21:15]Host: 172.17.45.132:8080 [17:21:15]Content-Length: 331 [17:21:15]Content-Type: application/json [17:21:15] [17:21:15]POST finish read [17:21:15]Found Content-Length = 331 [17:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:15]execute_script... [17:21:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:16]POST & json_proto [17:21:16]process_json_proto [17:21:16]json parsed OK: [17:21:16]protocol is kg_v1.0 [17:21:16]action value=get_value [17:21:16]process_action get_value [17:21:16]cmd_get_value [17:21:16]process_action get_value done [17:21:16]requested_data is exist [17:21:16]produce_requested_data [17:21:16]requested_item fm.sale.total is exist - process it [17:21:16]SAM_PROTO_GetFMData [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 13 03 00 [17:21:16]Write to MH i2c: E2 08 00 56 13 80 13 03 00 00 00 00 00 E8 [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 56 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 9D [17:21:16]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:21:16]wFMCommunicate OK [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 17 00 00 [17:21:16]Write to MH i2c: E2 08 00 57 13 80 17 00 00 00 00 00 00 EA [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 57 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [17:21:17]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:17]wFMCommunicate OK [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 17 00 00 [17:21:17]Write to MH i2c: E2 08 00 58 13 80 17 00 00 00 00 00 00 EB [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 58 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [17:21:17]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:21:17]wFMCommunicate OK [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 17 00 00 [17:21:17]Write to MH i2c: E2 08 00 59 13 80 17 00 00 00 00 00 00 EC [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 59 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [17:21:17]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:17]wFMCommunicate OK [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 17 00 00 [17:21:17]Write to MH i2c: E2 08 00 5A 13 80 17 00 00 00 00 00 00 ED [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 DD 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 DD 00 5A 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [17:21:17]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:17]wFMCommunicate OK [17:21:17]SAM_PROTO_GetFMData done [17:21:17]requested_item fm.sale_refund.total is exist - process it [17:21:17]requested_item fm.buy.total is exist - process it [17:21:17]requested_item shift.sale.total is exist - process it [17:21:17]SAM_PROTO_GetShiftData [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 13 02 00 [17:21:17]Write to MH i2c: E2 08 00 5B 13 80 13 02 00 00 00 00 00 EC [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 5B 13 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 6D [17:21:18]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:21:18]wFMCommunicate OK [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 17 00 00 [17:21:18]Write to MH i2c: E2 08 00 5C 13 80 17 00 00 00 00 00 00 EF [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 5C 13 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [17:21:18]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:18]wFMCommunicate OK [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 17 00 00 [17:21:18]Write to MH i2c: E2 08 00 5D 13 80 17 00 00 00 00 00 00 F0 [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 FD 00 5D 13 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [17:21:18]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:18]wFMCommunicate OK [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 17 00 00 [17:21:18]Write to MH i2c: E2 08 00 5E 13 80 17 00 00 00 00 00 00 F1 [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 FD 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 FD 00 5E 13 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 90 00 69 [17:21:19]RAPDU: 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 90 00 [17:21:19]wFMCommunicate OK [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 17 00 00 [17:21:19]Write to MH i2c: E2 08 00 5F 13 80 17 00 00 00 00 00 00 F2 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]OFD Sender: No OFD packet to send [17:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 D2 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 D2 00 5F 13 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [17:21:19]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:19]wFMCommunicate OK [17:21:19]SAM_PROTO_GetShiftData done [17:21:19]requested_item shift.sale.total_cash is exist - process it [17:21:19]requested_item shift.sale_refund.total is exist - process it [17:21:19]requested_item shift.sale_refund.total_cash is exist - process it [17:21:19]requested_item shift.buy.total is exist - process it [17:21:19]requested_item shift.buy.total_cash is exist - process it [17:21:19]produce_requested_data done [17:21:19]produce_requested_data return {"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:21:19]process_action_free get_value [17:21:19]json_value_free [17:21:19]json_value_free done [17:21:19]process_json_proto returns [17:21:19]Send response to host [17:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:21:19]free response buf [17:21:19]execute_script done [17:21:19]execute_script returns [17:21:19]free content buf [17:21:19]Sock 9.Close socket [17:21:19]Sock 9.Thread stoped [17:21:19]accept exits with 8 [17:21:19]New connection [17:21:19]New thread 3066637668 created [17:21:19]Thread 3066781028 joined [17:21:19]Waiting for new connection... [17:21:19] Sock 8.Parse request [17:21:19]Sock 8.Check first char [17:21:19]Sock 8.First char is OK [17:21:19]request: POST /json_proto HTTP/1.0 [17:21:19]Method: POST [17:21:19]URL: /json_proto [17:21:19]Method is POST - this is cgi request [17:21:19]url: /json_proto [17:21:19]query_string will be loaded in cgi processing [17:21:19]execute_cgi json_proto POST (null) [17:21:19]execute_cgi path=json_proto method=POST [17:21:19]POST find Content-Length [17:21:19]Host: 172.17.45.132:8080 [17:21:19]Content-Length: 331 [17:21:19]Content-Type: application/json [17:21:19] [17:21:19]POST finish read [17:21:19]Found Content-Length = 331 [17:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:19]execute_script... [17:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:19]POST & json_proto [17:21:19]process_json_proto [17:21:19]json parsed OK: [17:21:19]protocol is kg_v1.0 [17:21:19]action value=get_value [17:21:19]process_action get_value [17:21:19]cmd_get_value [17:21:19]process_action get_value done [17:21:19]requested_data is exist [17:21:19]produce_requested_data [17:21:19]requested_item fm.sale.total is exist - process it [17:21:19]SAM_PROTO_GetFMData [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 13 03 00 [17:21:19]Write to MH i2c: E2 08 00 60 13 80 13 03 00 00 00 00 00 F2 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 FD 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 FD 00 60 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 A7 [17:21:19]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 17 00 00 [17:21:20]Write to MH i2c: E2 08 00 61 13 80 17 00 00 00 00 00 00 F4 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 61 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [17:21:20]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 17 00 00 [17:21:20]Write to MH i2c: E2 08 00 62 13 80 17 00 00 00 00 00 00 F5 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 62 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [17:21:20]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 17 00 00 [17:21:20]Write to MH i2c: E2 08 00 63 13 80 17 00 00 00 00 00 00 F6 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 FD 00 63 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [17:21:21]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:21]wFMCommunicate OK [17:21:21]wFMCommunicate request_size=4 [17:21:21]MH_SAM_APDU [17:21:21]CAPDU: 80 17 00 00 [17:21:21]Write to MH i2c: E2 08 00 64 13 80 17 00 00 00 00 00 00 F7 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 DD 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 DD 00 64 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [17:21:21]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:21]wFMCommunicate OK [17:21:21]SAM_PROTO_GetFMData done [17:21:21]requested_item fm.sale_refund.total is exist - process it [17:21:21]requested_item fm.buy.total is exist - process it [17:21:21]requested_item shift.sale.total is exist - process it [17:21:21]SAM_PROTO_GetShiftData [17:21:21]wFMCommunicate request_size=4 [17:21:21]MH_SAM_APDU [17:21:21]CAPDU: 80 13 02 00 [17:21:21]Write to MH i2c: E2 08 00 65 13 80 13 02 00 00 00 00 00 F6 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 FD 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 FD 00 65 13 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 77 [17:21:21]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:21:22]wFMCommunicate OK [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 17 00 00 [17:21:22]Write to MH i2c: E2 08 00 66 13 80 17 00 00 00 00 00 00 F9 [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:22]Read from MH i2c: E2 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 FD 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 FD 00 66 13 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [17:21:22]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:22]wFMCommunicate OK [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 17 00 00 [17:21:22]Write to MH i2c: E2 08 00 67 13 80 17 00 00 00 00 00 00 FA [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:22]Read from MH i2c: E2 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 FD 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 FD 00 67 13 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [17:21:22]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:22]wFMCommunicate OK [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 17 00 00 [17:21:22]Write to MH i2c: E2 08 00 68 13 80 17 00 00 00 00 00 00 FB [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:23]Read from MH i2c: E2 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 FD 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 FD 00 68 13 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 90 00 73 [17:21:23]RAPDU: 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 90 00 [17:21:23]wFMCommunicate OK [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 17 00 00 [17:21:23]Write to MH i2c: E2 08 00 69 13 80 17 00 00 00 00 00 00 FC [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:21:23]Read from MH i2c: E2 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 D2 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 D2 00 69 13 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [17:21:23]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:23]wFMCommunicate OK [17:21:23]SAM_PROTO_GetShiftData done [17:21:23]requested_item shift.sale.total_cash is exist - process it [17:21:23]requested_item shift.sale_refund.total is exist - process it [17:21:23]requested_item shift.sale_refund.total_cash is exist - process it [17:21:23]requested_item shift.buy.total is exist - process it [17:21:23]requested_item shift.buy.total_cash is exist - process it [17:21:23]produce_requested_data done [17:21:23]produce_requested_data return {"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:21:23]process_action_free get_value [17:21:23]json_value_free [17:21:23]json_value_free done [17:21:23]process_json_proto returns [17:21:23]Send response to host [17:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:21:23]free response buf [17:21:23]execute_script done [17:21:23]execute_script returns [17:21:23]free content buf [17:21:23]Sock 8.Close socket [17:21:23]Sock 8.Thread stoped [17:21:23]accept exits with 9 [17:21:23]New connection [17:21:23]New thread 3066781028 created [17:21:23]Thread 3066637668 joined [17:21:23]Waiting for new connection... [17:21:23] Sock 9.Parse request [17:21:23]Sock 9.Check first char [17:21:23]Sock 9.First char is OK [17:21:23]request: POST /json_proto HTTP/1.0 [17:21:23]Method: POST [17:21:23]URL: /json_proto [17:21:23]Method is POST - this is cgi request [17:21:23]url: /json_proto [17:21:23]query_string will be loaded in cgi processing [17:21:23]execute_cgi json_proto POST (null) [17:21:23]execute_cgi path=json_proto method=POST [17:21:23]POST find Content-Length [17:21:23]Host: 172.17.45.132:8080 [17:21:23]Content-Length: 239 [17:21:23]Content-Type: application/json [17:21:23] [17:21:23]POST finish read [17:21:23]Found Content-Length = 239 [17:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u044F\u0442\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]execute_script... [17:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u044F\u0442\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]POST & json_proto [17:21:23]process_json_proto [17:21:23]json parsed OK: [17:21:23]protocol is kg_v1.0 [17:21:23]action value=x_report [17:21:23]process_action x_report [17:21:23]cmd_x_report [17:21:23]MH_GetDate [17:21:23]Write to MH i2c: F0 00 00 6A 13 6C [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 6A 13 00 94 72 AA 66 E3 0B 90 66 6F [17:21:23]GetLastDocTimeStamp 1722446372 [17:21:23]current date 1722446484 [17:21:23]FM_GetShiftState [17:21:23]SAM_PROTO_GetShiftState [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 13 01 00 [17:21:23]Write to MH i2c: E2 08 00 6B 13 80 13 01 00 00 00 00 00 FB [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:23]Read from MH i2c: E2 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 0E 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 0E 00 6B 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 C8 [17:21:23]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:21:23]wFMCommunicate OK [17:21:23]SAM_PROTO_GetShiftState done [17:21:23]FM_GetShiftState done [17:21:23]KKMCreateXReportDocument [17:21:23]Load OK [17:21:23]Malloc new data [17:21:23]MH_GetDate [17:21:23]Write to MH i2c: F0 00 00 6C 13 6E [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 6C 13 00 95 72 AA 66 E3 0B 90 66 72 [17:21:23]Malloc new data [17:21:23]Malloc new data [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 11 00 00 [17:21:23]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:23]Read from MH i2c: E2 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 17 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4A [17:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:21:23]wFMCommunicate OK [17:21:23]SAM_PROTO_GetFieldsCounters [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 13 00 00 [17:21:23]Write to MH i2c: E2 08 00 6E 13 80 13 00 00 00 00 00 00 FD [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:24]Read from MH i2c: E2 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 62 00 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 62 00 6E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:24]wFMCommunicate OK [17:21:24]SAM_PROTO_GetFieldsCounters done [17:21:24]Malloc new data [17:21:24]Malloc new data [17:21:24]Malloc new data [17:21:24]KKMCreateXReportDocument OK [17:21:24]KKMSetXReportData OK [17:21:24]KKMPrepareXReportFMData [17:21:24]SAM_PROTO_GetShiftData [17:21:24]wFMCommunicate request_size=4 [17:21:24]MH_SAM_APDU [17:21:24]CAPDU: 80 13 02 00 [17:21:24]Write to MH i2c: E2 08 00 6F 13 80 13 02 00 00 00 00 00 00 [17:21:24]Write i2c OK [17:21:24]MH_I2C_Read... [17:21:24]OFD Sender: No OFD packet to send [17:21:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:24]Read from MH i2c: E2 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 FD 00 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 FD 00 6F 13 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 81 [17:21:24]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:21:24]wFMCommunicate OK [17:21:24]wFMCommunicate request_size=4 [17:21:24]MH_SAM_APDU [17:21:24]CAPDU: 80 17 00 00 [17:21:24]Write to MH i2c: E2 08 00 70 13 80 17 00 00 00 00 00 00 03 [17:21:24]Write i2c OK [17:21:24]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 70 13 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [17:21:25]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 17 00 00 [17:21:25]Write to MH i2c: E2 08 00 71 13 80 17 00 00 00 00 00 00 04 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 71 13 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [17:21:25]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 17 00 00 [17:21:25]Write to MH i2c: E2 08 00 72 13 80 17 00 00 00 00 00 00 05 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 FD 00 72 13 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 90 00 7D [17:21:26]RAPDU: 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 90 00 [17:21:26]wFMCommunicate OK [17:21:26]wFMCommunicate request_size=4 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 17 00 00 [17:21:26]Write to MH i2c: E2 08 00 73 13 80 17 00 00 00 00 00 00 06 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:21:26]Read from MH i2c: E2 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 D2 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 D2 00 73 13 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 [17:21:26]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:26]wFMCommunicate OK [17:21:26]SAM_PROTO_GetShiftData done [17:21:26]1194 (1201) - счетчики итогов смены [17:21:26] 1134 (4) - 152 - количество чеков со всеми признаками расчетов [17:21:26] 1129 (155) - счетчики операций «приход» [17:21:26] 1135 (4) - 151 - количество чеков по признаку расчетов [17:21:26] 1201 (3) - 66283.28 - общая итоговая сумма в чеках [17:21:26] 1136 (3) - 52908.00 - итоговая сумма в чеках наличными [17:21:26] 1138 (3) - 13375.28 - итоговая сумма в чеках безналичными [17:21:26] 1024 (122) - суммы налогов [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 0% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1006 (12) - суммы НДС [17:21:26] 1010 (1) - 12% - код ставки НДС [17:21:26] 1011 (3) - 7039.67 - сумма НДС по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (11) - суммы НСП [17:21:26] 1014 (1) - 1% - код ставки НСП [17:21:26] 1015 (2) - 586.55 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 2% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 3% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 5% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1130 (148) - счетчики операций «возврат прихода» [17:21:26] 1135 (4) - 1 - количество чеков по признаку расчетов [17:21:26] 1201 (2) - 110.00 - общая итоговая сумма в чеках [17:21:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:21:26] 1138 (2) - 110.00 - итоговая сумма в чеках безналичными [17:21:26] 1024 (120) - суммы налогов [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 0% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1006 (11) - суммы НДС [17:21:26] 1010 (1) - 12% - код ставки НДС [17:21:26] 1011 (2) - 11.68 - сумма НДС по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (10) - суммы НСП [17:21:26] 1014 (1) - 1% - код ставки НСП [17:21:26] 1015 (1) - 0.97 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 2% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 3% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 5% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1131 (141) - счетчики операций «расход» [17:21:26] 1135 (4) - 0 - количество чеков по признаку расчетов [17:21:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:21:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:21:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:21:26] 1024 (117) - суммы налогов [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 0% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 12% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 2% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 3% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 5% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1132 (141) - счетчики операций «возврат расхода» [17:21:26] 1135 (4) - 0 - количество чеков по признаку расчетов [17:21:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:21:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:21:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:21:26] 1024 (117) - суммы налогов [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 0% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1006 (9) - суммы НДС [17:21:26] 1010 (1) - 12% - код ставки НДС [17:21:26] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 2% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 3% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 5% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 0,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1007 (9) - суммы НСП [17:21:26] 1014 (1) - 1,50% - код ставки НСП [17:21:26] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:26] 1133 (588) - - счетчики коррекции - не используются [17:21:26]SetTLVBufToDocument [17:21:26]Processing tag 1194 (04AA) [17:21:26]Load OK [17:21:26]SetTLVBufToDocument [17:21:26]Processing tag 1134 (046E) [17:21:26]Malloc new data [17:21:26]Processing tag 1129 (0469) [17:21:26]Load OK [17:21:26]SetTLVBufToDocument [17:21:26]Processing tag 1135 (046F) [17:21:26]Malloc new data [17:21:26]Processing tag 1201 (04B1) [17:21:26]Malloc new data [17:21:26]Processing tag 1136 (0470) [17:21:26]Malloc new data [17:21:26]Processing tag 1138 (0472) [17:21:27]Malloc new data [17:21:27]Processing tag 1024 (0400) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1130 (046A) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1135 (046F) [17:21:27]Malloc new data [17:21:27]Processing tag 1201 (04B1) [17:21:27]Malloc new data [17:21:27]Processing tag 1136 (0470) [17:21:27]Malloc new data [17:21:27]Processing tag 1138 (0472) [17:21:27]Malloc new data [17:21:27]Processing tag 1024 (0400) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1131 (046B) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1135 (046F) [17:21:27]Malloc new data [17:21:27]Processing tag 1201 (04B1) [17:21:27]Malloc new data [17:21:27]Processing tag 1136 (0470) [17:21:27]Malloc new data [17:21:27]Processing tag 1138 (0472) [17:21:27]Malloc new data [17:21:27]Processing tag 1024 (0400) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1132 (046C) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1135 (046F) [17:21:27]Malloc new data [17:21:27]Processing tag 1201 (04B1) [17:21:27]Malloc new data [17:21:27]Processing tag 1136 (0470) [17:21:27]Malloc new data [17:21:27]Processing tag 1138 (0472) [17:21:27]Malloc new data [17:21:27]Processing tag 1024 (0400) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1006 (03EE) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1010 (03F2) [17:21:27]Malloc new data [17:21:27]Processing tag 1011 (03F3) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1007 (03EF) [17:21:27]Load OK [17:21:27]SetTLVBufToDocument [17:21:27]Processing tag 1014 (03F6) [17:21:27]Malloc new data [17:21:27]Processing tag 1015 (03F7) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Processing tag 1133 (046D) [17:21:27]Malloc new data [17:21:27]SetTLVBufToDocument err=0 [17:21:27]SetTLVBufToDocument err=0 [17:21:27]Malloc new data [17:21:27]SAM_PROTO_GetFMData [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 13 03 00 [17:21:27]Write to MH i2c: E2 08 00 74 13 80 13 03 00 00 00 00 00 06 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:28]Read from MH i2c: E2 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 FD 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 FD 00 74 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 BB [17:21:28]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:21:28]wFMCommunicate OK [17:21:28]wFMCommunicate request_size=4 [17:21:28]MH_SAM_APDU [17:21:28]CAPDU: 80 17 00 00 [17:21:28]Write to MH i2c: E2 08 00 75 13 80 17 00 00 00 00 00 00 08 [17:21:28]Write i2c OK [17:21:28]MH_I2C_Read... [17:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:28]Read from MH i2c: E2 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 FD 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 FD 00 75 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [17:21:28]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:28]wFMCommunicate OK [17:21:28]wFMCommunicate request_size=4 [17:21:28]MH_SAM_APDU [17:21:28]CAPDU: 80 17 00 00 [17:21:28]Write to MH i2c: E2 08 00 76 13 80 17 00 00 00 00 00 00 09 [17:21:28]Write i2c OK [17:21:28]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 FD 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 FD 00 76 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [17:21:29]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:21:29]wFMCommunicate OK [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 17 00 00 [17:21:29]Write to MH i2c: E2 08 00 77 13 80 17 00 00 00 00 00 00 0A [17:21:29]OFD Sender: No OFD packet to send [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 FD 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 FD 00 77 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [17:21:29]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:30]wFMCommunicate OK [17:21:30]wFMCommunicate request_size=4 [17:21:30]MH_SAM_APDU [17:21:30]CAPDU: 80 17 00 00 [17:21:30]Write to MH i2c: E2 08 00 78 13 80 17 00 00 00 00 00 00 0B [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:21:30]Read from MH i2c: E2 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 DD 00 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 DD 00 78 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [17:21:30]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:30]wFMCommunicate OK [17:21:30]SAM_PROTO_GetFMData done [17:21:30]FM_GetFMData:85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 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 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:21:31]oper:6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:21:31]total:BE 56 BE 06 [17:21:31]Malloc new data [17:21:31]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 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 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:21:31]total:04 73 15 [17:21:31]Malloc new data [17:21:31]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 [17:21:31]total: [17:21:31]Malloc new data [17:21:31]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 [17:21:31]total: [17:21:31]Malloc new data [17:21:31]KKMPrepareXReportFMData err=0 [17:21:31]Х отчет ИНН: 02508201610067 Кассир: Аятов Д. 31.07.2024 17:21 Смена: 10 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Всего чеков: 152 ИТОГИ ПРИХОД Чеков: 151 Общий итог: 66283.28 Итого наличными: 52908.00 Итого безнал.: 13375.28 НДС 0% : 0.00 НДС 12% : 7039.67 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 586.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 110.00 Итого наличными: 0.00 Итого безнал.: 110.00 НДС 0% : 0.00 НДС 12% : 11.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.97 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 52908.00 НС Приход: 1131373.42 НС Возвр.Прихода: 14057.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094248 [17:21:31]StoreToDocumentArchive [17:21:31]MH_GetDate [17:21:31]Write to MH i2c: F0 00 00 79 13 7B [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: F0 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: F0 09 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: F0 09 00 79 13 00 9C 72 AA 66 E3 0B 90 66 86 [17:21:31]shift 10 fd 1722446492 [17:21:31]Create dir for shift 0010 [17:21:31]save to /storage/0010/doc_1722446492 [17:21:31]save last doc name /storage/0010/doc_1722446492 to /storage/kkm_last_doc_name [17:21:31]save OK [17:21:31]Clear old archive folders... [17:21:31]NVStorageSaveData kkm_last_timestamp [17:21:31]File name is /storage/kkm_last_timestamp [17:21:31]Write 4 bytes [17:21:31]NVStorageSaveData done [17:21:31]ExternCall_PrintAddStr [17:21:31]wPrintStart [17:21:31]Write to MH i2c: 01 00 00 7A 13 8D [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 07 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 07 00 7A 13 00 00 00 00 00 FF 0F A2 [17:21:31]RasterBufferAndPrint [17:21:31]line Х отчет [17:21:31]line ИНН: 02508201610067 [17:21:31]line Кассир: Аятов Д. [17:21:31]line 31.07.2024 17:21 [17:21:31]line Смена: 10 [17:21:31]line РНМ: 0000000000189667 [17:21:31]line ЗНМ: 0300000161 [17:21:31]line СНО: Общий режим [17:21:31]line Всего чеков: 152 [17:21:31]line ИТОГИ ПРИХОД [17:21:31]line Чеков: 151 [17:21:31]line Общий итог: 66283.28 [17:21:31]line Итого наличными: 52908.00 [17:21:31]line Итого безнал.: 13375.28 [17:21:31]line НДС 0% : 0.00 [17:21:31]line НДС 12% : 7039.67 [17:21:31]line НСП 0% : 0.00 [17:21:31]line НСП 1,50% : 0.00 [17:21:31]line НСП 0,50% : 0.00 [17:21:31]line НСП 5% : 0.00 [17:21:31]line НСП 3% : 0.00 [17:21:31]line НСП 2% : 0.00 [17:21:31]line НСП 1% : 586.55 [17:21:31]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:21:31]line Чеков: 1 [17:21:31]line Общий итог: 110.00 [17:21:31]line Итого наличными: 0.00 [17:21:31]line Итого безнал.: 110.00 [17:21:31]line НДС 0% : 0.00 [17:21:31]line НДС 12% : 11.68 [17:21:31]line НСП 0% : 0.00 [17:21:31]line НСП 1,50% : 0.00 [17:21:31]line НСП 0,50% : 0.00 [17:21:31]line НСП 5% : 0.00 [17:21:31]line НСП 3% : 0.00 [17:21:31]line НСП 2% : 0.00 [17:21:31]line НСП 1% : 0.97 [17:21:31]line ИТОГИ РАСХОД [17:21:31]line Чеков: 0 [17:21:31]line Общий итог: 0.00 [17:21:31]line Итого наличными: 0.00 [17:21:31]line Итого безнал.: 0.00 [17:21:31]line НДС 0% : 0.00 [17:21:31]line НДС 12% : 0.00 [17:21:31]line НСП 0% : 0.00 [17:21:31]line НСП 1,50% : 0.00 [17:21:31]line НСП 0,50% : 0.00 [17:21:31]line НСП 5% : 0.00 [17:21:31]line НСП 3% : 0.00 [17:21:31]line НСП 2% : 0.00 [17:21:31]line НСП 1% : 0.00 [17:21:31]line ИТОГИ ВОЗВРАТ РАСХОДА [17:21:31]line Чеков: 0 [17:21:31]line Общий итог: 0.00 [17:21:31]line Итого наличными: 0.00 [17:21:31]line Итого безнал.: 0.00 [17:21:31]line НДС 0% : 0.00 [17:21:31]line НДС 12% : 0.00 [17:21:31]line НСП 0% : 0.00 [17:21:31]line НСП 1,50% : 0.00 [17:21:31]line НСП 0,50% : 0.00 [17:21:31]line НСП 5% : 0.00 [17:21:31]line НСП 3% : 0.00 [17:21:31]line НСП 2% : 0.00 [17:21:31]line НСП 1% : 0.00 [17:21:31]line Сумма внесений: 0.00 [17:21:31]line Сумма выплат: 0.00 [17:21:31]line Нал. в кассе: 52908.00 [17:21:31]line НС Приход: 1131373.42 [17:21:31]line НС Возвр.Прихода: 14057.00 [17:21:31]line НС Расход: 0.00 [17:21:31]line НС Возвр.Расхода: 0.00 [17:21:31]line ФМ: 0000000002094248 [17:21:31]written 0, free lines is 4095 [17:21:32]Write to MH i2c: 01 00 00 C5 13 D8 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 07 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 21 0B 0B [17:21:32]RasterBufferAndPrint [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]written 0, free lines is 2888 [17:21:32]MH_Cut [17:21:32]Write to MH i2c: D1 01 00 CC 13 01 B1 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 01 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 01 00 CC 13 00 B0 [17:21:32]Write to MH i2c: 01 00 00 CD 13 E0 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:33]*** Cut start [17:21:33]*** Partial cut [17:21:33]*** CUTSNS_PIN = 1 [17:21:33]*** CUTSNS_PIN = 0 [17:21:33]*** Brake cut motor [17:21:34]Read from MH i2c: 01 [17:21:34]MH_I2C_Read... [17:21:34]*** Stop cut motor [17:21:34]*** Cut end [17:21:34]Read from MH i2c: 01 07 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: 01 07 00 CD 13 00 00 00 00 00 FF 0F F5 [17:21:34]process_action x_report done [17:21:34]requested_data is exist [17:21:34]produce_requested_data [17:21:34]requested_item fd.num is exist - process it [17:21:34]SAM_PROTO_GetFieldsCounters [17:21:34]wFMCommunicate request_size=4 [17:21:34]MH_SAM_APDU [17:21:34]CAPDU: 80 13 00 00 [17:21:34]Write to MH i2c: E2 08 00 CE 13 80 13 00 00 00 00 00 00 5D [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:34]Read from MH i2c: E2 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 62 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 62 00 CE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [17:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:34]wFMCommunicate OK [17:21:34]SAM_PROTO_GetFieldsCounters done [17:21:34]requested_item shift.num is exist - process it [17:21:34]requested_item shift.opened is exist - process it [17:21:34]req_shift_opened [17:21:34]FM_GetShiftState [17:21:34]SAM_PROTO_GetShiftState [17:21:34]wFMCommunicate request_size=4 [17:21:34]MH_SAM_APDU [17:21:34]CAPDU: 80 13 01 00 [17:21:34]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:34]Read from MH i2c: E2 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 0E 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 2C [17:21:34]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:21:34]wFMCommunicate OK [17:21:34]SAM_PROTO_GetShiftState done [17:21:34]FM_GetShiftState done [17:21:34]req_shift_opened done [17:21:34]requested_item shift.open_date is exist - process it [17:21:34]req_shift_open_date [17:21:34]req_shift_open_date done [17:21:34]produce_requested_data done [17:21:34]produce_requested_data return {"fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [17:21:34]process_action_free x_report [17:21:34]json_value_free [17:21:34]json_value_free done [17:21:34]process_json_proto returns [17:21:34]Send response to host [17:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [17:21:34]free response buf [17:21:34]execute_script done [17:21:34]execute_script returns [17:21:34]free content buf [17:21:34]Sock 9.Close socket [17:21:34]Sock 9.Thread stoped [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:08]accept exits with 8 [17:22:08]New connection [17:22:08]New thread 3066637668 created [17:22:08]Thread 3066781028 joined [17:22:08]Waiting for new connection... [17:22:08] Sock 8.Parse request [17:22:08]Sock 8.Check first char [17:22:08]Sock 8.First char is OK [17:22:08]request: POST /json_proto HTTP/1.0 [17:22:08]Method: POST [17:22:08]URL: /json_proto [17:22:08]Method is POST - this is cgi request [17:22:08]url: /json_proto [17:22:08]query_string will be loaded in cgi processing [17:22:08]execute_cgi json_proto POST (null) [17:22:08]execute_cgi path=json_proto method=POST [17:22:08]POST find Content-Length [17:22:08]Host: 172.17.45.132:8080 [17:22:08]Content-Length: 215 [17:22:08]Content-Type: application/json [17:22:08] [17:22:08]POST finish read [17:22:08]Found Content-Length = 215 [17:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:08]execute_script... [17:22:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:08]POST & json_proto [17:22:08]process_json_proto [17:22:08]json parsed OK: [17:22:08]protocol is kg_v1.0 [17:22:08]action value=get_value [17:22:08]process_action get_value [17:22:08]cmd_get_value [17:22:08]process_action get_value done [17:22:08]requested_data is exist [17:22:08]produce_requested_data [17:22:08]requested_item kkm.sn is exist - process it [17:22:08]requested_item kkm.ver is exist - process it [17:22:08]requested_item fm.sn is exist - process it [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 11 00 00 [17:22:08]Write to MH i2c: E2 08 00 D0 13 80 11 00 00 00 00 00 00 5D [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 17 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 17 00 D0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [17:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:22:08]wFMCommunicate OK [17:22:08]requested_item fd.num is exist - process it [17:22:08]SAM_PROTO_GetFieldsCounters [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 13 00 00 [17:22:08]Write to MH i2c: E2 08 00 D1 13 80 13 00 00 00 00 00 00 60 [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 62 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 62 00 D1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:08]wFMCommunicate OK [17:22:08]SAM_PROTO_GetFieldsCounters done [17:22:08]requested_item shift.num is exist - process it [17:22:08]requested_item shift.opened is exist - process it [17:22:08]req_shift_opened [17:22:08]FM_GetShiftState [17:22:08]SAM_PROTO_GetShiftState [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 13 01 00 [17:22:08]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 2F [17:22:08]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:22:08]wFMCommunicate OK [17:22:08]SAM_PROTO_GetShiftState done [17:22:08]FM_GetShiftState done [17:22:08]req_shift_opened done [17:22:08]requested_item shift.open_date is exist - process it [17:22:08]req_shift_open_date [17:22:08]req_shift_open_date done [17:22:08]produce_requested_data done [17:22:08]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689} [17:22:08]process_action_free get_value [17:22:08]json_value_free [17:22:08]json_value_free done [17:22:08]process_json_proto returns [17:22:08]Send response to host [17:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2699,"shift.num":17,"shift.opened":1,"shift.open_date":1722384689}}} [17:22:08]free response buf [17:22:08]execute_script done [17:22:08]execute_script returns [17:22:08]free content buf [17:22:08]Sock 8.Close socket [17:22:08]Sock 8.Thread stoped [17:22:08]accept exits with 9 [17:22:08]New connection [17:22:08]New thread 3066781028 created [17:22:08]Thread 3066637668 joined [17:22:08]Waiting for new connection... [17:22:08] Sock 9.Parse request [17:22:08]Sock 9.Check first char [17:22:08]Sock 9.First char is OK [17:22:08]request: POST /json_proto HTTP/1.0 [17:22:08]Method: POST [17:22:08]URL: /json_proto [17:22:08]Method is POST - this is cgi request [17:22:08]url: /json_proto [17:22:08]query_string will be loaded in cgi processing [17:22:08]execute_cgi json_proto POST (null) [17:22:08]execute_cgi path=json_proto method=POST [17:22:08]POST find Content-Length [17:22:08]Host: 172.17.45.132:8080 [17:22:08]Content-Length: 331 [17:22:08]Content-Type: application/json [17:22:08] [17:22:08]POST finish read [17:22:08]Found Content-Length = 331 [17:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:22:08]execute_script... [17:22:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:22:08]POST & json_proto [17:22:08]process_json_proto [17:22:08]json parsed OK: [17:22:08]protocol is kg_v1.0 [17:22:08]action value=get_value [17:22:08]process_action get_value [17:22:08]cmd_get_value [17:22:08]process_action get_value done [17:22:08]requested_data is exist [17:22:08]produce_requested_data [17:22:08]requested_item fm.sale.total is exist - process it [17:22:08]SAM_PROTO_GetFMData [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 13 03 00 [17:22:08]Write to MH i2c: E2 08 00 D3 13 80 13 03 00 00 00 00 00 65 [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:22:08]Read from MH i2c: E2 FD 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 FD 00 D3 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 1A [17:22:08]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:22:08]wFMCommunicate OK [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 17 00 00 [17:22:08]Write to MH i2c: E2 08 00 D4 13 80 17 00 00 00 00 00 00 67 [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 D4 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [17:22:09]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 17 00 00 [17:22:09]Write to MH i2c: E2 08 00 D5 13 80 17 00 00 00 00 00 00 68 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 D5 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [17:22:09]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 17 00 00 [17:22:09]Write to MH i2c: E2 08 00 D6 13 80 17 00 00 00 00 00 00 69 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 FD 00 D6 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [17:22:09]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 17 00 00 [17:22:09]Write to MH i2c: E2 08 00 D7 13 80 17 00 00 00 00 00 00 6A [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]OFD Sender: No OFD packet to send [17:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 DD 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 DD 00 D7 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [17:22:09]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:09]wFMCommunicate OK [17:22:09]SAM_PROTO_GetFMData done [17:22:09]requested_item fm.sale_refund.total is exist - process it [17:22:09]requested_item fm.buy.total is exist - process it [17:22:09]requested_item shift.sale.total is exist - process it [17:22:09]SAM_PROTO_GetShiftData [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 13 02 00 [17:22:09]Write to MH i2c: E2 08 00 D8 13 80 13 02 00 00 00 00 00 69 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:22:10]Read from MH i2c: E2 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: E2 FD 00 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: E2 FD 00 D8 13 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 EA [17:22:10]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:22:10]wFMCommunicate OK [17:22:10]wFMCommunicate request_size=4 [17:22:10]MH_SAM_APDU [17:22:10]CAPDU: 80 17 00 00 [17:22:10]Write to MH i2c: E2 08 00 D9 13 80 17 00 00 00 00 00 00 6C [17:22:10]Write i2c OK [17:22:10]MH_I2C_Read... [17:22:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:10]Read from MH i2c: E2 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: E2 FD 00 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: E2 FD 00 D9 13 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [17:22:10]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:10]wFMCommunicate OK [17:22:10]wFMCommunicate request_size=4 [17:22:10]MH_SAM_APDU [17:22:10]CAPDU: 80 17 00 00 [17:22:10]Write to MH i2c: E2 08 00 DA 13 80 17 00 00 00 00 00 00 6D [17:22:10]Write i2c OK [17:22:10]MH_I2C_Read... [17:22:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:11]Read from MH i2c: E2 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 FD 00 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 FD 00 DA 13 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [17:22:11]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:11]wFMCommunicate OK [17:22:11]wFMCommunicate request_size=4 [17:22:11]MH_SAM_APDU [17:22:11]CAPDU: 80 17 00 00 [17:22:11]Write to MH i2c: E2 08 00 DB 13 80 17 00 00 00 00 00 00 6E [17:22:11]Write i2c OK [17:22:11]MH_I2C_Read... [17:22:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:11]Read from MH i2c: E2 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 FD 00 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 FD 00 DB 13 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 90 00 E6 [17:22:11]RAPDU: 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 90 00 [17:22:11]wFMCommunicate OK [17:22:11]wFMCommunicate request_size=4 [17:22:11]MH_SAM_APDU [17:22:11]CAPDU: 80 17 00 00 [17:22:11]Write to MH i2c: E2 08 00 DC 13 80 17 00 00 00 00 00 00 6F [17:22:11]Write i2c OK [17:22:11]MH_I2C_Read... [17:22:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:22:11]Read from MH i2c: E2 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 D2 00 [17:22:11]MH_I2C_Read... [17:22:11]Read from MH i2c: E2 D2 00 DC 13 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [17:22:11]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:11]wFMCommunicate OK [17:22:11]SAM_PROTO_GetShiftData done [17:22:11]requested_item shift.sale.total_cash is exist - process it [17:22:11]requested_item shift.sale_refund.total is exist - process it [17:22:11]requested_item shift.sale_refund.total_cash is exist - process it [17:22:11]requested_item shift.buy.total is exist - process it [17:22:11]requested_item shift.buy.total_cash is exist - process it [17:22:11]produce_requested_data done [17:22:11]produce_requested_data return {"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:22:11]process_action_free get_value [17:22:11]json_value_free [17:22:11]json_value_free done [17:22:11]process_json_proto returns [17:22:11]Send response to host [17:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:22:11]free response buf [17:22:11]execute_script done [17:22:11]execute_script returns [17:22:11]free content buf [17:22:11]Sock 9.Close socket [17:22:11]Sock 9.Thread stoped [17:22:12]accept exits with 8 [17:22:12]New connection [17:22:12]New thread 3066637668 created [17:22:12]Thread 3066781028 joined [17:22:12]Waiting for new connection... [17:22:12] Sock 8.Parse request [17:22:12]Sock 8.Check first char [17:22:12]Sock 8.First char is OK [17:22:12]request: POST /json_proto HTTP/1.0 [17:22:12]Method: POST [17:22:12]URL: /json_proto [17:22:12]Method is POST - this is cgi request [17:22:12]url: /json_proto [17:22:12]query_string will be loaded in cgi processing [17:22:12]execute_cgi json_proto POST (null) [17:22:12]execute_cgi path=json_proto method=POST [17:22:12]POST find Content-Length [17:22:12]Host: 172.17.45.132:8080 [17:22:12]Content-Length: 331 [17:22:12]Content-Type: application/json [17:22:12] [17:22:12]POST finish read [17:22:12]Found Content-Length = 331 [17:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:22:12]execute_script... [17:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:22:12]POST & json_proto [17:22:12]process_json_proto [17:22:12]json parsed OK: [17:22:12]protocol is kg_v1.0 [17:22:12]action value=get_value [17:22:12]process_action get_value [17:22:12]cmd_get_value [17:22:12]process_action get_value done [17:22:12]requested_data is exist [17:22:12]produce_requested_data [17:22:12]requested_item fm.sale.total is exist - process it [17:22:12]SAM_PROTO_GetFMData [17:22:12]wFMCommunicate request_size=4 [17:22:12]MH_SAM_APDU [17:22:12]CAPDU: 80 13 03 00 [17:22:12]Write to MH i2c: E2 08 00 DD 13 80 13 03 00 00 00 00 00 6F [17:22:12]Write i2c OK [17:22:12]MH_I2C_Read... [17:22:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:22:12]Read from MH i2c: E2 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 FD 00 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 FD 00 DD 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 24 [17:22:12]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:22:12]wFMCommunicate OK [17:22:12]wFMCommunicate request_size=4 [17:22:12]MH_SAM_APDU [17:22:12]CAPDU: 80 17 00 00 [17:22:12]Write to MH i2c: E2 08 00 DE 13 80 17 00 00 00 00 00 00 71 [17:22:12]Write i2c OK [17:22:12]MH_I2C_Read... [17:22:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:12]Read from MH i2c: E2 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 FD 00 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 FD 00 DE 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [17:22:12]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:13]wFMCommunicate OK [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 17 00 00 [17:22:13]Write to MH i2c: E2 08 00 DF 13 80 17 00 00 00 00 00 00 72 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 FD 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 FD 00 DF 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [17:22:13]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:22:13]wFMCommunicate OK [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 17 00 00 [17:22:13]Write to MH i2c: E2 08 00 E0 13 80 17 00 00 00 00 00 00 73 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 FD 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 FD 00 E0 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [17:22:13]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:13]wFMCommunicate OK [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 17 00 00 [17:22:14]Write to MH i2c: E2 08 00 E1 13 80 17 00 00 00 00 00 00 74 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 DD 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 DD 00 E1 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [17:22:14]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:14]wFMCommunicate OK [17:22:14]SAM_PROTO_GetFMData done [17:22:14]requested_item fm.sale_refund.total is exist - process it [17:22:14]requested_item fm.buy.total is exist - process it [17:22:14]requested_item shift.sale.total is exist - process it [17:22:14]SAM_PROTO_GetShiftData [17:22:14]wFMCommunicate request_size=4 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 13 02 00 [17:22:14]Write to MH i2c: E2 08 00 E2 13 80 13 02 00 00 00 00 00 73 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]OFD Sender: No OFD packet to send [17:22:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 FD 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 FD 00 E2 13 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 F4 [17:22:14]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 17 00 00 [17:22:15]Write to MH i2c: E2 08 00 E3 13 80 17 00 00 00 00 00 00 76 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 FD 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 FD 00 E3 13 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [17:22:15]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 17 00 00 [17:22:15]Write to MH i2c: E2 08 00 E4 13 80 17 00 00 00 00 00 00 77 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 FD 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 FD 00 E4 13 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [17:22:15]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 17 00 00 [17:22:15]Write to MH i2c: E2 08 00 E5 13 80 17 00 00 00 00 00 00 78 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 FD 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 FD 00 E5 13 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 90 00 F0 [17:22:16]RAPDU: 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 90 00 [17:22:16]wFMCommunicate OK [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 17 00 00 [17:22:16]Write to MH i2c: E2 08 00 E6 13 80 17 00 00 00 00 00 00 79 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 D2 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 D2 00 E6 13 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [17:22:16]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:16]wFMCommunicate OK [17:22:16]SAM_PROTO_GetShiftData done [17:22:16]requested_item shift.sale.total_cash is exist - process it [17:22:16]requested_item shift.sale_refund.total is exist - process it [17:22:16]requested_item shift.sale_refund.total_cash is exist - process it [17:22:16]requested_item shift.buy.total is exist - process it [17:22:16]requested_item shift.buy.total_cash is exist - process it [17:22:16]produce_requested_data done [17:22:16]produce_requested_data return {"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:22:16]process_action_free get_value [17:22:16]json_value_free [17:22:16]json_value_free done [17:22:16]process_json_proto returns [17:22:16]Send response to host [17:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:22:16]free response buf [17:22:16]execute_script done [17:22:16]execute_script returns [17:22:16]free content buf [17:22:16]Sock 8.Close socket [17:22:16]Sock 8.Thread stoped [17:22:16]accept exits with 9 [17:22:16]New connection [17:22:16]New thread 3066781028 created [17:22:16]Thread 3066637668 joined [17:22:16]Waiting for new connection... [17:22:16] Sock 9.Parse request [17:22:16]Sock 9.Check first char [17:22:16]Sock 9.First char is OK [17:22:16]request: POST /json_proto HTTP/1.0 [17:22:16]Method: POST [17:22:16]URL: /json_proto [17:22:16]Method is POST - this is cgi request [17:22:16]url: /json_proto [17:22:16]query_string will be loaded in cgi processing [17:22:16]execute_cgi json_proto POST (null) [17:22:16]execute_cgi path=json_proto method=POST [17:22:16]POST find Content-Length [17:22:16]Host: 172.17.45.132:8080 [17:22:16]Content-Length: 242 [17:22:16]Content-Type: application/json [17:22:16] [17:22:16]POST finish read [17:22:16]Found Content-Length = 242 [17:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u044F\u0442\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:16]execute_script... [17:22:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u044F\u0442\u043E\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:16]POST & json_proto [17:22:16]process_json_proto [17:22:16]json parsed OK: [17:22:16]protocol is kg_v1.0 [17:22:16]action value=close_shift [17:22:16]process_action close_shift [17:22:16]cmd_close_shift [17:22:16]MH_GetDate [17:22:16]Write to MH i2c: F0 00 00 E7 13 E9 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: F0 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: F0 09 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: F0 09 00 E7 13 00 CA 72 AA 66 E3 0B 90 66 22 [17:22:16]GetLastDocTimeStamp 1722446485 [17:22:16]current date 1722446538 [17:22:16]FM_GetShiftState [17:22:16]SAM_PROTO_GetShiftState [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 13 01 00 [17:22:16]Write to MH i2c: E2 08 00 E8 13 80 13 01 00 00 00 00 00 78 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0E 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0E 00 E8 13 00 09 00 01 31 81 A9 66 00 00 00 00 90 00 45 [17:22:16]RAPDU: 09 00 01 31 81 A9 66 00 00 00 00 90 00 [17:22:16]wFMCommunicate OK [17:22:16]SAM_PROTO_GetShiftState done [17:22:17]FM_GetShiftState done [17:22:17]KKMCreateCloseShiftDocument [17:22:17]Load OK [17:22:17]Malloc new data [17:22:17]MH_GetDate [17:22:17]Write to MH i2c: F0 00 00 E9 13 EB [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: F0 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: F0 09 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: F0 09 00 E9 13 00 CA 72 AA 66 E3 0B 90 66 24 [17:22:17]Malloc new data [17:22:17]Malloc new data [17:22:17]Malloc new data [17:22:17]Malloc new data [17:22:17]KKMCreateCloseShiftDocument OK [17:22:17]KKMSetCloseShiftData OK [17:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=65 [17:22:17]tlvbuf is 00F67230 [17:22:17]KKMLoadAndSignCloseShiftData [17:22:17]SAM_PROTO_ProcessDocument [17:22:17]wFMCommunicate request_size=9 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 01 00 04 05 00 41 00 [17:22:17]Write to MH i2c: E2 0C 00 EA 13 80 15 01 00 04 00 05 00 41 00 00 00 CA [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [17:22:17]RAPDU: 90 00 [17:22:17]wFMCommunicate OK [17:22:17]wFMCommunicate request_size=23 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:22:17]Write to MH i2c: E2 1A 00 EB 13 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 73 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [17:22:17]RAPDU: 90 00 [17:22:17]wFMCommunicate OK [17:22:17]wFMCommunicate request_size=24 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 02 00 13 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 [17:22:17]Write to MH i2c: E2 1B 00 EC 13 80 15 02 00 13 00 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 00 00 A9 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [17:22:17]RAPDU: 90 00 [17:22:17]wFMCommunicate OK [17:22:17]wFMCommunicate request_size=13 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 02 00 08 F4 03 04 00 CA 72 AA 66 [17:22:17]Write to MH i2c: E2 10 00 ED 13 80 15 02 00 08 00 F4 03 04 00 CA 72 AA 66 00 00 D7 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [17:22:17]RAPDU: 90 00 [17:22:17]wFMCommunicate OK [17:22:17]wFMCommunicate request_size=25 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [17:22:17]Write to MH i2c: E2 1C 00 EE 13 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 EF [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:22:17]Read from MH i2c: E2 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: E2 03 00 EE 13 00 90 00 75 [17:22:17]RAPDU: 90 00 [17:22:17]wFMCommunicate OK [17:22:17]wFMCommunicate request_size=4 [17:22:17]MH_SAM_APDU [17:22:17]CAPDU: 80 15 03 00 [17:22:17]Write to MH i2c: E2 08 00 EF 13 80 15 03 00 00 00 00 00 83 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:22:18]Read from MH i2c: E2 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 FD 00 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 FD 00 EF 13 00 F8 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 90 00 AB [17:22:18]RAPDU: F8 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 90 00 [17:22:18]wFMCommunicate OK [17:22:18]SAM_PROTO_ProcessDocument answer len = 1272 [17:22:18]SAM_PROTO_ProcessDocument remain to read = 1024 [17:22:18]wFMCommunicate request_size=4 [17:22:18]MH_SAM_APDU [17:22:18]CAPDU: 80 17 00 00 [17:22:18]Write to MH i2c: E2 08 00 F0 13 80 17 00 00 00 00 00 00 83 [17:22:18]Write i2c OK [17:22:18]MH_I2C_Read... [17:22:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:18]Read from MH i2c: E2 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 FD 00 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 FD 00 F0 13 00 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [17:22:18]RAPDU: 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:18]wFMCommunicate OK [17:22:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:22:18]SAM_PROTO_ProcessDocument remain to read = 774 [17:22:18]wFMCommunicate request_size=4 [17:22:18]MH_SAM_APDU [17:22:18]CAPDU: 80 17 00 00 [17:22:18]Write to MH i2c: E2 08 00 F1 13 80 17 00 00 00 00 00 00 84 [17:22:18]Write i2c OK [17:22:18]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 FD 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 FD 00 F1 13 00 00 EF 03 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 90 00 E6 [17:22:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:22:19]wFMCommunicate OK [17:22:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:22:19]SAM_PROTO_ProcessDocument remain to read = 524 [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 17 00 00 [17:22:19]Write to MH i2c: E2 08 00 F2 13 80 17 00 00 00 00 00 00 85 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 FD 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 FD 00 F2 13 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 A2 [17:22:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [17:22:19]09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [17:22:19]wFMCommunicate OK [17:22:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:22:19]SAM_PROTO_ProcessDocument remain to read = 274 [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 17 00 00 [17:22:19]Write to MH i2c: E2 08 00 F3 13 80 17 00 00 00 00 00 00 86 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:20]Read from MH i2c: E2 [17:22:20]MH_I2C_Read... [17:22:20]Read from MH i2c: E2 FD 00 [17:22:20]MH_I2C_Read... [17:22:20]Read from MH i2c: E2 FD 00 F3 13 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 BB [17:22:20]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [17:22:20]wFMCommunicate OK [17:22:20]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:22:20]SAM_PROTO_ProcessDocument remain to read = 24 [17:22:20]wFMCommunicate request_size=4 [17:22:20]MH_SAM_APDU [17:22:20]CAPDU: 80 17 00 00 [17:22:20]Write to MH i2c: E2 08 00 F4 13 80 17 00 00 00 00 00 00 87 [17:22:20]Write i2c OK [17:22:20]MH_I2C_Read... [17:22:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 24! [17:22:20]Read from MH i2c: E2 [17:22:20]MH_I2C_Read... [17:22:20]Read from MH i2c: E2 1B 00 [17:22:20]MH_I2C_Read... [17:22:20]Read from MH i2c: E2 1B 00 F4 13 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 01 28 A8 12 12 A9 90 00 65 [17:22:20]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 01 28 A8 12 12 A9 90 00 [17:22:20]wFMCommunicate OK [17:22:20]SAM_PROTO_ProcessDocument received (without SW) 24 bytes [17:22:20]SAM_PROTO_ProcessDocument done [17:22:20]1209 (1) - 1.0 - номер версии ФФД [17:22:20]1041 (16) - 0000000002094248 - номер ФМ [17:22:20]1040 (4) - 2700 - номер ФД [17:22:20]1038 (4) - 17 - номер смены [17:22:20]1118 (4) - 152 - количество кассовых чеков за смену [17:22:20]1111 (4) - 154 - общее количество ФД за смену [17:22:20]1194 (1201) - счетчики итогов смены [17:22:20] 1134 (4) - 152 - количество чеков со всеми признаками расчетов [17:22:20] 1129 (155) - счетчики операций «приход» [17:22:20] 1135 (4) - 151 - количество чеков по признаку расчетов [17:22:20] 1201 (3) - 66283.28 - общая итоговая сумма в чеках [17:22:20] 1136 (3) - 52908.00 - итоговая сумма в чеках наличными [17:22:20] 1138 (3) - 13375.28 - итоговая сумма в чеках безналичными [17:22:20] 1024 (122) - суммы налогов [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 0% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1006 (12) - суммы НДС [17:22:20] 1010 (1) - 12% - код ставки НДС [17:22:20] 1011 (3) - 7039.67 - сумма НДС по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (11) - суммы НСП [17:22:20] 1014 (1) - 1% - код ставки НСП [17:22:20] 1015 (2) - 586.55 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 2% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 3% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 5% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 1,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1130 (148) - счетчики операций «возврат прихода» [17:22:20] 1135 (4) - 1 - количество чеков по признаку расчетов [17:22:20] 1201 (2) - 110.00 - общая итоговая сумма в чеках [17:22:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:22:20] 1138 (2) - 110.00 - итоговая сумма в чеках безналичными [17:22:20] 1024 (120) - суммы налогов [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 0% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1006 (11) - суммы НДС [17:22:20] 1010 (1) - 12% - код ставки НДС [17:22:20] 1011 (2) - 11.68 - сумма НДС по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (10) - суммы НСП [17:22:20] 1014 (1) - 1% - код ставки НСП [17:22:20] 1015 (1) - 0.97 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 2% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 3% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 5% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 1,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1131 (141) - счетчики операций «расход» [17:22:20] 1135 (4) - 0 - количество чеков по признаку расчетов [17:22:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:22:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:22:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:22:20] 1024 (117) - суммы налогов [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 0% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 12% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 1% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 2% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 3% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 5% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 1,50% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1132 (141) - счетчики операций «возврат расхода» [17:22:20] 1135 (4) - 0 - количество чеков по признаку расчетов [17:22:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:22:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:22:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:22:20] 1024 (117) - суммы налогов [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 0% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1006 (9) - суммы НДС [17:22:20] 1010 (1) - 12% - код ставки НДС [17:22:20] 1011 (0) - 0.00 - сумма НДС по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 0% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 1% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 2% - код ставки НСП [17:22:20] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:20] 1007 (9) - суммы НСП [17:22:20] 1014 (1) - 3% - код ставки НСП [17:22:21] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:21] 1007 (9) - суммы НСП [17:22:21] 1014 (1) - 5% - код ставки НСП [17:22:21] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:21] 1007 (9) - суммы НСП [17:22:21] 1014 (1) - 0,50% - код ставки НСП [17:22:21] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:21] 1007 (9) - суммы НСП [17:22:21] 1014 (1) - 1,50% - код ставки НСП [17:22:21] 1015 (0) - 0.00 - сумма НСП по ставке [17:22:21] 1133 (588) - - счетчики коррекции - не используются [17:22:21]1077 (6) - 1274130076329 - ФПД [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1209 (04B9) [17:22:21]Malloc new data [17:22:21]Processing tag 1041 (0411) [17:22:21]Processing tag 1040 (0410) [17:22:21]Malloc new data [17:22:21]Processing tag 1038 (040E) [17:22:21]Malloc new data [17:22:21]Processing tag 1118 (045E) [17:22:21]Malloc new data [17:22:21]Processing tag 1111 (0457) [17:22:21]Malloc new data [17:22:21]Processing tag 1194 (04AA) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1134 (046E) [17:22:21]Malloc new data [17:22:21]Processing tag 1129 (0469) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1135 (046F) [17:22:21]Malloc new data [17:22:21]Processing tag 1201 (04B1) [17:22:21]Malloc new data [17:22:21]Processing tag 1136 (0470) [17:22:21]Malloc new data [17:22:21]Processing tag 1138 (0472) [17:22:21]Malloc new data [17:22:21]Processing tag 1024 (0400) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1130 (046A) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1135 (046F) [17:22:21]Malloc new data [17:22:21]Processing tag 1201 (04B1) [17:22:21]Malloc new data [17:22:21]Processing tag 1136 (0470) [17:22:21]Malloc new data [17:22:21]Processing tag 1138 (0472) [17:22:21]Malloc new data [17:22:21]Processing tag 1024 (0400) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1131 (046B) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1135 (046F) [17:22:21]Malloc new data [17:22:21]Processing tag 1201 (04B1) [17:22:21]Malloc new data [17:22:21]Processing tag 1136 (0470) [17:22:21]Malloc new data [17:22:21]Processing tag 1138 (0472) [17:22:21]Malloc new data [17:22:21]Processing tag 1024 (0400) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1132 (046C) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1135 (046F) [17:22:21]Malloc new data [17:22:21]Processing tag 1201 (04B1) [17:22:21]Malloc new data [17:22:21]Processing tag 1136 (0470) [17:22:21]Malloc new data [17:22:21]Processing tag 1138 (0472) [17:22:21]Malloc new data [17:22:21]Processing tag 1024 (0400) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1006 (03EE) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1010 (03F2) [17:22:21]Malloc new data [17:22:21]Processing tag 1011 (03F3) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1007 (03EF) [17:22:21]Load OK [17:22:21]SetTLVBufToDocument [17:22:21]Processing tag 1014 (03F6) [17:22:21]Malloc new data [17:22:21]Processing tag 1015 (03F7) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1133 (046D) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Processing tag 1077 (0435) [17:22:21]Malloc new data [17:22:21]SetTLVBufToDocument err=0 [17:22:21]Malloc new data [17:22:21]SAM_PROTO_GetFMData [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 13 03 00 [17:22:21]Write to MH i2c: E2 08 00 F5 13 80 13 03 00 00 00 00 00 87 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:22:22]Read from MH i2c: E2 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: E2 FD 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: E2 FD 00 F5 13 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 3C [17:22:22]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [17:22:22]wFMCommunicate OK [17:22:22]wFMCommunicate request_size=4 [17:22:22]MH_SAM_APDU [17:22:22]CAPDU: 80 17 00 00 [17:22:22]Write to MH i2c: E2 08 00 F6 13 80 17 00 00 00 00 00 00 89 [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 FD 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 FD 00 F6 13 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [17:22:23]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 17 00 00 [17:22:23]Write to MH i2c: E2 08 00 F7 13 80 17 00 00 00 00 00 00 8A [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 FD 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 FD 00 F7 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [17:22:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 17 00 00 [17:22:23]Write to MH i2c: E2 08 00 F8 13 80 17 00 00 00 00 00 00 8B [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 FD 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 FD 00 F8 13 00 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [17:22:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 17 00 00 [17:22:24]Write to MH i2c: E2 08 00 F9 13 80 17 00 00 00 00 00 00 8C [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 DD 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 DD 00 F9 13 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [17:22:25]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 OFD Sender: No OFD packet to send [17:22:25]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_GetFMData done [17:22:25]Malloc new data [17:22:25]Malloc new data [17:22:25]Malloc new data [17:22:25]Malloc new data [17:22:25]KKMLoadAndSignCloseShiftData err=0 [17:22:25]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аятов Д. 31.07.2024 17:22 Смена: 17 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Чеков за смену: 152 ФД за смену: 154 Всего чеков: 152 ИТОГИ ПРИХОД Чеков: 151 Общий итог: 66283.28 Итого наличными: 52908.00 Итого безнал.: 13375.28 НДС 0% : 0.00 НДС 12% : 7039.67 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 586.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 110.00 Итого наличными: 0.00 Итого безнал.: 110.00 НДС 0% : 0.00 НДС 12% : 11.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.97 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 52908.00 НС Приход: 1131373.42 НС Возвр.Прихода: 14057.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 2700 ФМ: 0000000002094248 ФПД: 1274130076329 [17:22:25]StoreToDocumentArchive [17:22:25]shift 17 fd 2700 [17:22:25]save to /storage/0017/doc_00002700 [17:22:25]save last doc name /storage/0017/doc_00002700 to /storage/kkm_last_doc_name [17:22:25]save OK [17:22:25]Clear old archive folders... [17:22:25]Remove dir /storage/0010 [17:22:25]opendir ok [17:22:25]file . [17:22:25]file .. [17:22:25]file doc_1722446492 [17:22:25]remove file /storage/0010/doc_1722446492 [17:22:25]remove dir /storage/0010 [17:22:25]NVStorageSaveData kkm_registers [17:22:25]File name is /storage/kkm_registers [17:22:25]Write 24 bytes [17:22:25]NVStorageSaveData done [17:22:25]NVStorageSaveData kkm_registers [17:22:25]File name is /storage/kkm_registers [17:22:25]Write 24 bytes [17:22:25]NVStorageSaveData done [17:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=1376 [17:22:25]tlvbuf is 00E90B80 [17:22:25]SAM_PROTO_ClearQueue [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 09 00 00 [17:22:25]Write to MH i2c: E2 08 00 FA 13 80 09 00 00 00 00 00 00 7F [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_ClearQueue done [17:22:25]KKMCreateOFDPacket [17:22:25]OFDProtocolAddRootSTLVToBuf [17:22:25]FM_MakeSignedData [17:22:25]FM_MakeSignedData [17:22:25]SAM_PROTO_SignData [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 01 02 [17:22:25]Write to MH i2c: E2 08 00 FB 13 80 0D 01 02 00 00 00 00 87 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]wFMCommunicate request_size=255 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 02 02 FA 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 CA 72 AA 66 0E 04 04 00 11 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 D8 04 6E 04 04 00 98 00 00 00 69 04 A2 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 [17:22:25]Write to MH i2c: E2 02 01 FC 13 80 0D 02 02 FA 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 CA 72 AA 66 0E 04 04 00 11 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 D8 04 6E 04 04 00 98 00 00 00 69 04 A2 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 00 26 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]wFMCommunicate request_size=255 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1F E5 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 01 00 00 72 04 02 00 F8 2A 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 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 61 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 [17:22:26]Write to MH i2c: E2 02 01 FD 13 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1F E5 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 01 00 00 72 04 02 00 F8 2A 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 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 61 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 00 00 35 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]wFMCommunicate request_size=255 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 0D 02 02 FA 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 [17:22:26]Write to MH i2c: E2 02 01 FE 13 80 0D 02 02 FA 00 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 00 00 5B [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 03 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [17:22:27]RAPDU: 90 00 [17:22:27]wFMCommunicate OK [17:22:27]wFMCommunicate request_size=255 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 0D 02 02 FA 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 [17:22:27]Write to MH i2c: E2 02 01 FF 13 80 0D 02 02 FA 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 00 00 51 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 03 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [17:22:27]RAPDU: 90 00 [17:22:27]wFMCommunicate OK [17:22:27]wFMCommunicate request_size=255 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 [17:22:28]Write to MH i2c: E2 02 01 00 14 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 00 14 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]wFMCommunicate request_size=135 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 02 02 82 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 8C 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 01 28 A8 12 12 A9 [17:22:28]Write to MH i2c: E2 8A 00 01 14 80 0D 02 02 82 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 8C 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 01 28 A8 12 12 A9 00 00 FE [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [17:22:28]RAPDU: 90 00 [17:22:29]wFMCommunicate OK [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 0D 03 02 [17:22:29]Write to MH i2c: E2 08 00 02 14 80 0D 03 02 00 00 00 00 91 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 02 14 00 78 00 9E E7 03 46 80 08 90 00 60 [17:22:29]RAPDU: 78 00 9E E7 03 46 80 08 90 00 [17:22:29]wFMCommunicate OK [17:22:29]SAM_PROTO_SignData done [17:22:29]FM_MakeSignedData done [17:22:29]CreateOFDProtocolMessage [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 11 00 00 [17:22:29]Write to MH i2c: E2 08 00 03 14 80 11 00 00 00 00 00 00 91 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:29]Read from MH i2c: E2 17 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 17 00 03 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E1 [17:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:22:29]wFMCommunicate OK [17:22:29]CreateOFDProtocolMessage done [17:22:29]OFDSenderStorePacket 2700 [17:22:29]StoreOFDPacket docnum=2700 [17:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 74 05 00 00 B2 F0 6C 05 56 78 5A 05 01 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 CA 72 AA 66 0E 04 04 00 11 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 D8 04 6E 04 04 00 98 00 00 00 69 04 A2 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 01 00 00 72 04 02 00 F8 2A 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 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 61 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 8C 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 01 28 A8 12 12 A9 78 00 9E E7 03 46 80 08 [17:22:29]CheckFolder [17:22:29]dirname=/storage/ofd_packets [17:22:29]CheckFolder done [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00002700 [17:22:29]NVStorageSaveData ofd_packets/00002700 [17:22:29]File name is /storage/ofd_packets/00002700 [17:22:29]Write 1426 bytes [17:22:29]NVStorageSaveData done [17:22:29]OFDSenderStorePacket done [17:22:29]KKMCreateOFDPacket done [17:22:29]NVStorageSaveData kkm_last_timestamp [17:22:29]File name is /storage/kkm_last_timestamp [17:22:29]Write 4 bytes [17:22:29]NVStorageSaveData done [17:22:29]ExternCall_PrintAddStr [17:22:29]wPrintStart [17:22:29]Write to MH i2c: 01 00 00 04 14 18 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 FF 0F 2D [17:22:29]RasterBufferAndPrint [17:22:29]line Отчет о закрытии смены [17:22:29]line ФФД: 1.0 [17:22:29]line ИНН: 02508201610067 [17:22:29]line Кассир: Аятов Д. [17:22:29]line 31.07.2024 17:22 [17:22:29]line Смена: 17 [17:22:29]line РНМ: 0000000000189667 [17:22:29]line ЗНМ: 0300000161 [17:22:29]line СНО: Общий режим [17:22:29]line Чеков за смену: 152 [17:22:29]line ФД за смену: 154 [17:22:29]line Всего чеков: 152 [17:22:29]line ИТОГИ ПРИХОД [17:22:29]line Чеков: 151 [17:22:29]line Общий итог: 66283.28 [17:22:29]line Итого наличными: 52908.00 [17:22:29]line Итого безнал.: 13375.28 [17:22:29]line НДС 0% : 0.00 [17:22:29]line НДС 12% : 7039.67 [17:22:29]line НСП 0% : 0.00 [17:22:29]line НСП 1,50% : 0.00 [17:22:29]line НСП 0,50% : 0.00 [17:22:29]line НСП 5% : 0.00 [17:22:29]line НСП 3% : 0.00 [17:22:29]line НСП 2% : 0.00 [17:22:29]line НСП 1% : 586.55 [17:22:29]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:22:29]line Чеков: 1 [17:22:29]line Общий итог: 110.00 [17:22:29]line Итого наличными: 0.00 [17:22:29]line Итого безнал.: 110.00 [17:22:29]line НДС 0% : 0.00 [17:22:29]line НДС 12% : 11.68 [17:22:29]line НСП 0% : 0.00 [17:22:29]line НСП 1,50% : 0.00 [17:22:29]line НСП 0,50% : 0.00 [17:22:29]line НСП 5% : 0.00 [17:22:29]line НСП 3% : 0.00 [17:22:29]line НСП 2% : 0.00 [17:22:29]line НСП 1% : 0.97 [17:22:29]line ИТОГИ РАСХОД [17:22:29]line Чеков: 0 [17:22:29]line Общий итог: 0.00 [17:22:29]line Итого наличными: 0.00 [17:22:29]line Итого безнал.: 0.00 [17:22:29]line НДС 0% : 0.00 [17:22:29]line НДС 12% : 0.00 [17:22:29]line НСП 0% : 0.00 [17:22:29]line НСП 1,50% : 0.00 [17:22:29]line НСП 0,50% : 0.00 [17:22:29]line НСП 5% : 0.00 [17:22:29]line НСП 3% : 0.00 [17:22:29]line НСП 2% : 0.00 [17:22:29]line НСП 1% : 0.00 [17:22:29]line ИТОГИ ВОЗВРАТ РАСХОДА [17:22:29]line Чеков: 0 [17:22:29]line Общий итог: 0.00 [17:22:29]line Итого наличными: 0.00 [17:22:29]line Итого безнал.: 0.00 [17:22:29]line НДС 0% : 0.00 [17:22:29]line НДС 12% : 0.00 [17:22:29]line НСП 0% : 0.00 [17:22:29]line НСП 1,50% : 0.00 [17:22:29]line НСП 0,50% : 0.00 [17:22:29]line НСП 5% : 0.00 [17:22:29]line НСП 3% : 0.00 [17:22:29]line НСП 2% : 0.00 [17:22:29]line НСП 1% : 0.00 [17:22:29]line Сумма внесений: 0.00 [17:22:29]line Сумма выплат: 0.00 [17:22:29]line Нал. в кассе: 52908.00 [17:22:29]line НС Приход: 1131373.42 [17:22:29]line НС Возвр.Прихода: 14057.00 [17:22:29]line НС Расход: 0.00 [17:22:29]line НС Возвр.Расхода: 0.00 [17:22:29]line ФД: 2700 [17:22:29]line ФМ: 0000000002094248 [17:22:29]line ФПД: 1274130076329 [17:22:29]OFD Sender: Processing packet 2700 [packets to send 1, broken 0] [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00002700 [17:22:29]OFD Sender: To server: pG, [17:22:29]CommunicateWithHost lk.salyk.kg:30040 [17:22:29]ConnectInit lk.salyk.kg [17:22:29]written 0, free lines is 4095 [17:22:29]Connected sock=10 [17:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 74 05 00 00 B2 F0 6C 05 56 78 5A 05 01 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 0F 00 D0 90 D1 8F D1 82 D0 BE D0 B2 20 D0 94 2E 20 F4 03 04 00 CA 72 AA 66 0E 04 04 00 11 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 AA 04 D8 04 6E 04 04 00 98 00 00 00 69 04 A2 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 01 00 00 72 04 02 00 F8 2A 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 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 61 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 Write to MH i2c: EF 03 01 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 00 05 00 F7 54 03 14 01 68 [17:22:30]00 00 EF 03 Write i2c OK [17:22:30]0A MH_I2C_Read... [17:22:30]00 F6 03 01 00 04 F7 03 01 00 Read from MH i2c: 00 01 EF [17:22:30]03 0A 00 F6 03 01 00 03 F7 MH_I2C_Read... [17:22:30]03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 72 0C ED [17:22:30]RasterBufferAndPrint [17:22:30]line [17:22:30]line [17:22:30]line [17:22:30]line [17:22:30]line [17:22:30]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 written 0, free lines is 3363 [17:22:31]03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 MH_Cut [17:22:31]F7 Write to MH i2c: 03 D1 00 01 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 5B 03 14 09 01 00 41 F6 [17:22:31]03 01 Write i2c OK [17:22:31]00 MH_I2C_Read... [17:22:31]06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 Read from MH i2c: 00 D1 00 [17:22:31]00 MH_I2C_Read... [17:22:31]00 Read from MH i2c: B1 D1 04 01 00 00 00 [17:22:31]70 MH_I2C_Read... [17:22:31]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 Read from MH i2c: 03 D1 00 01 00 00 EE 5B 03 14 09 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 40 03 [17:22:31]01 Write to MH i2c: 00 01 00 00 F7 00 03 5C 00 14 00 70 EF [17:22:31]03 Write i2c OK [17:22:31]09 MH_I2C_Read... [17:22:31]00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 *** Cut start [17:22:31]03 00 *** Partial cut [17:22:31]00 EF *** CUTSNS_PIN = 1 [17:22:31]03 09 *** CUTSNS_PIN = 0 [17:22:31]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 8C 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 01 28 A8 12 12 A9 78 00 9E E7 03 46 80 08 [17:22:31]*** Brake cut motor [17:22:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B0 48 47 00 AF 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 32 30 39 34 32 34 38 10 04 04 00 8C 0A 00 00 F4 03 04 00 3C 1E AA 66 B6 04 01 00 00 0A 03 4B 5D 53 2F 74 98 [17:22:32]CommunicateWithHost err = 0 [17:22:32]CheckOFDResponse [17:22:32]1017 (14) - 77093643461234 [17:22:32]1041 (16) - 0000000002094248 [17:22:32]1040 (4) - 2700 [17:22:32]1012 (4) - 31.07.2024 11:21 [17:22:32]1206 (1) - 0 [17:22:32]OFD Sender: Remove packet 2700 [17:22:32]ProducePacketName [17:22:32]name=ofd_packets/00002700 [17:22:32]NVStorageDeleteData [17:22:32]Read from MH i2c: 01 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: *** Stop cut motor [17:22:32]01 *** Cut end [17:22:32]07 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [17:22:32]process_action close_shift done [17:22:32]requested_data is exist [17:22:32]produce_requested_data [17:22:32]requested_item fd.num is exist - process it [17:22:32]SAM_PROTO_GetFieldsCounters [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 13 00 00 [17:22:32]Write to MH i2c: E2 08 00 5D 14 80 13 00 00 00 00 00 00 ED [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 62 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 62 00 5D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [17:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_GetFieldsCounters done [17:22:32]requested_item shift.num is exist - process it [17:22:32]requested_item shift.opened is exist - process it [17:22:32]req_shift_opened [17:22:32]FM_GetShiftState [17:22:32]SAM_PROTO_GetShiftState [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 13 01 00 [17:22:32]Write to MH i2c: E2 08 00 5E 14 80 13 01 00 00 00 00 00 EF [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 5E 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FA [17:22:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_GetShiftState done [17:22:32]FM_GetShiftState done [17:22:32]req_shift_opened done [17:22:32]requested_item shift.open_date is exist - process it [17:22:32]req_shift_open_date [17:22:32]FM_GetShiftState [17:22:32]SAM_PROTO_GetShiftState [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 13 01 00 [17:22:32]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]OFD Sender: No OFD packet to send [17:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 0E 00 5F 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [17:22:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_GetShiftState done [17:22:32]FM_GetShiftState done [17:22:32]req_shift_open_date done [17:22:32]produce_requested_data done [17:22:32]produce_requested_data return {"fd.num":2700,"shift.num":17,"shift.opened":0,"shift.open_date":0} [17:22:32]process_action_free close_shift [17:22:32]json_value_free [17:22:32]json_value_free done [17:22:32]process_json_proto returns [17:22:32]Send response to host [17:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2700,"shift.num":17,"shift.opened":0,"shift.open_date":0}}} [17:22:32]free response buf [17:22:32]execute_script done [17:22:32]execute_script returns [17:22:32]free content buf [17:22:32]Sock 9.Close socket [17:22:32]Sock 9.Thread stoped [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]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:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:51]accept exits with 8 [19:17:51]New connection [19:17:51]New thread 3066637668 created [19:17:51]Thread 3066781028 joined [19:17:51]Waiting for new connection... [19:17:51] Sock 8.Parse request [19:17:51]Sock 8.Check first char [19:17:51]Sock 8.First char is OK [19:17:51]request: POST /json_proto HTTP/1.0 [19:17:51]Method: POST [19:17:51]URL: /json_proto [19:17:51]Method is POST - this is cgi request [19:17:51]url: /json_proto [19:17:51]query_string will be loaded in cgi processing [19:17:51]execute_cgi json_proto POST (null) [19:17:51]execute_cgi path=json_proto method=POST [19:17:51]POST find Content-Length [19:17:51]Host: 172.17.45.132:8080 [19:17:51]Content-Length: 215 [19:17:51]Content-Type: application/json [19:17:51] [19:17:51]POST finish read [19:17:51]Found Content-Length = 215 [19:17: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" ] } } [19:17:51]execute_script... [19:17: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" ] } } [19:17:51]POST & json_proto [19:17:51]process_json_proto [19:17:51]json parsed OK: [19:17:51]protocol is kg_v1.0 [19:17:51]action value=get_value [19:17:51]process_action get_value [19:17:51]cmd_get_value [19:17:51]process_action get_value done [19:17:51]requested_data is exist [19:17:51]produce_requested_data [19:17:51]requested_item kkm.sn is exist - process it [19:17:51]requested_item kkm.ver is exist - process it [19:17:51]requested_item fm.sn is exist - process it [19:17:51]wFMCommunicate request_size=4 [19:17:51]MH_SAM_APDU [19:17:51]CAPDU: 80 11 00 00 [19:17:51]Write to MH i2c: E2 08 00 60 14 80 11 00 00 00 00 00 00 EE [19:17:51]Write i2c OK [19:17:51]MH_I2C_Read... [19:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:51]Read from MH i2c: E2 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 17 00 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 17 00 60 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [19:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:17:51]wFMCommunicate OK [19:17:51]requested_item fd.num is exist - process it [19:17:51]SAM_PROTO_GetFieldsCounters [19:17:51]wFMCommunicate request_size=4 [19:17:51]MH_SAM_APDU [19:17:51]CAPDU: 80 13 00 00 [19:17:51]Write to MH i2c: E2 08 00 61 14 80 13 00 00 00 00 00 00 F1 [19:17:51]Write i2c OK [19:17:51]MH_I2C_Read... [19:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:51]Read from MH i2c: E2 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 62 00 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 62 00 61 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [19:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 0A 00 00 0E 04 04 00 11 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:51]wFMCommunicate OK [19:17:51]SAM_PROTO_GetFieldsCounters done [19:17:51]requested_item shift.num is exist - process it [19:17:51]requested_item shift.opened is exist - process it [19:17:51]req_shift_opened [19:17:51]FM_GetShiftState [19:17:51]SAM_PROTO_GetShiftState [19:17:51]wFMCommunicate request_size=4 [19:17:51]MH_SAM_APDU [19:17:51]CAPDU: 80 13 01 00 [19:17:51]Write to MH i2c: E2 08 00 62 14 80 13 01 00 00 00 00 00 F3 [19:17:51]Write i2c OK [19:17:51]MH_I2C_Read... [19:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:51]Read from MH i2c: E2 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 0E 00 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 0E 00 62 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FE [19:17:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:17:51]wFMCommunicate OK [19:17:51]SAM_PROTO_GetShiftState done [19:17:51]FM_GetShiftState done [19:17:51]req_shift_opened done [19:17:51]requested_item shift.open_date is exist - process it [19:17:51]req_shift_open_date [19:17:51]FM_GetShiftState [19:17:51]SAM_PROTO_GetShiftState [19:17:51]wFMCommunicate request_size=4 [19:17:51]MH_SAM_APDU [19:17:51]CAPDU: 80 13 01 00 [19:17:51]Write to MH i2c: E2 08 00 63 14 80 13 01 00 00 00 00 00 F4 [19:17:51]Write i2c OK [19:17:51]MH_I2C_Read... [19:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:51]Read from MH i2c: E2 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 0E 00 [19:17:51]MH_I2C_Read... [19:17:51]Read from MH i2c: E2 0E 00 63 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FF [19:17:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:17:51]wFMCommunicate OK [19:17:51]SAM_PROTO_GetShiftState done [19:17:51]FM_GetShiftState done [19:17:51]req_shift_open_date done [19:17:51]produce_requested_data done [19:17:51]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2700,"shift.num":17,"shift.opened":0,"shift.open_date":0} [19:17:51]process_action_free get_value [19:17:51]json_value_free [19:17:51]json_value_free done [19:17:51]process_json_proto returns [19:17:51]Send response to host [19:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2700,"shift.num":17,"shift.opened":0,"shift.open_date":0}}} [19:17:51]free response buf [19:17:51]execute_script done [19:17:51]execute_script returns [19:17:51]free content buf [19:17:51]Sock 8.Close socket [19:17:51]Sock 8.Thread stoped [19:17:52]OFD Sender: No OFD packet to send [19:17:54]accept exits with 9 [19:17:54]New connection [19:17:54]New thread 3066781028 created [19:17:54]Thread 3066637668 joined [19:17:54]Waiting for new connection... [19:17:54] Sock 9.Parse request [19:17:54]Sock 9.Check first char [19:17:54]Sock 9.First char is OK [19:17:54]request: POST /json_proto HTTP/1.0 [19:17:54]Method: POST [19:17:54]URL: /json_proto [19:17:54]Method is POST - this is cgi request [19:17:54]url: /json_proto [19:17:54]query_string will be loaded in cgi processing [19:17:54]execute_cgi json_proto POST (null) [19:17:54]execute_cgi path=json_proto method=POST [19:17:54]POST find Content-Length [19:17:54]Host: 172.17.45.132:8080 [19:17:54]Content-Length: 331 [19:17:54]Content-Type: application/json [19:17:54] [19:17:54]POST finish read [19:17:54]Found Content-Length = 331 [19:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:17:54]execute_script... [19:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:17:54]POST & json_proto [19:17:54]process_json_proto [19:17:54]json parsed OK: [19:17:54]protocol is kg_v1.0 [19:17:54]action value=get_value [19:17:54]process_action get_value [19:17:54]cmd_get_value [19:17:54]process_action get_value done [19:17:54]requested_data is exist [19:17:54]produce_requested_data [19:17:54]requested_item fm.sale.total is exist - process it [19:17:54]SAM_PROTO_GetFMData [19:17:54]wFMCommunicate request_size=4 [19:17:54]MH_SAM_APDU [19:17:54]CAPDU: 80 13 03 00 [19:17:54]Write to MH i2c: E2 08 00 64 14 80 13 03 00 00 00 00 00 F7 [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 64 14 00 C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 AC [19:17:55]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 69 0A 00 00 69 04 9F 00 6F 04 04 00 56 0A 00 00 B1 04 04 00 BE 56 BE 06 70 04 04 00 80 66 6F 04 72 04 04 00 3E F0 4E 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E1 58 B7 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 57 46 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 04 73 15 70 04 03 00 C4 F5 13 72 04 03 00 40 7D 01 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 21 47 02 EF 03 09 00 F6 03 01 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 17 00 00 [19:17:55]Write to MH i2c: E2 08 00 65 14 80 17 00 00 00 00 00 00 F9 [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 65 14 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [19:17:55]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 17 00 00 [19:17:55]Write to MH i2c: E2 08 00 66 14 80 17 00 00 00 00 00 00 FA [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 66 14 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [19:17:55]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 17 00 00 [19:17:55]Write to MH i2c: E2 08 00 67 14 80 17 00 00 00 00 00 00 FB [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 FD 00 67 14 00 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [19:17:55]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 17 00 00 [19:17:55]Write to MH i2c: E2 08 00 68 14 80 17 00 00 00 00 00 00 FC [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 DD 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 DD 00 68 14 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [19:17:56]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:17:56]wFMCommunicate OK [19:17:56]SAM_PROTO_GetFMData done [19:17:56]requested_item fm.sale_refund.total is exist - process it [19:17:56]requested_item fm.buy.total is exist - process it [19:17:56]requested_item shift.sale.total is exist - process it [19:17:56]SAM_PROTO_GetShiftData [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 13 02 00 [19:17:56]Write to MH i2c: E2 08 00 69 14 80 13 02 00 00 00 00 00 FB [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 FD 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 FD 00 69 14 00 B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 7C [19:17:56]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 98 00 00 00 69 04 9B 00 6F 04 04 00 97 00 00 00 B1 04 03 00 E8 23 65 70 04 03 00 30 BB 50 72 04 03 00 B8 68 14 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 DF BD 0A 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 1F E5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 F8 2A 70 04 00 00 72 04 02 00 F8 2A 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 90 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [19:17:56]wFMCommunicate OK [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 17 00 00 [19:17:56]Write to MH i2c: E2 08 00 6A 14 80 17 00 00 00 00 00 00 FE [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 FD 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 FD 00 6A 14 00 F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [19:17:56]RAPDU: F6 03 01 00 01 F7 03 01 00 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:17:56]wFMCommunicate OK [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 17 00 00 [19:17:56]Write to MH i2c: E2 08 00 6B 14 80 17 00 00 00 00 00 00 FF [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 FD 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 FD 00 6B 14 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [19:17:57]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:17:57]wFMCommunicate OK [19:17:57]wFMCommunicate request_size=4 [19:17:57]MH_SAM_APDU [19:17:57]CAPDU: 80 17 00 00 [19:17:57]Write to MH i2c: E2 08 00 6C 14 80 17 00 00 00 00 00 00 00 [19:17:57]Write i2c OK [19:17:57]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 FD 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 FD 00 6C 14 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 90 00 78 [19:17:57]RAPDU: 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 90 00 [19:17:57]wFMCommunicate OK [19:17:57]wFMCommunicate request_size=4 [19:17:57]MH_SAM_APDU [19:17:57]CAPDU: 80 17 00 00 [19:17:57]Write to MH i2c: E2 08 00 6D 14 80 17 00 00 00 00 00 00 01 [19:17:57]Write i2c OK [19:17:57]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 D2 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 D2 00 6D 14 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [19:17:57]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:17:57]wFMCommunicate OK [19:17:57]SAM_PROTO_GetShiftData done [19:17:57]requested_item shift.sale.total_cash is exist - process it [19:17:57]requested_item shift.sale_refund.total is exist - process it [19:17:57]requested_item shift.sale_refund.total_cash is exist - process it [19:17:57]requested_item shift.buy.total is exist - process it [19:17:57]requested_item shift.buy.total_cash is exist - process it [19:17:57]produce_requested_data done [19:17:57]produce_requested_data return {"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:17:57]process_action_free get_value [19:17:57]json_value_free [19:17:57]json_value_free done [19:17:57]process_json_proto returns [19:17:57]Send response to host [19:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1131373.42,"fm.sale_refund.total":14057.00,"fm.buy.total":0.00,"shift.sale.total":66283.28,"shift.sale.total_cash":52908.00,"shift.sale_refund.total":110.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:17:57]free response buf [19:17:57]execute_script done [19:17:57]execute_script returns [19:17:57]free content buf [19:17:57]Sock 9.Close socket [19:17:57]Sock 9.Thread stoped [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]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:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00: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:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22: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:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:44:59]ConnectInit Can't connect to host [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: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:33]ConnectInit Can't connect to host [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:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]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:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send