[03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:07]accept exits with 9 [03:03:07]New connection [03:03:07]New thread 3067305316 created [03:03:07]Thread 3067161956 joined [03:03:07]Waiting for new connection... [03:03:07] Sock 9.Parse request [03:03:07]Sock 9.Check first char [03:03:07]Sock 9.First char is OK [03:03:07]request: POST /json_proto HTTP/1.0 [03:03:07]Method: POST [03:03:07]URL: /json_proto [03:03:07]Method is POST - this is cgi request [03:03:07]url: /json_proto [03:03:07]query_string will be loaded in cgi processing [03:03:07]execute_cgi json_proto POST (null) [03:03:07]execute_cgi path=json_proto method=POST [03:03:07]POST find Content-Length [03:03:07]Host: 172.17.49.196:8080 [03:03:07]Content-Length: 655 [03:03:07]Content-Type: application/json [03:03:07] [03:03:07]POST finish read [03:03:07]Found Content-Length = 655 [03:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164170", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:07]execute_script... [03:03: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)164170", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:07]POST & json_proto [03:03:07]process_json_proto [03:03:07]json parsed OK: [03:03:07]protocol is kg_v1.0 [03:03:07]action value=close_receipt [03:03:07]process_action close_receipt [03:03:07]cmd_close_receipt [03:03:07]MH_GetDate [03:03:07]Write to MH i2c: F0 00 00 C0 03 B2 [03:03:07]Write i2c OK [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: F0 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: F0 09 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: F0 09 00 C0 03 00 6C 67 18 67 BD 3B 11 67 7D [03:03:07]GetLastDocTimeStamp 1729650661 [03:03:07]current date 1729652588 [03:03:07]FM_GetShiftState [03:03:07]SAM_PROTO_GetShiftState [03:03:07]wFMCommunicate request_size=4 [03:03:07]MH_SAM_APDU [03:03:07]CAPDU: 80 13 01 00 [03:03:07]Write to MH i2c: E2 08 00 C1 03 80 13 01 00 00 00 00 00 41 [03:03:07]Write i2c OK [03:03:07]MH_I2C_Read... [03:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:07]Read from MH i2c: E2 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 0E 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 0E 00 C1 03 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8D [03:03:07]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [03:03:07]wFMCommunicate OK [03:03:07]SAM_PROTO_GetShiftState done [03:03:07]FM_GetShiftState done [03:03:07]opened in 1729642370 [03:03:07]opened+sec_in_day 1729728770 [03:03:07]quantity*price = 6900 [03:03:07]sum+1 = 6901 [03:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 9 23.10.2024 03:03 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50264 ФПД: 42283727002324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030308&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50264&fm=42283727002324&tin=02508201610067®Number=0000000000097022&sum=6900 0 [03:03:08]StoreToDocumentArchive [03:03:08]shift 491 fd 50264 [03:03:08]save to /storage/0491/doc_00050264 [03:03:08]save last doc name /storage/0491/doc_00050264 to /storage/kkm_last_doc_name [03:03:08]save OK [03:03:08]Clear old archive folders... [03:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=294 [03:03:08]tlvbuf is 002203B0 [03:03:08]SAM_PROTO_ClearQueue [03:03:08]wFMCommunicate request_size=4 [03:03:08]MH_SAM_APDU [03:03:08]CAPDU: 80 09 00 00 [03:03:08]Write to MH i2c: E2 08 00 CE 03 80 09 00 00 00 00 00 00 43 [03:03:08]Write i2c OK [03:03:08]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [03:03:09]RAPDU: 90 00 [03:03:09]wFMCommunicate OK [03:03:09]SAM_PROTO_ClearQueue done [03:03:09]KKMCreateOFDPacket [03:03:09]OFDProtocolAddRootSTLVToBuf [03:03:09]FM_MakeSignedData [03:03:09]FM_MakeSignedData [03:03:09]SAM_PROTO_SignData [03:03:09]wFMCommunicate request_size=4 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 0D 01 02 [03:03:09]Write to MH i2c: E2 08 00 CF 03 80 0D 01 02 00 00 00 00 4B [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [03:03:09]RAPDU: 90 00 [03:03:09]wFMCommunicate OK [03:03:09]wFMCommunicate request_size=255 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [03:03:09]Write to MH i2c: E2 02 01 D0 03 80 0D 02 02 FA 00 03 00 26 01 1E 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 A1 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [03:03:09]RAPDU: 90 00 [03:03:09]wFMCommunicate OK [03:03:09]wFMCommunicate request_size=53 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C4 00 00 35 04 06 00 26 74 F2 87 1A D4 [03:03:09]Write to MH i2c: E2 38 00 D1 03 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C4 00 00 35 04 06 00 26 74 F2 87 1A D4 00 00 4F [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [03:03:09]RAPDU: 90 00 [03:03:09]wFMCommunicate OK [03:03:09]wFMCommunicate request_size=4 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 0D 03 02 [03:03:09]Write to MH i2c: E2 08 00 D2 03 80 0D 03 02 00 00 00 00 50 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 0B 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 0B 00 D2 03 00 A7 73 29 2D 1D D1 14 89 90 00 4C [03:03:09]RAPDU: A7 73 29 2D 1D D1 14 89 90 00 [03:03:09]wFMCommunicate OK [03:03:09]SAM_PROTO_SignData done [03:03:09]FM_MakeSignedData done [03:03:09]CreateOFDProtocolMessage [03:03:09]wFMCommunicate request_size=4 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 11 00 00 [03:03:09]Write to MH i2c: E2 08 00 D3 03 80 11 00 00 00 00 00 00 50 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:09]Read from MH i2c: E2 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 17 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: E2 17 00 D3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 97 [03:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [03:03:09]wFMCommunicate OK [03:03:09]CreateOFDProtocolMessage done [03:03:09]OFDSenderStorePacket 50264 [03:03:09]StoreOFDPacket docnum=50264 [03:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 F2 B0 32 01 67 76 5A 03 01 00 03 00 26 01 1E 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C4 00 00 35 04 06 00 26 74 F2 87 1A D4 A7 73 29 2D 1D D1 14 89 [03:03:09]CheckFolder [03:03:09]dirname=/storage/ofd_packets [03:03:09]CheckFolder done [03:03:09]ProducePacketName [03:03:09]name=ofd_packets/00050264 [03:03:09]NVStorageSaveData ofd_packets/00050264 [03:03:09]File name is /storage/ofd_packets/00050264 [03:03:09]Write 344 bytes [03:03:09]NVStorageSaveData done [03:03:09]OFDSenderStorePacket done [03:03:09]KKMCreateOFDPacket done [03:03:09]NVStorageSaveData kkm_last_timestamp [03:03:09]File name is /storage/kkm_last_timestamp [03:03:09]Write 4 bytes [03:03:09]NVStorageSaveData done [03:03:09]ExternCall_PrintAddStr [03:03:09]wPrintStart [03:03:09]Write to MH i2c: 01 00 00 D4 03 D7 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 07 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [03:03:09]RasterBufferAndPrint [03:03:09]line Счет N : (3)164170 [03:03:09]line ИНН: 02508201610067 [03:03:09]line Контрольно-Кассовый Чек [03:03:09]line ПРОДАЖА [03:03:09]line Товар: 4600682557456 [03:03:09]line Напиток FLash up energy эн ж/б 0,5/0,45л [03:03:09]line 1.000 * 69.00 [03:03:09]line = 69.00 [03:03:09]line НДС 12% НСП 1% [03:03:09]line > о реализуемом товаре [03:03:09]line ИТОГО: 69.00 [03:03:09]line НСП 1% : 0.61 [03:03:09]line НДС 12% : 7.33 [03:03:09]line Наличными: 69.00 [03:03:09]line Безнал.: 0.00 [03:03:09]line Место: АЗС № 80 "Партнер Нефть" [03:03:09]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [03:03:09]line СНО: Общий режим [03:03:09]line Чек 9 23.10.2024 03:03 [03:03:09]line Смена: 491 ФФД: 1.0 [03:03:09]line ЗНМ: 0300000090 [03:03:09]line РНМ: 0000000000097022 [03:03:09]line Версия ККМ: 001 [03:03:09]line ФМ: 0000000000875000 [03:03:09]line ФД: 50264 [03:03:09]line ФПД: 42283727002324 [03:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030308&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50264&fm=42283727002324&tin=02508201610067®Number=0000000000097022&sum=6900 [03:03:09]line 0 [03:03:09]written 0, free lines is 4095 [03:03:09]OFD Sender: Processing packet 50264 [packets to send 7, broken 6] [03:03:09]ProducePacketName [03:03:09]name=ofd_packets/00050264 [03:03:09]OFD Sender: To server: pG, [03:03:09]CommunicateWithHost lk.salyk.kg:30040 [03:03:09]ConnectInit lk.salyk.kg [03:03:09]Connected sock=10 [03:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 F2 B0 32 01 67 76 5A 03 01 00 03 00 26 01 1E 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C4 00 00 35 04 06 00 26 74 F2 87 1A D4 A7 73 29 2D 1D D1 14 89 [03:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AC BB 47 00 6A 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C4 00 00 F4 03 04 00 04 13 18 67 B6 04 01 00 00 86 47 26 67 1E 2E E7 64 [03:03:09]CommunicateWithHost err = 0 [03:03:09]CheckOFDResponse [03:03:09]1017 (14) - 77093643461234 [03:03:09]1041 (16) - 0000000000875000 [03:03:09]1040 (4) - 50264 [03:03:09]1012 (4) - 22.10.2024 21:03 [03:03:09]1206 (1) - 0 [03:03:09]OFD Sender: Remove packet 50264 [03:03:09]ProducePacketName [03:03:09]name=ofd_packets/00050264 [03:03:09]NVStorageDeleteData [03:03:09]Write to MH i2c: 01 00 00 FD 03 00 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 07 00 [03:03:09]MH_I2C_Read... [03:03:09]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 0F 0D 23 [03:03:09]RasterBufferAndPrint [03:03:09]line [03:03:09]line [03:03:09]line [03:03:09]line [03:03:09]line [03:03:09]written 0, free lines is 3349 [03:03:09]process_action close_receipt done [03:03:09]requested_data is exist [03:03:09]produce_requested_data [03:03:09]requested_item fm.sn is exist - process it [03:03:09]wFMCommunicate request_size=4 [03:03:09]MH_SAM_APDU [03:03:09]CAPDU: 80 11 00 00 [03:03:09]Write to MH i2c: E2 08 00 04 04 80 11 00 00 00 00 00 00 82 [03:03:09]Write i2c OK [03:03:09]MH_I2C_Read... [03:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:10]Read from MH i2c: E2 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 17 00 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 17 00 04 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C9 [03:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [03:03:10]wFMCommunicate OK [03:03:10]requested_item fd.num is exist - process it [03:03:10]SAM_PROTO_GetFieldsCounters [03:03:10]wFMCommunicate request_size=4 [03:03:10]MH_SAM_APDU [03:03:10]CAPDU: 80 13 00 00 [03:03:10]Write to MH i2c: E2 08 00 05 04 80 13 00 00 00 00 00 00 85 [03:03:10]Write i2c OK [03:03:10]MH_I2C_Read... [03:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:10]Read from MH i2c: E2 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 62 00 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 62 00 05 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 58 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [03:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 58 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:03:10]wFMCommunicate OK [03:03:10]SAM_PROTO_GetFieldsCounters done [03:03:10]requested_item shift.num is exist - process it [03:03:10]requested_item shift.opened is exist - process it [03:03:10]req_shift_opened [03:03:10]FM_GetShiftState [03:03:10]SAM_PROTO_GetShiftState [03:03:10]wFMCommunicate request_size=4 [03:03:10]MH_SAM_APDU [03:03:10]CAPDU: 80 13 01 00 [03:03:10]Write to MH i2c: E2 08 00 06 04 80 13 01 00 00 00 00 00 87 [03:03:10]Write i2c OK [03:03:10]MH_I2C_Read... [03:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:10]Read from MH i2c: E2 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 0E 00 [03:03:10]MH_I2C_Read... [03:03:10]Read from MH i2c: E2 0E 00 06 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D3 [03:03:10]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [03:03:10]wFMCommunicate OK [03:03:10]SAM_PROTO_GetShiftState done [03:03:10]FM_GetShiftState done [03:03:10]req_shift_opened done [03:03:10]requested_item shift.open_date is exist - process it [03:03:10]req_shift_open_date [03:03:10]req_shift_open_date done [03:03:10]produce_requested_data done [03:03:10]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50264,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [03:03:10]process_action_free close_receipt [03:03:10]json_value_free [03:03:10]json_value_free done [03:03:10]process_json_proto returns [03:03:10]Send response to host [03:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50264,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [03:03:10]free response buf [03:03:10]execute_script done [03:03:10]execute_script returns [03:03:10]free content buf [03:03:10]Sock 9.Close socket [03:03:10]Sock 9.Thread stoped [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:03:55]accept exits with 7 [03:03:55]New connection [03:03:55]New thread 3067161956 created [03:03:55]Thread 3067305316 joined [03:03:55]Waiting for new connection... [03:03:55] Sock 7.Parse request [03:03:55]Sock 7.Check first char [03:03:55]Sock 7.First char is OK [03:03:55]request: POST /json_proto HTTP/1.0 [03:03:55]Method: POST [03:03:55]URL: /json_proto [03:03:55]Method is POST - this is cgi request [03:03:55]url: /json_proto [03:03:55]query_string will be loaded in cgi processing [03:03:55]execute_cgi json_proto POST (null) [03:03:55]execute_cgi path=json_proto method=POST [03:03:55]POST find Content-Length [03:03:55]Host: 172.17.49.196:8080 [03:03:55]Content-Length: 773 [03:03:55]Content-Type: application/json [03:03:55] [03:03:55]POST finish read [03:03:55]Found Content-Length = 773 [03:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164171", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "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: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:55]execute_script... [03:03: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)164171", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "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: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:55]POST & json_proto [03:03:55]process_json_proto [03:03:55]json parsed OK: [03:03:55]protocol is kg_v1.0 [03:03:55]action value=close_receipt [03:03:55]process_action close_receipt [03:03:55]cmd_close_receipt [03:03:55]MH_GetDate [03:03:55]Write to MH i2c: F0 00 00 07 04 FA [03:03:55]Write i2c OK [03:03:55]MH_I2C_Read... [03:03:55]Read from MH i2c: F0 [03:03:55]MH_I2C_Read... [03:03:55]Read from MH i2c: F0 09 00 [03:03:55]MH_I2C_Read... [03:03:55]Read from MH i2c: F0 09 00 07 04 00 9C 67 18 67 BD 3B 11 67 F5 [03:03:55]GetLastDocTimeStamp 1729652588 [03:03:55]current date 1729652636 [03:03:55]FM_GetShiftState [03:03:55]SAM_PROTO_GetShiftState [03:03:55]wFMCommunicate request_size=4 [03:03:55]MH_SAM_APDU [03:03:55]CAPDU: 80 13 01 00 [03:03:55]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [03:03:55]Write i2c OK [03:03:55]MH_I2C_Read... [03:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:55]Read from MH i2c: E2 [03:03:55]MH_I2C_Read... [03:03:55]Read from MH i2c: E2 0E 00 [03:03:55]MH_I2C_Read... [03:03:55]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D5 [03:03:55]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [03:03:55]wFMCommunicate OK [03:03:55]SAM_PROTO_GetShiftState done [03:03:55]FM_GetShiftState done [03:03:55]opened in 1729642370 [03:03:55]opened+sec_in_day 1729728770 [03:03:55]quantity*price = 9500 [03:03:55]sum+1 = 9501 [03:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 10 23.10.2024 03:03 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50265 ФПД: 92419122146162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030356&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50265&fm=92419122146162&tin=02508201610067®Number=0000000000097022&sum=9500 0 [03:03:56]StoreToDocumentArchive [03:03:56]shift 491 fd 50265 [03:03:56]save to /storage/0491/doc_00050265 [03:03:56]save last doc name /storage/0491/doc_00050265 to /storage/kkm_last_doc_name [03:03:56]save OK [03:03:56]Clear old archive folders... [03:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=281 [03:03:56]tlvbuf is 00238520 [03:03:56]SAM_PROTO_ClearQueue [03:03:56]wFMCommunicate request_size=4 [03:03:56]MH_SAM_APDU [03:03:56]CAPDU: 80 09 00 00 [03:03:56]Write to MH i2c: E2 08 00 15 04 80 09 00 00 00 00 00 00 8B [03:03:56]Write i2c OK [03:03:56]MH_I2C_Read... [03:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:56]Read from MH i2c: E2 [03:03:56]MH_I2C_Read... [03:03:56]Read from MH i2c: E2 03 00 [03:03:56]MH_I2C_Read... [03:03:56]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [03:03:56]RAPDU: 90 00 [03:03:56]wFMCommunicate OK [03:03:56]SAM_PROTO_ClearQueue done [03:03:56]KKMCreateOFDPacket [03:03:56]OFDProtocolAddRootSTLVToBuf [03:03:56]FM_MakeSignedData [03:03:56]FM_MakeSignedData [03:03:56]SAM_PROTO_SignData [03:03:56]wFMCommunicate request_size=4 [03:03:56]MH_SAM_APDU [03:03:56]CAPDU: 80 0D 01 02 [03:03:56]Write to MH i2c: E2 08 00 16 04 80 0D 01 02 00 00 00 00 93 [03:03:56]Write i2c OK [03:03:56]MH_I2C_Read... [03:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:56]Read from MH i2c: E2 [03:03:56]MH_I2C_Read... [03:03:56]Read from MH i2c: E2 03 00 [03:03:56]MH_I2C_Read... [03:03:56]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [03:03:56]RAPDU: 90 00 [03:03:56]wFMCommunicate OK [03:03:56]wFMCommunicate request_size=255 [03:03:56]MH_SAM_APDU [03:03:56]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 0A 00 00 00 F4 03 04 00 9C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 [03:03:56]Write to MH i2c: E2 02 01 17 04 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 0A 00 00 00 F4 03 04 00 9C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 E3 [03:03:56]Write i2c OK [03:03:56]MH_I2C_Read... [03:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:57]Read from MH i2c: E2 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 03 00 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [03:03:57]RAPDU: 90 00 [03:03:57]wFMCommunicate OK [03:03:57]wFMCommunicate request_size=40 [03:03:57]MH_SAM_APDU [03:03:57]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C4 00 00 35 04 06 00 54 0E 00 F2 2B 72 [03:03:57]Write to MH i2c: E2 2B 00 18 04 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C4 00 00 35 04 06 00 54 0E 00 F2 2B 72 00 00 55 [03:03:57]Write i2c OK [03:03:57]MH_I2C_Read... [03:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:57]Read from MH i2c: E2 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 03 00 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [03:03:57]RAPDU: 90 00 [03:03:57]wFMCommunicate OK [03:03:57]wFMCommunicate request_size=4 [03:03:57]MH_SAM_APDU [03:03:57]CAPDU: 80 0D 03 02 [03:03:57]Write to MH i2c: E2 08 00 19 04 80 0D 03 02 00 00 00 00 98 [03:03:57]Write i2c OK [03:03:57]MH_I2C_Read... [03:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:57]Read from MH i2c: E2 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 0B 00 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 0B 00 19 04 00 FC 69 C0 03 91 F9 6F 52 90 00 0C [03:03:57]RAPDU: FC 69 C0 03 91 F9 6F 52 90 00 [03:03:57]wFMCommunicate OK [03:03:57]SAM_PROTO_SignData done [03:03:57]FM_MakeSignedData done [03:03:57]CreateOFDProtocolMessage [03:03:57]wFMCommunicate request_size=4 [03:03:57]MH_SAM_APDU [03:03:57]CAPDU: 80 11 00 00 [03:03:57]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [03:03:57]Write i2c OK [03:03:57]MH_I2C_Read... [03:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:57]Read from MH i2c: E2 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 17 00 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DF [03:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [03:03:57]wFMCommunicate OK [03:03:57]CreateOFDProtocolMessage done [03:03:57]OFDSenderStorePacket 50265 [03:03:57]StoreOFDPacket docnum=50265 [03:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2D 01 00 00 A4 C8 25 01 01 A8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 0A 00 00 00 F4 03 04 00 9C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C4 00 00 35 04 06 00 54 0E 00 F2 2B 72 FC 69 C0 03 91 F9 6F 52 [03:03:57]CheckFolder [03:03:57]dirname=/storage/ofd_packets [03:03:57]CheckFolder done [03:03:57]ProducePacketName [03:03:57]name=ofd_packets/00050265 [03:03:57]NVStorageSaveData ofd_packets/00050265 [03:03:57]File name is /storage/ofd_packets/00050265 [03:03:57]Write 331 bytes [03:03:57]NVStorageSaveData done [03:03:57]OFDSenderStorePacket done [03:03:57]KKMCreateOFDPacket done [03:03:57]NVStorageSaveData kkm_last_timestamp [03:03:57]File name is /storage/kkm_last_timestamp [03:03:57]Write 4 bytes [03:03:57]NVStorageSaveData done [03:03:57]ExternCall_PrintAddStr [03:03:57]wPrintStart [03:03:57]Write to MH i2c: 01 00 00 1B 04 1F [03:03:57]Write i2c OK [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: 01 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: 01 07 00 [03:03:57]MH_I2C_Read... [03:03:57]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [03:03:57]RasterBufferAndPrint [03:03:57]line Счет N : (3)164171 [03:03:57]line ИНН: 02508201610067 [03:03:57]line Контрольно-Кассовый Чек [03:03:57]line ПРОДАЖА [03:03:57]line Товар: 4700000483259 [03:03:57]line Напиток Nitro Fresh Мохито [03:03:57]line 1.000 * 95.00 [03:03:57]line = 95.00 [03:03:57]line НДС 12% НСП 1% [03:03:57]line > о реализуемом товаре [03:03:57]line ИТОГО: 95.00 [03:03:57]line НСП 1% : 0.84 [03:03:57]line НДС 12% : 10.09 [03:03:57]line Наличными: 0.00 [03:03:57]line Безнал.: 95.00 [03:03:57]line Место: АЗС № 80 "Партнер Нефть" [03:03:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [03:03:57]line СНО: Общий режим [03:03:57]line Чек 10 23.10.2024 03:03 [03:03:57]line Смена: 491 ФФД: 1.0 [03:03:57]line ЗНМ: 0300000090 [03:03:57]line РНМ: 0000000000097022 [03:03:57]line Версия ККМ: 001 [03:03:57]line Платежная система: Mbank [03:03:57]line ФМ: 0000000000875000 [03:03:57]line ФД: 50265 [03:03:57]line ФПД: 92419122146162 [03:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T030356&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50265&fm=92419122146162&tin=02508201610067®Number=0000000000097022&sum=9500 [03:03:57]line 0 [03:03:57]OFD Sender: Processing packet 50265 [packets to send 7, broken 6] [03:03:57]ProducePacketName [03:03:57]name=ofd_packets/00050265 [03:03:57]OFD Sender: To server: pG, [03:03:57]CommunicateWithHost lk.salyk.kg:30040 [03:03:57]ConnectInit lk.salyk.kg [03:03:57]written 0, free lines is 4095 [03:03:57]Connected sock=10 [03:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2D 01 00 00 A4 C8 25 01 01 A8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 0A 00 00 00 F4 03 04 00 9C 67 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C4 00 00 35 04 06 00 54 0E 00 F2 2B 72 FC 69 C0 03 91 F9 6F 52 [03:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 88 1E 47 00 5D AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C4 00 00 F4 03 04 00 35 13 18 67 B6 04 01 00 00 3E A2 79 6B E0 DC 4A 3B [03:03:58]CommunicateWithHost err = 0 [03:03:58]CheckOFDResponse [03:03:58]1017 (14) - 77093643461234 [03:03:58]1041 (16) - 0000000000875000 [03:03:58]1040 (4) - 50265 [03:03:58]1012 (4) - 22.10.2024 21:03 [03:03:58]1206 (1) - 0 [03:03:58]OFD Sender: Remove packet 50265 [03:03:58]ProducePacketName [03:03:58]name=ofd_packets/00050265 [03:03:58]NVStorageDeleteData [03:03:58]Write to MH i2c: 01 00 00 44 04 48 [03:03:58]Write i2c OK [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: 01 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: 01 07 00 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 14 0D 70 [03:03:58]RasterBufferAndPrint [03:03:58]line [03:03:58]line [03:03:58]line [03:03:58]line [03:03:58]line [03:03:58]written 0, free lines is 3354 [03:03:58]process_action close_receipt done [03:03:58]requested_data is exist [03:03:58]produce_requested_data [03:03:58]requested_item fm.sn is exist - process it [03:03:58]wFMCommunicate request_size=4 [03:03:58]MH_SAM_APDU [03:03:58]CAPDU: 80 11 00 00 [03:03:58]Write to MH i2c: E2 08 00 4B 04 80 11 00 00 00 00 00 00 C9 [03:03:58]Write i2c OK [03:03:58]MH_I2C_Read... [03:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:58]Read from MH i2c: E2 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 17 00 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 17 00 4B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 10 [03:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [03:03:58]wFMCommunicate OK [03:03:58]requested_item fd.num is exist - process it [03:03:58]SAM_PROTO_GetFieldsCounters [03:03:58]wFMCommunicate request_size=4 [03:03:58]MH_SAM_APDU [03:03:58]CAPDU: 80 13 00 00 [03:03:58]Write to MH i2c: E2 08 00 4C 04 80 13 00 00 00 00 00 00 CC [03:03:58]Write i2c OK [03:03:58]MH_I2C_Read... [03:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:58]Read from MH i2c: E2 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 62 00 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 62 00 4C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 59 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [03:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 59 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:03:58]wFMCommunicate OK [03:03:58]SAM_PROTO_GetFieldsCounters done [03:03:58]requested_item shift.num is exist - process it [03:03:58]requested_item shift.opened is exist - process it [03:03:58]req_shift_opened [03:03:58]FM_GetShiftState [03:03:58]SAM_PROTO_GetShiftState [03:03:58]wFMCommunicate request_size=4 [03:03:58]MH_SAM_APDU [03:03:58]CAPDU: 80 13 01 00 [03:03:58]Write to MH i2c: E2 08 00 4D 04 80 13 01 00 00 00 00 00 CE [03:03:58]Write i2c OK [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 [03:03:58]MH_I2C_Read... [03:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:58]Read from MH i2c: E2 0E 00 [03:03:58]MH_I2C_Read... [03:03:58]Read from MH i2c: E2 0E 00 4D 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1A [03:03:58]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [03:03:58]wFMCommunicate OK [03:03:58]SAM_PROTO_GetShiftState done [03:03:58]FM_GetShiftState done [03:03:58]req_shift_opened done [03:03:58]requested_item shift.open_date is exist - process it [03:03:58]req_shift_open_date [03:03:58]req_shift_open_date done [03:03:58]produce_requested_data done [03:03:58]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50265,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [03:03:58]process_action_free close_receipt [03:03:58]json_value_free [03:03:58]json_value_free done [03:03:58]process_json_proto returns [03:03:58]Send response to host [03:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50265,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [03:03:58]free response buf [03:03:58]execute_script done [03:03:58]execute_script returns [03:03:58]free content buf [03:03:58]Sock 7.Close socket [03:03:58]Sock 7.Thread stoped [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45: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:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:30]accept exits with 9 [04:28:30]New connection [04:28:30]New thread 3067305316 created [04:28:30]Thread 3067161956 joined [04:28:30]Waiting for new connection... [04:28:30] Sock 9.Parse request [04:28:30]Sock 9.Check first char [04:28:30]Sock 9.First char is OK [04:28:30]request: POST /json_proto HTTP/1.0 [04:28:30]Method: POST [04:28:30]URL: /json_proto [04:28:30]Method is POST - this is cgi request [04:28:30]url: /json_proto [04:28:30]query_string will be loaded in cgi processing [04:28:30]execute_cgi json_proto POST (null) [04:28:30]execute_cgi path=json_proto method=POST [04:28:30]POST find Content-Length [04:28:30]Host: 172.17.49.196:8080 [04:28:30]Content-Length: 668 [04:28:30]Content-Type: application/json [04:28:30] [04:28:30]POST finish read [04:28:30]Found Content-Length = 668 [04:28:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164172", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\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" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:30]execute_script... [04:28: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)164172", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\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" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:30]POST & json_proto [04:28:30]process_json_proto [04:28:30]json parsed OK: [04:28:30]protocol is kg_v1.0 [04:28:30]action value=close_receipt [04:28:30]process_action close_receipt [04:28:30]cmd_close_receipt [04:28:30]MH_GetDate [04:28:30]Write to MH i2c: F0 00 00 4E 04 41 [04:28:30]Write i2c OK [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: F0 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: F0 09 00 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: F0 09 00 4E 04 00 6F 7B 18 67 BD 3B 11 67 23 [04:28:30]GetLastDocTimeStamp 1729652636 [04:28:30]current date 1729657711 [04:28:30]FM_GetShiftState [04:28:30]SAM_PROTO_GetShiftState [04:28:30]wFMCommunicate request_size=4 [04:28:30]MH_SAM_APDU [04:28:30]CAPDU: 80 13 01 00 [04:28:30]Write to MH i2c: E2 08 00 4F 04 80 13 01 00 00 00 00 00 D0 [04:28:30]Write i2c OK [04:28:30]MH_I2C_Read... [04:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:30]Read from MH i2c: E2 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: E2 0E 00 [04:28:30]MH_I2C_Read... [04:28:30]Read from MH i2c: E2 0E 00 4F 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1C [04:28:30]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [04:28:30]wFMCommunicate OK [04:28:30]SAM_PROTO_GetShiftState done [04:28:30]FM_GetShiftState done [04:28:30]opened in 1729642370 [04:28:30]opened+sec_in_day 1729728770 [04:28:30]quantity*price = 5900 [04:28:30]sum+1 = 5901 [04:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 11 23.10.2024 04:28 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50266 ФПД: 130155566632935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042831&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50266&fm=130155566632935&tin=02508201610067®Number=0000000000097022&sum=5900 0 [04:28:31]StoreToDocumentArchive [04:28:31]shift 491 fd 50266 [04:28:31]save to /storage/0491/doc_00050266 [04:28:31]save last doc name /storage/0491/doc_00050266 to /storage/kkm_last_doc_name [04:28:31]save OK [04:28:31]Clear old archive folders... [04:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=283 [04:28:31]tlvbuf is 0022F520 [04:28:31]SAM_PROTO_ClearQueue [04:28:31]wFMCommunicate request_size=4 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 09 00 00 [04:28:31]Write to MH i2c: E2 08 00 5C 04 80 09 00 00 00 00 00 00 D2 [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:31]Read from MH i2c: E2 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 03 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [04:28:31]RAPDU: 90 00 [04:28:31]wFMCommunicate OK [04:28:31]SAM_PROTO_ClearQueue done [04:28:31]KKMCreateOFDPacket [04:28:31]OFDProtocolAddRootSTLVToBuf [04:28:31]FM_MakeSignedData [04:28:31]FM_MakeSignedData [04:28:31]SAM_PROTO_SignData [04:28:31]wFMCommunicate request_size=4 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 0D 01 02 [04:28:31]Write to MH i2c: E2 08 00 5D 04 80 0D 01 02 00 00 00 00 DA [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:31]Read from MH i2c: E2 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 03 00 [04:28:31]MH_I2C_Read... [04:28:31]Read from MH i2c: E2 03 00 5D 04 00 90 00 D5 [04:28:31]RAPDU: 90 00 [04:28:31]wFMCommunicate OK [04:28:31]wFMCommunicate request_size=255 [04:28:31]MH_SAM_APDU [04:28:31]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 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 0B 00 00 00 F4 03 04 00 6F 7B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 [04:28:31]Write to MH i2c: E2 02 01 5E 04 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 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 0B 00 00 00 F4 03 04 00 6F 7B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 00 00 93 [04:28:31]Write i2c OK [04:28:31]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 03 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [04:28:32]RAPDU: 90 00 [04:28:32]wFMCommunicate OK [04:28:32]wFMCommunicate request_size=42 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C4 00 00 35 04 06 00 76 60 34 50 8F E7 [04:28:32]Write to MH i2c: E2 2D 00 5F 04 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C4 00 00 35 04 06 00 76 60 34 50 8F E7 00 00 94 [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 03 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [04:28:32]RAPDU: 90 00 [04:28:32]wFMCommunicate OK [04:28:32]wFMCommunicate request_size=4 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 0D 03 02 [04:28:32]Write to MH i2c: E2 08 00 60 04 80 0D 03 02 00 00 00 00 DF [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 0B 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 0B 00 60 04 00 2D 21 6B 43 28 44 42 9A 90 00 24 [04:28:32]RAPDU: 2D 21 6B 43 28 44 42 9A 90 00 [04:28:32]wFMCommunicate OK [04:28:32]SAM_PROTO_SignData done [04:28:32]FM_MakeSignedData done [04:28:32]CreateOFDProtocolMessage [04:28:32]wFMCommunicate request_size=4 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 11 00 00 [04:28:32]Write to MH i2c: E2 08 00 61 04 80 11 00 00 00 00 00 00 DF [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 17 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 17 00 61 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 26 [04:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [04:28:32]wFMCommunicate OK [04:28:32]CreateOFDProtocolMessage done [04:28:32]OFDSenderStorePacket 50266 [04:28:32]StoreOFDPacket docnum=50266 [04:28:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2F 01 00 00 10 74 27 01 DE A8 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 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 0B 00 00 00 F4 03 04 00 6F 7B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C4 00 00 35 04 06 00 76 60 34 50 8F E7 2D 21 6B 43 28 44 42 9A [04:28:32]CheckFolder [04:28:32]dirname=/storage/ofd_packets [04:28:32]CheckFolder done [04:28:32]ProducePacketName [04:28:32]name=ofd_packets/00050266 [04:28:32]NVStorageSaveData ofd_packets/00050266 [04:28:32]File name is /storage/ofd_packets/00050266 [04:28:32]Write 333 bytes [04:28:32]NVStorageSaveData done [04:28:32]OFDSenderStorePacket done [04:28:32]KKMCreateOFDPacket done [04:28:32]NVStorageSaveData kkm_last_timestamp [04:28:32]File name is /storage/kkm_last_timestamp [04:28:32]Write 4 bytes [04:28:32]NVStorageSaveData done [04:28:32]ExternCall_PrintAddStr [04:28:32]wPrintStart [04:28:32]Write to MH i2c: 01 00 00 62 04 66 [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: 01 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: 01 07 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 FF 0F 7B [04:28:32]RasterBufferAndPrint [04:28:32]line Счет N : (3)164172 [04:28:32]line ИНН: 02508201610067 [04:28:32]line Контрольно-Кассовый Чек [04:28:32]line ПРОДАЖА [04:28:32]line Товар: 4011100977624 [04:28:32]line Шок Батончик Баунти 55г [04:28:32]line 1.000 * 59.00 [04:28:32]line = 59.00 [04:28:32]line НДС 12% НСП 1% [04:28:32]line > о реализуемом товаре [04:28:32]line ИТОГО: 59.00 [04:28:32]line НСП 1% : 0.52 [04:28:32]line НДС 12% : 6.26 [04:28:32]line Наличными: 59.00 [04:28:32]line Безнал.: 0.00 [04:28:32]line Место: АЗС № 80 "Партнер Нефть" [04:28:32]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [04:28:32]line СНО: Общий режим [04:28:32]line Чек 11 23.10.2024 04:28 [04:28:32]line Смена: 491 ФФД: 1.0 [04:28:32]line ЗНМ: 0300000090 [04:28:32]line РНМ: 0000000000097022 [04:28:32]line Версия ККМ: 001 [04:28:32]line ФМ: 0000000000875000 [04:28:32]line ФД: 50266 [04:28:32]line ФПД: 130155566632935 [04:28:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042831&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50266&fm=130155566632935&tin=02508201610067®Number=0000000000097022&sum=5900 [04:28:32]line 0 [04:28:32]OFD Sender: Processing packet 50266 [packets to send 7, broken 6] [04:28:32]ProducePacketName [04:28:32]name=ofd_packets/00050266 [04:28:32]OFD Sender: To server: pG, [04:28:32]CommunicateWithHost lk.salyk.kg:30040 [04:28:32]ConnectInit lk.salyk.kg [04:28:32]written 0, free lines is 4095 [04:28:32]Connected sock=10 [04:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2F 01 00 00 10 74 27 01 DE A8 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 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 0B 00 00 00 F4 03 04 00 6F 7B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C4 00 00 35 04 06 00 76 60 34 50 8F E7 2D 21 6B 43 28 44 42 9A [04:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7C 85 47 00 70 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C4 00 00 F4 03 04 00 08 27 18 67 B6 04 01 00 00 41 CF 72 28 6E 15 F8 FE [04:28:32]CommunicateWithHost err = 0 [04:28:32]CheckOFDResponse [04:28:32]1017 (14) - 77093643461234 [04:28:32]1041 (16) - 0000000000875000 [04:28:32]1040 (4) - 50266 [04:28:32]1012 (4) - 22.10.2024 22:28 [04:28:32]1206 (1) - 0 [04:28:32]OFD Sender: Remove packet 50266 [04:28:32]ProducePacketName [04:28:32]name=ofd_packets/00050266 [04:28:32]NVStorageDeleteData [04:28:33]Write to MH i2c: 01 00 00 8A 04 8E [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: 01 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: 01 07 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 19 0D BB [04:28:33]RasterBufferAndPrint [04:28:33]line [04:28:33]line [04:28:33]line [04:28:33]line [04:28:33]line [04:28:33]written 0, free lines is 3359 [04:28:33]process_action close_receipt done [04:28:33]requested_data is exist [04:28:33]produce_requested_data [04:28:33]requested_item fm.sn is exist - process it [04:28:33]wFMCommunicate request_size=4 [04:28:33]MH_SAM_APDU [04:28:33]CAPDU: 80 11 00 00 [04:28:33]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:33]Read from MH i2c: E2 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 17 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 56 [04:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [04:28:33]wFMCommunicate OK [04:28:33]requested_item fd.num is exist - process it [04:28:33]SAM_PROTO_GetFieldsCounters [04:28:33]wFMCommunicate request_size=4 [04:28:33]MH_SAM_APDU [04:28:33]CAPDU: 80 13 00 00 [04:28:33]Write to MH i2c: E2 08 00 92 04 80 13 00 00 00 00 00 00 12 [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:33]Read from MH i2c: E2 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 62 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 62 00 92 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [04:28:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:28:33]wFMCommunicate OK [04:28:33]SAM_PROTO_GetFieldsCounters done [04:28:33]requested_item shift.num is exist - process it [04:28:33]requested_item shift.opened is exist - process it [04:28:33]req_shift_opened [04:28:33]FM_GetShiftState [04:28:33]SAM_PROTO_GetShiftState [04:28:33]wFMCommunicate request_size=4 [04:28:33]MH_SAM_APDU [04:28:33]CAPDU: 80 13 01 00 [04:28:33]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:33]Read from MH i2c: E2 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 0E 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 60 [04:28:33]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [04:28:33]wFMCommunicate OK [04:28:33]SAM_PROTO_GetShiftState done [04:28:33]FM_GetShiftState done [04:28:33]req_shift_opened done [04:28:33]requested_item shift.open_date is exist - process it [04:28:33]req_shift_open_date [04:28:33]req_shift_open_date done [04:28:33]produce_requested_data done [04:28:33]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50266,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [04:28:33]process_action_free close_receipt [04:28:33]json_value_free [04:28:33]json_value_free done [04:28:33]process_json_proto returns [04:28:33]Send response to host [04:28:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50266,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [04:28:33]free response buf [04:28:33]execute_script done [04:28:33]execute_script returns [04:28:33]free content buf [04:28:33]Sock 9.Close socket [04:28:33]Sock 9.Thread stoped [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:33]accept exits with 7 [05:36:33]New connection [05:36:33]New thread 3067161956 created [05:36:33]Thread 3067305316 joined [05:36:33]Waiting for new connection... [05:36:33] Sock 7.Parse request [05:36:33]Sock 7.Check first char [05:36:33]Sock 7.First char is OK [05:36:33]request: POST /json_proto HTTP/1.0 [05:36:33]Method: POST [05:36:33]URL: /json_proto [05:36:33]Method is POST - this is cgi request [05:36:33]url: /json_proto [05:36:33]query_string will be loaded in cgi processing [05:36:33]execute_cgi json_proto POST (null) [05:36:33]execute_cgi path=json_proto method=POST [05:36:33]POST find Content-Length [05:36:33]Host: 172.17.49.196:8080 [05:36:33]Content-Length: 751 [05:36:33]Content-Type: application/json [05:36:33] [05:36:33]POST finish read [05:36:33]Found Content-Length = 751 [05:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164173", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.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: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:33]execute_script... [05:36:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164173", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.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: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:33]POST & json_proto [05:36:33]process_json_proto [05:36:33]json parsed OK: [05:36:33]protocol is kg_v1.0 [05:36:33]action value=close_receipt [05:36:33]process_action close_receipt [05:36:33]cmd_close_receipt [05:36:33]MH_GetDate [05:36:33]Write to MH i2c: F0 00 00 94 04 87 [05:36:33]Write i2c OK [05:36:33]MH_I2C_Read... [05:36:33]Read from MH i2c: F0 [05:36:33]MH_I2C_Read... [05:36:33]Read from MH i2c: F0 09 00 [05:36:33]MH_I2C_Read... [05:36:33]Read from MH i2c: F0 09 00 94 04 00 62 8B 18 67 BD 3B 11 67 6C [05:36:33]GetLastDocTimeStamp 1729657711 [05:36:33]current date 1729661794 [05:36:33]FM_GetShiftState [05:36:33]SAM_PROTO_GetShiftState [05:36:33]wFMCommunicate request_size=4 [05:36:33]MH_SAM_APDU [05:36:33]CAPDU: 80 13 01 00 [05:36:33]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [05:36:33]Write i2c OK [05:36:33]MH_I2C_Read... [05:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:33]Read from MH i2c: E2 [05:36:33]MH_I2C_Read... [05:36:33]Read from MH i2c: E2 0E 00 [05:36:33]MH_I2C_Read... [05:36:33]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 62 [05:36:33]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [05:36:33]wFMCommunicate OK [05:36:33]SAM_PROTO_GetShiftState done [05:36:33]FM_GetShiftState done [05:36:33]opened in 1729642370 [05:36:33]opened+sec_in_day 1729728770 [05:36:33]quantity*price = 16000 [05:36:33]sum+1 = 16001 [05:36:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 12 23.10.2024 05:36 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50267 ФПД: 25950276277924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053634&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50267&fm=25950276277924&tin=02508201610067®Number=0000000000097022&sum=16000 0 [05:36:34]StoreToDocumentArchive [05:36:34]shift 491 fd 50267 [05:36:34]save to /storage/0491/doc_00050267 [05:36:34]save last doc name /storage/0491/doc_00050267 to /storage/kkm_last_doc_name [05:36:34]save OK [05:36:34]Clear old archive folders... [05:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=276 [05:36:34]tlvbuf is 00236940 [05:36:34]SAM_PROTO_ClearQueue [05:36:34]wFMCommunicate request_size=4 [05:36:34]MH_SAM_APDU [05:36:34]CAPDU: 80 09 00 00 [05:36:34]Write to MH i2c: E2 08 00 A2 04 80 09 00 00 00 00 00 00 18 [05:36:34]Write i2c OK [05:36:34]MH_I2C_Read... [05:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:34]Read from MH i2c: E2 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [05:36:34]RAPDU: 90 00 [05:36:34]wFMCommunicate OK [05:36:34]SAM_PROTO_ClearQueue done [05:36:34]KKMCreateOFDPacket [05:36:34]OFDProtocolAddRootSTLVToBuf [05:36:34]FM_MakeSignedData [05:36:34]FM_MakeSignedData [05:36:34]SAM_PROTO_SignData [05:36:34]wFMCommunicate request_size=4 [05:36:34]MH_SAM_APDU [05:36:34]CAPDU: 80 0D 01 02 [05:36:34]Write to MH i2c: E2 08 00 A3 04 80 0D 01 02 00 00 00 00 20 [05:36:34]Write i2c OK [05:36:34]MH_I2C_Read... [05:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:34]Read from MH i2c: E2 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [05:36:34]RAPDU: 90 00 [05:36:34]wFMCommunicate OK [05:36:34]wFMCommunicate request_size=255 [05:36:34]MH_SAM_APDU [05:36:34]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 62 8B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [05:36:34]Write to MH i2c: E2 02 01 A4 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 62 8B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 59 [05:36:34]Write i2c OK [05:36:34]MH_I2C_Read... [05:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:34]Read from MH i2c: E2 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 [05:36:34]MH_I2C_Read... [05:36:34]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [05:36:34]RAPDU: 90 00 [05:36:34]wFMCommunicate OK [05:36:34]wFMCommunicate request_size=35 [05:36:34]MH_SAM_APDU [05:36:34]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C4 00 00 35 04 06 00 17 9A 04 FF D6 A4 [05:36:34]Write to MH i2c: E2 26 00 A5 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C4 00 00 35 04 06 00 17 9A 04 FF D6 A4 00 00 57 [05:36:34]Write i2c OK [05:36:34]MH_I2C_Read... [05:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:35]Read from MH i2c: E2 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 03 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [05:36:35]RAPDU: 90 00 [05:36:35]wFMCommunicate OK [05:36:35]wFMCommunicate request_size=4 [05:36:35]MH_SAM_APDU [05:36:35]CAPDU: 80 0D 03 02 [05:36:35]Write to MH i2c: E2 08 00 A6 04 80 0D 03 02 00 00 00 00 25 [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:35]Read from MH i2c: E2 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 0B 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 0B 00 A6 04 00 F0 C1 31 DA 45 08 AE 1C 90 00 F9 [05:36:35]RAPDU: F0 C1 31 DA 45 08 AE 1C 90 00 [05:36:35]wFMCommunicate OK [05:36:35]SAM_PROTO_SignData done [05:36:35]FM_MakeSignedData done [05:36:35]CreateOFDProtocolMessage [05:36:35]wFMCommunicate request_size=4 [05:36:35]MH_SAM_APDU [05:36:35]CAPDU: 80 11 00 00 [05:36:35]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:35]Read from MH i2c: E2 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 17 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6C [05:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:36:35]wFMCommunicate OK [05:36:35]CreateOFDProtocolMessage done [05:36:35]OFDSenderStorePacket 50267 [05:36:35]StoreOFDPacket docnum=50267 [05:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 4E 22 20 01 F9 A6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 62 8B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C4 00 00 35 04 06 00 17 9A 04 FF D6 A4 F0 C1 31 DA 45 08 AE 1C [05:36:35]CheckFolder [05:36:35]dirname=/storage/ofd_packets [05:36:35]CheckFolder done [05:36:35]ProducePacketName [05:36:35]name=ofd_packets/00050267 [05:36:35]NVStorageSaveData ofd_packets/00050267 [05:36:35]File name is /storage/ofd_packets/00050267 [05:36:35]Write 326 bytes [05:36:35]NVStorageSaveData done [05:36:35]OFDSenderStorePacket done [05:36:35]KKMCreateOFDPacket done [05:36:35]NVStorageSaveData kkm_last_timestamp [05:36:35]File name is /storage/kkm_last_timestamp [05:36:35]Write 4 bytes [05:36:35]NVStorageSaveData done [05:36:35]ExternCall_PrintAddStr [05:36:35]wPrintStart [05:36:35]Write to MH i2c: 01 00 00 A8 04 AC [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 07 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [05:36:35]RasterBufferAndPrint [05:36:35]line Счет N : (3)164173 [05:36:35]line ИНН: 02508201610067 [05:36:35]line Контрольно-Кассовый Чек [05:36:35]line ПРОДАЖА [05:36:35]line Товар: 48742245 [05:36:35]line Сигареты Parliament Silver Blue [05:36:35]line 1.000 * 160.00 [05:36:35]line = 160.00 [05:36:35]line НДС 12% НСП 1% [05:36:35]line > о реализуемом товаре [05:36:35]line ИТОГО: 160.00 [05:36:35]line НСП 1% : 1.42 [05:36:35]line НДС 12% : 16.99 [05:36:35]line Наличными: 0.00 [05:36:35]line Безнал.: 160.00 [05:36:35]line Место: АЗС № 80 "Партнер Нефть" [05:36:35]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [05:36:35]line СНО: Общий режим [05:36:35]line Чек 12 23.10.2024 05:36 [05:36:35]line Смена: 491 ФФД: 1.0 [05:36:35]line ЗНМ: 0300000090 [05:36:35]line РНМ: 0000000000097022 [05:36:35]line Версия ККМ: 001 [05:36:35]line Платежная система: Mbank [05:36:35]line ФМ: 0000000000875000 [05:36:35]line ФД: 50267 [05:36:35]line ФПД: 25950276277924 [05:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T053634&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50267&fm=25950276277924&tin=02508201610067®Number=0000000000097022&sum=16000 [05:36:35]line 0 [05:36:35]OFD Sender: Processing packet 50267 [packets to send 7, broken 6] [05:36:35]ProducePacketName [05:36:35]name=ofd_packets/00050267 [05:36:35]OFD Sender: To server: pG, [05:36:35]CommunicateWithHost lk.salyk.kg:30040 [05:36:35]ConnectInit lk.salyk.kg [05:36:35]written 0, free lines is 4095 [05:36:35]Connected sock=10 [05:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 4E 22 20 01 F9 A6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 62 8B 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C4 00 00 35 04 06 00 17 9A 04 FF D6 A4 F0 C1 31 DA 45 08 AE 1C [05:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E8 CA 47 00 3B C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C4 00 00 F4 03 04 00 FB 36 18 67 B6 04 01 00 00 61 B7 C6 DB 8B 12 AB 34 [05:36:35]CommunicateWithHost err = 0 [05:36:35]CheckOFDResponse [05:36:35]1017 (14) - 77093643461234 [05:36:35]1041 (16) - 0000000000875000 [05:36:35]1040 (4) - 50267 [05:36:35]1012 (4) - 22.10.2024 23:36 [05:36:35]1206 (1) - 0 [05:36:35]OFD Sender: Remove packet 50267 [05:36:35]ProducePacketName [05:36:35]name=ofd_packets/00050267 [05:36:35]NVStorageDeleteData [05:36:35]Write to MH i2c: 01 00 00 D2 04 D6 [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 07 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 F6 0C DF [05:36:35]RasterBufferAndPrint [05:36:35]line [05:36:35]line [05:36:35]line [05:36:35]line [05:36:35]line [05:36:35]written 0, free lines is 3324 [05:36:35]process_action close_receipt done [05:36:35]requested_data is exist [05:36:35]produce_requested_data [05:36:35]requested_item fm.sn is exist - process it [05:36:35]wFMCommunicate request_size=4 [05:36:35]MH_SAM_APDU [05:36:35]CAPDU: 80 11 00 00 [05:36:35]Write to MH i2c: E2 08 00 D9 04 80 11 00 00 00 00 00 00 57 [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:35]Read from MH i2c: E2 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 17 00 [05:36:35]MH_I2C_Read... [05:36:35]Read from MH i2c: E2 17 00 D9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9E [05:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:36:35]wFMCommunicate OK [05:36:35]requested_item fd.num is exist - process it [05:36:35]SAM_PROTO_GetFieldsCounters [05:36:35]wFMCommunicate request_size=4 [05:36:35]MH_SAM_APDU [05:36:35]CAPDU: 80 13 00 00 [05:36:35]Write to MH i2c: E2 08 00 DA 04 80 13 00 00 00 00 00 00 5A [05:36:35]Write i2c OK [05:36:35]MH_I2C_Read... [05:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:36]Read from MH i2c: E2 [05:36:36]MH_I2C_Read... [05:36:36]Read from MH i2c: E2 62 00 [05:36:36]MH_I2C_Read... [05:36:36]Read from MH i2c: E2 62 00 DA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [05:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:36:36]wFMCommunicate OK [05:36:36]SAM_PROTO_GetFieldsCounters done [05:36:36]requested_item shift.num is exist - process it [05:36:36]requested_item shift.opened is exist - process it [05:36:36]req_shift_opened [05:36:36]FM_GetShiftState [05:36:36]SAM_PROTO_GetShiftState [05:36:36]wFMCommunicate request_size=4 [05:36:36]MH_SAM_APDU [05:36:36]CAPDU: 80 13 01 00 [05:36:36]Write to MH i2c: E2 08 00 DB 04 80 13 01 00 00 00 00 00 5C [05:36:36]Write i2c OK [05:36:36]MH_I2C_Read... [05:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:36]Read from MH i2c: E2 [05:36:36]MH_I2C_Read... [05:36:36]Read from MH i2c: E2 0E 00 [05:36:36]MH_I2C_Read... [05:36:36]Read from MH i2c: E2 0E 00 DB 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A8 [05:36:36]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [05:36:36]wFMCommunicate OK [05:36:36]SAM_PROTO_GetShiftState done [05:36:36]FM_GetShiftState done [05:36:36]req_shift_opened done [05:36:36]requested_item shift.open_date is exist - process it [05:36:36]req_shift_open_date [05:36:36]req_shift_open_date done [05:36:36]produce_requested_data done [05:36:36]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50267,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [05:36:36]process_action_free close_receipt [05:36:36]json_value_free [05:36:36]json_value_free done [05:36:36]process_json_proto returns [05:36:36]Send response to host [05:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50267,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [05:36:36]free response buf [05:36:36]execute_script done [05:36:36]execute_script returns [05:36:36]free content buf [05:36:36]Sock 7.Close socket [05:36:36]Sock 7.Thread stoped [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]accept exits with 9 [05:43:21]New connection [05:43:21]New thread 3067305316 created [05:43:21]Thread 3067161956 joined [05:43:21]Waiting for new connection... [05:43:21] Sock 9.Parse request [05:43:21]Sock 9.Check first char [05:43:21]Sock 9.First char is OK [05:43:21]request: POST /json_proto HTTP/1.0 [05:43:21]Method: POST [05:43:21]URL: /json_proto [05:43:21]Method is POST - this is cgi request [05:43:21]url: /json_proto [05:43:21]query_string will be loaded in cgi processing [05:43:21]execute_cgi json_proto POST (null) [05:43:21]execute_cgi path=json_proto method=POST [05:43:21]POST find Content-Length [05:43:21]Host: 172.17.49.196:8080 [05:43:21]Content-Length: 666 [05:43:21]Content-Type: application/json [05:43:21] [05:43:21]POST finish read [05:43:21]Found Content-Length = 666 [05:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164174", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:21]execute_script... [05:43: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)164174", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:43:21]POST & json_proto [05:43:21]process_json_proto [05:43:21]json parsed OK: [05:43:21]protocol is kg_v1.0 [05:43:21]action value=close_receipt [05:43:21]process_action close_receipt [05:43:21]cmd_close_receipt [05:43:21]MH_GetDate [05:43:21]Write to MH i2c: F0 00 00 DC 04 CF [05:43:21]Write i2c OK [05:43:21]MH_I2C_Read... [05:43:21]Read from MH i2c: F0 [05:43:21]MH_I2C_Read... [05:43:21]Read from MH i2c: F0 09 00 [05:43:21]MH_I2C_Read... [05:43:21]Read from MH i2c: F0 09 00 DC 04 00 FA 8C 18 67 BD 3B 11 67 4D [05:43:21]GetLastDocTimeStamp 1729661794 [05:43:21]current date 1729662202 [05:43:21]FM_GetShiftState [05:43:21]SAM_PROTO_GetShiftState [05:43:21]wFMCommunicate request_size=4 [05:43:21]MH_SAM_APDU [05:43:21]CAPDU: 80 13 01 00 [05:43:21]Write to MH i2c: E2 08 00 DD 04 80 13 01 00 00 00 00 00 5E [05:43:21]Write i2c OK [05:43:21]MH_I2C_Read... [05:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:21]Read from MH i2c: E2 [05:43:21]MH_I2C_Read... [05:43:21]Read from MH i2c: E2 0E 00 [05:43:21]MH_I2C_Read... [05:43:21]Read from MH i2c: E2 0E 00 DD 04 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AA [05:43:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [05:43:21]wFMCommunicate OK [05:43:21]SAM_PROTO_GetShiftState done [05:43:21]FM_GetShiftState done [05:43:21]opened in 1729642370 [05:43:21]opened+sec_in_day 1729728770 [05:43:21]quantity*price = 9900 [05:43:21]sum+1 = 9901 [05:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 13 23.10.2024 05:43 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50268 ФПД: 68687991045709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T054322&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50268&fm=68687991045709&tin=02508201610067®Number=0000000000097022&sum=9900 0 [05:43:22]StoreToDocumentArchive [05:43:22]shift 491 fd 50268 [05:43:22]save to /storage/0491/doc_00050268 [05:43:22]save last doc name /storage/0491/doc_00050268 to /storage/kkm_last_doc_name [05:43:22]save OK [05:43:22]Clear old archive folders... [05:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=293 [05:43:22]tlvbuf is 00221DE0 [05:43:22]SAM_PROTO_ClearQueue [05:43:22]wFMCommunicate request_size=4 [05:43:22]MH_SAM_APDU [05:43:22]CAPDU: 80 09 00 00 [05:43:22]Write to MH i2c: E2 08 00 EA 04 80 09 00 00 00 00 00 00 60 [05:43:22]Write i2c OK [05:43:22]MH_I2C_Read... [05:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:22]Read from MH i2c: E2 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [05:43:22]RAPDU: 90 00 [05:43:22]wFMCommunicate OK [05:43:22]SAM_PROTO_ClearQueue done [05:43:22]KKMCreateOFDPacket [05:43:22]OFDProtocolAddRootSTLVToBuf [05:43:22]FM_MakeSignedData [05:43:22]FM_MakeSignedData [05:43:22]SAM_PROTO_SignData [05:43:22]wFMCommunicate request_size=4 [05:43:22]MH_SAM_APDU [05:43:22]CAPDU: 80 0D 01 02 [05:43:22]Write to MH i2c: E2 08 00 EB 04 80 0D 01 02 00 00 00 00 68 [05:43:22]Write i2c OK [05:43:22]MH_I2C_Read... [05:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:22]Read from MH i2c: E2 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [05:43:22]RAPDU: 90 00 [05:43:22]wFMCommunicate OK [05:43:22]wFMCommunicate request_size=255 [05:43:22]MH_SAM_APDU [05:43:22]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FA 8C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [05:43:22]Write to MH i2c: E2 02 01 EC 04 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FA 8C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 C2 [05:43:22]Write i2c OK [05:43:22]MH_I2C_Read... [05:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:22]Read from MH i2c: E2 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 [05:43:22]MH_I2C_Read... [05:43:22]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [05:43:22]RAPDU: 90 00 [05:43:22]wFMCommunicate OK [05:43:22]wFMCommunicate request_size=52 [05:43:22]MH_SAM_APDU [05:43:22]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C4 00 00 35 04 06 00 3E 78 AB 4E 7E 4D [05:43:22]Write to MH i2c: E2 37 00 ED 04 80 0D 02 02 2F 00 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C4 00 00 35 04 06 00 3E 78 AB 4E 7E 4D 00 00 B7 [05:43:22]Write i2c OK [05:43:22]MH_I2C_Read... [05:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:23]Read from MH i2c: E2 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 03 00 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [05:43:23]RAPDU: 90 00 [05:43:23]wFMCommunicate OK [05:43:23]wFMCommunicate request_size=4 [05:43:23]MH_SAM_APDU [05:43:23]CAPDU: 80 0D 03 02 [05:43:23]Write to MH i2c: E2 08 00 EE 04 80 0D 03 02 00 00 00 00 6D [05:43:23]Write i2c OK [05:43:23]MH_I2C_Read... [05:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:23]Read from MH i2c: E2 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 0B 00 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 0B 00 EE 04 00 88 E1 35 32 2F 08 60 69 90 00 3E [05:43:23]RAPDU: 88 E1 35 32 2F 08 60 69 90 00 [05:43:23]wFMCommunicate OK [05:43:23]SAM_PROTO_SignData done [05:43:23]FM_MakeSignedData done [05:43:23]CreateOFDProtocolMessage [05:43:23]wFMCommunicate request_size=4 [05:43:23]MH_SAM_APDU [05:43:23]CAPDU: 80 11 00 00 [05:43:23]Write to MH i2c: E2 08 00 EF 04 80 11 00 00 00 00 00 00 6D [05:43:23]Write i2c OK [05:43:23]MH_I2C_Read... [05:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:23]Read from MH i2c: E2 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 17 00 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: E2 17 00 EF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B4 [05:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:43:23]wFMCommunicate OK [05:43:23]CreateOFDProtocolMessage done [05:43:23]OFDSenderStorePacket 50268 [05:43:23]StoreOFDPacket docnum=50268 [05:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 03 27 31 01 A9 6C 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FA 8C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C4 00 00 35 04 06 00 3E 78 AB 4E 7E 4D 88 E1 35 32 2F 08 60 69 [05:43:23]CheckFolder [05:43:23]dirname=/storage/ofd_packets [05:43:23]CheckFolder done [05:43:23]ProducePacketName [05:43:23]name=ofd_packets/00050268 [05:43:23]NVStorageSaveData ofd_packets/00050268 [05:43:23]File name is /storage/ofd_packets/00050268 [05:43:23]Write 343 bytes [05:43:23]NVStorageSaveData done [05:43:23]OFDSenderStorePacket done [05:43:23]KKMCreateOFDPacket done [05:43:23]NVStorageSaveData kkm_last_timestamp [05:43:23]File name is /storage/kkm_last_timestamp [05:43:23]Write 4 bytes [05:43:23]NVStorageSaveData done [05:43:23]ExternCall_PrintAddStr [05:43:23]wPrintStart [05:43:23]Write to MH i2c: 01 00 00 F0 04 F4 [05:43:23]Write i2c OK [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 07 00 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [05:43:23]RasterBufferAndPrint [05:43:23]line Счет N : (3)164174 [05:43:23]line ИНН: 02508201610067 [05:43:23]line Контрольно-Кассовый Чек [05:43:23]line ПРОДАЖА [05:43:23]line Товар: 4870022003305 [05:43:23]line Напиток Gorilla эн нат ж/б 0,5/0,45л [05:43:23]line 1.000 * 99.00 [05:43:23]line = 99.00 [05:43:23]line НДС 12% НСП 1% [05:43:23]line > о реализуемом товаре [05:43:23]line ИТОГО: 99.00 [05:43:23]line НСП 1% : 0.88 [05:43:23]line НДС 12% : 10.51 [05:43:23]line Наличными: 99.00 [05:43:23]line Безнал.: 0.00 [05:43:23]line Место: АЗС № 80 "Партнер Нефть" [05:43:23]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [05:43:23]line СНО: Общий режим [05:43:23]line Чек 13 23.10.2024 05:43 [05:43:23]line Смена: 491 ФФД: 1.0 [05:43:23]line ЗНМ: 0300000090 [05:43:23]line РНМ: 0000000000097022 [05:43:23]line Версия ККМ: 001 [05:43:23]line ФМ: 0000000000875000 [05:43:23]line ФД: 50268 [05:43:23]line ФПД: 68687991045709 [05:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T054322&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50268&fm=68687991045709&tin=02508201610067®Number=0000000000097022&sum=9900 [05:43:23]OFD Sender: Processing packet 50268 [packets to send 7, broken 6] [05:43:23]ProducePacketName [05:43:23]name=ofd_packets/00050268 [05:43:23]OFD Sender: To server: pG, [05:43:23]CommunicateWithHost lk.salyk.kg:30040 [05:43:23]ConnectInit lk.salyk.kg [05:43:23]line 0 [05:43:23]written 0, free lines is 4095 [05:43:23]Connected sock=10 [05:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 03 27 31 01 A9 6C 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FA 8C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C4 00 00 35 04 06 00 3E 78 AB 4E 7E 4D 88 E1 35 32 2F 08 60 69 [05:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 97 2A 47 00 9F 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C4 00 00 F4 03 04 00 93 38 18 67 B6 04 01 00 00 D4 D0 C6 C7 24 BC 64 72 [05:43:23]CommunicateWithHost err = 0 [05:43:23]CheckOFDResponse [05:43:23]1017 (14) - 77093643461234 [05:43:23]1041 (16) - 0000000000875000 [05:43:23]1040 (4) - 50268 [05:43:23]1012 (4) - 22.10.2024 23:43 [05:43:23]1206 (1) - 0 [05:43:23]OFD Sender: Remove packet 50268 [05:43:23]ProducePacketName [05:43:23]name=ofd_packets/00050268 [05:43:23]NVStorageDeleteData [05:43:23]Write to MH i2c: 01 00 00 19 05 1E [05:43:23]Write i2c OK [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 07 00 [05:43:23]MH_I2C_Read... [05:43:23]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 21 0D 53 [05:43:23]RasterBufferAndPrint [05:43:23]line [05:43:23]line [05:43:23]line [05:43:23]line [05:43:23]line [05:43:23]written 0, free lines is 3367 [05:43:23]process_action close_receipt done [05:43:23]requested_data is exist [05:43:23]produce_requested_data [05:43:23]requested_item fm.sn is exist - process it [05:43:23]wFMCommunicate request_size=4 [05:43:23]MH_SAM_APDU [05:43:23]CAPDU: 80 11 00 00 [05:43:23]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [05:43:23]Write i2c OK [05:43:23]MH_I2C_Read... [05:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:24]Read from MH i2c: E2 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 17 00 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E6 [05:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:43:24]wFMCommunicate OK [05:43:24]requested_item fd.num is exist - process it [05:43:24]SAM_PROTO_GetFieldsCounters [05:43:24]wFMCommunicate request_size=4 [05:43:24]MH_SAM_APDU [05:43:24]CAPDU: 80 13 00 00 [05:43:24]Write to MH i2c: E2 08 00 21 05 80 13 00 00 00 00 00 00 A2 [05:43:24]Write i2c OK [05:43:24]MH_I2C_Read... [05:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:24]Read from MH i2c: E2 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 62 00 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 62 00 21 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [05:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:43:24]wFMCommunicate OK [05:43:24]SAM_PROTO_GetFieldsCounters done [05:43:24]requested_item shift.num is exist - process it [05:43:24]requested_item shift.opened is exist - process it [05:43:24]req_shift_opened [05:43:24]FM_GetShiftState [05:43:24]SAM_PROTO_GetShiftState [05:43:24]wFMCommunicate request_size=4 [05:43:24]MH_SAM_APDU [05:43:24]CAPDU: 80 13 01 00 [05:43:24]Write to MH i2c: E2 08 00 22 05 80 13 01 00 00 00 00 00 A4 [05:43:24]Write i2c OK [05:43:24]MH_I2C_Read... [05:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:24]Read from MH i2c: E2 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 0E 00 [05:43:24]MH_I2C_Read... [05:43:24]Read from MH i2c: E2 0E 00 22 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F0 [05:43:24]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [05:43:24]wFMCommunicate OK [05:43:24]SAM_PROTO_GetShiftState done [05:43:24]FM_GetShiftState done [05:43:24]req_shift_opened done [05:43:24]requested_item shift.open_date is exist - process it [05:43:24]req_shift_open_date [05:43:24]req_shift_open_date done [05:43:24]produce_requested_data done [05:43:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50268,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [05:43:24]process_action_free close_receipt [05:43:24]json_value_free [05:43:24]json_value_free done [05:43:24]process_json_proto returns [05:43:24]Send response to host [05:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50268,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [05:43:24]free response buf [05:43:24]execute_script done [05:43:24]execute_script returns [05:43:24]free content buf [05:43:24]Sock 9.Close socket [05:43:24]Sock 9.Thread stoped [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:45]accept exits with 7 [06:47:45]New connection [06:47:45]New thread 3067161956 created [06:47:45]Thread 3067305316 joined [06:47:45]Waiting for new connection... [06:47:45] Sock 7.Parse request [06:47:45]Sock 7.Check first char [06:47:45]Sock 7.First char is OK [06:47:45]request: POST /json_proto HTTP/1.0 [06:47:45]Method: POST [06:47:45]URL: /json_proto [06:47:45]Method is POST - this is cgi request [06:47:45]url: /json_proto [06:47:45]query_string will be loaded in cgi processing [06:47:45]execute_cgi json_proto POST (null) [06:47:45]execute_cgi path=json_proto method=POST [06:47:45]POST find Content-Length [06:47:45]Host: 172.17.49.196:8080 [06:47:45]Content-Length: 624 [06:47:45]Content-Type: application/json [06:47:45] [06:47:45]POST finish read [06:47:45]Found Content-Length = 624 [06:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164175", "tax_sys" : 0, "items" : [ { "code": "48747486", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Grand Editeon", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:45]execute_script... [06:47: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)164175", "tax_sys" : 0, "items" : [ { "code": "48747486", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Grand Editeon", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:45]POST & json_proto [06:47:45]process_json_proto [06:47:45]json parsed OK: [06:47:45]protocol is kg_v1.0 [06:47:45]action value=close_receipt [06:47:45]process_action close_receipt [06:47:45]cmd_close_receipt [06:47:45]MH_GetDate [06:47:45]Write to MH i2c: F0 00 00 23 05 17 [06:47:45]Write i2c OK [06:47:45]MH_I2C_Read... [06:47:45]Read from MH i2c: F0 [06:47:45]MH_I2C_Read... [06:47:45]Read from MH i2c: F0 09 00 [06:47:45]MH_I2C_Read... [06:47:45]Read from MH i2c: F0 09 00 23 05 00 13 9C 18 67 BD 3B 11 67 BE [06:47:45]GetLastDocTimeStamp 1729662202 [06:47:45]current date 1729666067 [06:47:45]FM_GetShiftState [06:47:45]SAM_PROTO_GetShiftState [06:47:45]wFMCommunicate request_size=4 [06:47:45]MH_SAM_APDU [06:47:45]CAPDU: 80 13 01 00 [06:47:45]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [06:47:45]Write i2c OK [06:47:45]MH_I2C_Read... [06:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:45]Read from MH i2c: E2 [06:47:45]MH_I2C_Read... [06:47:45]Read from MH i2c: E2 0E 00 [06:47:45]MH_I2C_Read... [06:47:45]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F2 [06:47:45]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [06:47:45]wFMCommunicate OK [06:47:45]SAM_PROTO_GetShiftState done [06:47:45]FM_GetShiftState done [06:47:45]opened in 1729642370 [06:47:45]opened+sec_in_day 1729728770 [06:47:45]quantity*price = 15400 [06:47:45]sum+1 = 15401 [06:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 14 23.10.2024 06:47 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50269 ФПД: 185032815928614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T064747&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50269&fm=185032815928614&tin=02508201610067®Number=0000000000097022&sum=15400 0 [06:47:46]StoreToDocumentArchive [06:47:46]shift 491 fd 50269 [06:47:46]save to /storage/0491/doc_00050269 [06:47:46]save last doc name /storage/0491/doc_00050269 to /storage/kkm_last_doc_name [06:47:46]save OK [06:47:46]Clear old archive folders... [06:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:47:46]tlvbuf is 0021BDE0 [06:47:46]SAM_PROTO_ClearQueue [06:47:46]wFMCommunicate request_size=4 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 09 00 00 [06:47:46]Write to MH i2c: E2 08 00 31 05 80 09 00 00 00 00 00 00 A8 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [06:47:46]RAPDU: 90 00 [06:47:46]wFMCommunicate OK [06:47:46]SAM_PROTO_ClearQueue done [06:47:46]KKMCreateOFDPacket [06:47:46]OFDProtocolAddRootSTLVToBuf [06:47:46]FM_MakeSignedData [06:47:46]FM_MakeSignedData [06:47:46]SAM_PROTO_SignData [06:47:46]wFMCommunicate request_size=4 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 0D 01 02 [06:47:46]Write to MH i2c: E2 08 00 32 05 80 0D 01 02 00 00 00 00 B0 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [06:47:46]RAPDU: 90 00 [06:47:46]wFMCommunicate OK [06:47:46]wFMCommunicate request_size=255 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 34 38 36 06 04 27 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 47 72 61 6E 64 20 45 64 69 74 65 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 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 88 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 0E 00 00 00 F4 03 04 00 13 9C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [06:47:46]Write to MH i2c: E2 02 01 33 05 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 34 38 36 06 04 27 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 47 72 61 6E 64 20 45 64 69 74 65 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 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 88 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 0E 00 00 00 F4 03 04 00 13 9C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 E9 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [06:47:46]RAPDU: 90 00 [06:47:46]wFMCommunicate OK [06:47:46]wFMCommunicate request_size=35 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C4 00 00 35 04 06 00 A8 49 4F 43 E5 26 [06:47:46]Write to MH i2c: E2 26 00 34 05 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C4 00 00 35 04 06 00 A8 49 4F 43 E5 26 00 00 49 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [06:47:46]RAPDU: 90 00 [06:47:46]wFMCommunicate OK [06:47:46]wFMCommunicate request_size=4 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 0D 03 02 [06:47:46]Write to MH i2c: E2 08 00 35 05 80 0D 03 02 00 00 00 00 B5 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 0B 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 0B 00 35 05 00 6A A1 A3 11 18 60 68 BC 90 00 11 [06:47:46]RAPDU: 6A A1 A3 11 18 60 68 BC 90 00 [06:47:46]wFMCommunicate OK [06:47:46]SAM_PROTO_SignData done [06:47:46]FM_MakeSignedData done [06:47:46]CreateOFDProtocolMessage [06:47:46]wFMCommunicate request_size=4 [06:47:46]MH_SAM_APDU [06:47:46]CAPDU: 80 11 00 00 [06:47:46]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [06:47:46]Write i2c OK [06:47:46]MH_I2C_Read... [06:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:46]Read from MH i2c: E2 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 17 00 [06:47:46]MH_I2C_Read... [06:47:46]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FC [06:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:47:46]wFMCommunicate OK [06:47:46]CreateOFDProtocolMessage done [06:47:46]OFDSenderStorePacket 50269 [06:47:46]StoreOFDPacket docnum=50269 [06:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 FF FF 20 01 ED 1C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 34 38 36 06 04 27 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 47 72 61 6E 64 20 45 64 69 74 65 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 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 88 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 0E 00 00 00 F4 03 04 00 13 9C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C4 00 00 35 04 06 00 A8 49 4F 43 E5 26 6A A1 A3 11 18 60 68 BC [06:47:46]CheckFolder [06:47:46]dirname=/storage/ofd_packets [06:47:46]CheckFolder done [06:47:46]ProducePacketName [06:47:46]name=ofd_packets/00050269 [06:47:46]NVStorageSaveData ofd_packets/00050269 [06:47:47]File name is /storage/ofd_packets/00050269 [06:47:47]Write 326 bytes [06:47:47]NVStorageSaveData done [06:47:47]OFDSenderStorePacket done [06:47:47]KKMCreateOFDPacket done [06:47:47]NVStorageSaveData kkm_last_timestamp [06:47:47]File name is /storage/kkm_last_timestamp [06:47:47]Write 4 bytes [06:47:47]NVStorageSaveData done [06:47:47]ExternCall_PrintAddStr [06:47:47]wPrintStart [06:47:47]Write to MH i2c: 01 00 00 37 05 3C [06:47:47]Write i2c OK [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 07 00 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [06:47:47]RasterBufferAndPrint [06:47:47]line Счет N : (3)164175 [06:47:47]line ИНН: 02508201610067 [06:47:47]line Контрольно-Кассовый Чек [06:47:47]line ПРОДАЖА [06:47:47]line Товар: 48747486 [06:47:47]line Сигареты Richmond Grand Editeon [06:47:47]line 1.000 * 154.00 [06:47:47]line = 154.00 [06:47:47]line НДС 12% НСП 1% [06:47:47]line > о реализуемом товаре [06:47:47]line ИТОГО: 154.00 [06:47:47]line НСП 1% : 1.36 [06:47:47]line НДС 12% : 16.35 [06:47:47]line Наличными: 154.00 [06:47:47]line Безнал.: 0.00 [06:47:47]line Место: АЗС № 80 "Партнер Нефть" [06:47:47]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:47:47]line СНО: Общий режим [06:47:47]line Чек 14 23.10.2024 06:47 [06:47:47]line Смена: 491 ФФД: 1.0 [06:47:47]line ЗНМ: 0300000090 [06:47:47]line РНМ: 0000000000097022 [06:47:47]line Версия ККМ: 001 [06:47:47]line ФМ: 0000000000875000 [06:47:47]line ФД: 50269 [06:47:47]line ФПД: 185032815928614 [06:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T064747&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50269&fm=185032815928614&tin=02508201610067®Number=0000000000097022&sum=15400 [06:47:47]OFD Sender: Processing packet 50269 [packets to send 7, broken 6] [06:47:47]ProducePacketName [06:47:47]name=ofd_packets/00050269 [06:47:47]OFD Sender: To server: pG, [06:47:47]CommunicateWithHost lk.salyk.kg:30040 [06:47:47]ConnectInit lk.salyk.kg [06:47:47]line 0 [06:47:47]written 0, free lines is 4095 [06:47:47]Connected sock=10 [06:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 FF FF 20 01 ED 1C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 34 38 36 06 04 27 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 47 72 61 6E 64 20 45 64 69 74 65 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 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 88 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 0E 00 00 00 F4 03 04 00 13 9C 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C4 00 00 35 04 06 00 A8 49 4F 43 E5 26 6A A1 A3 11 18 60 68 BC [06:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 45 C4 47 00 90 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C4 00 00 F4 03 04 00 AB 47 18 67 B6 04 01 00 00 4C 06 E5 5E 39 D7 F3 A6 [06:47:47]CommunicateWithHost err = 0 [06:47:47]CheckOFDResponse [06:47:47]1017 (14) - 77093643461234 [06:47:47]1041 (16) - 0000000000875000 [06:47:47]1040 (4) - 50269 [06:47:47]1012 (4) - 23.10.2024 00:47 [06:47:47]1206 (1) - 0 [06:47:47]OFD Sender: Remove packet 50269 [06:47:47]ProducePacketName [06:47:47]name=ofd_packets/00050269 [06:47:47]NVStorageDeleteData [06:47:47]Write to MH i2c: 01 00 00 60 05 65 [06:47:47]Write i2c OK [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 07 00 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FD 0C 75 [06:47:47]RasterBufferAndPrint [06:47:47]line [06:47:47]line [06:47:47]line [06:47:47]line [06:47:47]line [06:47:47]written 0, free lines is 3331 [06:47:47]process_action close_receipt done [06:47:47]requested_data is exist [06:47:47]produce_requested_data [06:47:47]requested_item fm.sn is exist - process it [06:47:47]wFMCommunicate request_size=4 [06:47:47]MH_SAM_APDU [06:47:47]CAPDU: 80 11 00 00 [06:47:47]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [06:47:47]Write i2c OK [06:47:47]MH_I2C_Read... [06:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:47]Read from MH i2c: E2 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: E2 17 00 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2D [06:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:47:47]wFMCommunicate OK [06:47:47]requested_item fd.num is exist - process it [06:47:47]SAM_PROTO_GetFieldsCounters [06:47:47]wFMCommunicate request_size=4 [06:47:47]MH_SAM_APDU [06:47:47]CAPDU: 80 13 00 00 [06:47:47]Write to MH i2c: E2 08 00 68 05 80 13 00 00 00 00 00 00 E9 [06:47:47]Write i2c OK [06:47:47]MH_I2C_Read... [06:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:47]Read from MH i2c: E2 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: E2 62 00 [06:47:47]MH_I2C_Read... [06:47:47]Read from MH i2c: E2 62 00 68 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [06:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:47]wFMCommunicate OK [06:47:47]SAM_PROTO_GetFieldsCounters done [06:47:47]requested_item shift.num is exist - process it [06:47:47]requested_item shift.opened is exist - process it [06:47:47]req_shift_opened [06:47:47]FM_GetShiftState [06:47:47]SAM_PROTO_GetShiftState [06:47:47]wFMCommunicate request_size=4 [06:47:47]MH_SAM_APDU [06:47:47]CAPDU: 80 13 01 00 [06:47:47]Write to MH i2c: E2 08 00 69 05 80 13 01 00 00 00 00 00 EB [06:47:47]Write i2c OK [06:47:47]MH_I2C_Read... [06:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:48]Read from MH i2c: E2 [06:47:48]MH_I2C_Read... [06:47:48]Read from MH i2c: E2 0E 00 [06:47:48]MH_I2C_Read... [06:47:48]Read from MH i2c: E2 0E 00 69 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 37 [06:47:48]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [06:47:48]wFMCommunicate OK [06:47:48]SAM_PROTO_GetShiftState done [06:47:48]FM_GetShiftState done [06:47:48]req_shift_opened done [06:47:48]requested_item shift.open_date is exist - process it [06:47:48]req_shift_open_date [06:47:48]req_shift_open_date done [06:47:48]produce_requested_data done [06:47:48]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50269,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [06:47:48]process_action_free close_receipt [06:47:48]json_value_free [06:47:48]json_value_free done [06:47:48]process_json_proto returns [06:47:48]Send response to host [06:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50269,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [06:47:48]free response buf [06:47:48]execute_script done [06:47:48]execute_script returns [06:47:48]free content buf [06:47:48]Sock 7.Close socket [06:47:48]Sock 7.Thread stoped [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]accept exits with 9 [07:25:04]New connection [07:25:04]New thread 3067305316 created [07:25:04]Thread 3067161956 joined [07:25:04]Waiting for new connection... [07:25:04] Sock 9.Parse request [07:25:04]Sock 9.Check first char [07:25:04]Sock 9.First char is OK [07:25:04]request: POST /json_proto HTTP/1.0 [07:25:04]Method: POST [07:25:04]URL: /json_proto [07:25:04]Method is POST - this is cgi request [07:25:04]url: /json_proto [07:25:04]query_string will be loaded in cgi processing [07:25:04]execute_cgi json_proto POST (null) [07:25:04]execute_cgi path=json_proto method=POST [07:25:04]POST find Content-Length [07:25:04]Host: 172.17.49.196:8080 [07:25:04]Content-Length: 619 [07:25:04]Content-Type: application/json [07:25:04] [07:25:04]POST finish read [07:25:04]Found Content-Length = 619 [07:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164176", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:04]execute_script... [07:25:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164176", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:04]POST & json_proto [07:25:04]process_json_proto [07:25:04]json parsed OK: [07:25:04]protocol is kg_v1.0 [07:25:04]action value=close_receipt [07:25:04]process_action close_receipt [07:25:04]cmd_close_receipt [07:25:04]MH_GetDate [07:25:04]Write to MH i2c: F0 00 00 6A 05 5E [07:25:04]Write i2c OK [07:25:04]MH_I2C_Read... [07:25:04]Read from MH i2c: F0 [07:25:04]MH_I2C_Read... [07:25:04]Read from MH i2c: F0 09 00 [07:25:04]MH_I2C_Read... [07:25:04]Read from MH i2c: F0 09 00 6A 05 00 D2 A4 18 67 BD 3B 11 67 CC [07:25:04]GetLastDocTimeStamp 1729666067 [07:25:04]current date 1729668306 [07:25:04]FM_GetShiftState [07:25:04]SAM_PROTO_GetShiftState [07:25:04]wFMCommunicate request_size=4 [07:25:04]MH_SAM_APDU [07:25:04]CAPDU: 80 13 01 00 [07:25:04]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [07:25:04]Write i2c OK [07:25:04]MH_I2C_Read... [07:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:04]Read from MH i2c: E2 [07:25:04]MH_I2C_Read... [07:25:04]Read from MH i2c: E2 0E 00 [07:25:04]MH_I2C_Read... [07:25:04]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 39 [07:25:04]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:25:04]wFMCommunicate OK [07:25:04]SAM_PROTO_GetShiftState done [07:25:04]FM_GetShiftState done [07:25:04]opened in 1729642370 [07:25:04]opened+sec_in_day 1729728770 [07:25:04]quantity*price = 14400 [07:25:04]sum+1 = 14401 [07:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 15 23.10.2024 07:25 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50270 ФПД: 1827673379337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072506&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50270&fm=1827673379337&tin=02508201610067®Number=0000000000097022&sum=14400 0 [07:25:05]StoreToDocumentArchive [07:25:05]shift 491 fd 50270 [07:25:05]save to /storage/0491/doc_00050270 [07:25:05]save last doc name /storage/0491/doc_00050270 to /storage/kkm_last_doc_name [07:25:05]save OK [07:25:05]Clear old archive folders... [07:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:25:05]tlvbuf is 0021BCC0 [07:25:05]SAM_PROTO_ClearQueue [07:25:05]wFMCommunicate request_size=4 [07:25:05]MH_SAM_APDU [07:25:05]CAPDU: 80 09 00 00 [07:25:05]Write to MH i2c: E2 08 00 78 05 80 09 00 00 00 00 00 00 EF [07:25:05]Write i2c OK [07:25:05]MH_I2C_Read... [07:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:05]Read from MH i2c: E2 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [07:25:05]RAPDU: 90 00 [07:25:05]wFMCommunicate OK [07:25:05]SAM_PROTO_ClearQueue done [07:25:05]KKMCreateOFDPacket [07:25:05]OFDProtocolAddRootSTLVToBuf [07:25:05]FM_MakeSignedData [07:25:05]FM_MakeSignedData [07:25:05]SAM_PROTO_SignData [07:25:05]wFMCommunicate request_size=4 [07:25:05]MH_SAM_APDU [07:25:05]CAPDU: 80 0D 01 02 [07:25:05]Write to MH i2c: E2 08 00 79 05 80 0D 01 02 00 00 00 00 F7 [07:25:05]Write i2c OK [07:25:05]MH_I2C_Read... [07:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:05]Read from MH i2c: E2 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [07:25:05]RAPDU: 90 00 [07:25:05]wFMCommunicate OK [07:25:05]wFMCommunicate request_size=255 [07:25:05]MH_SAM_APDU [07:25:05]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0F 00 00 00 F4 03 04 00 D2 A4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:25:05]Write to MH i2c: E2 02 01 7A 05 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0F 00 00 00 F4 03 04 00 D2 A4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 DB [07:25:05]Write i2c OK [07:25:05]MH_I2C_Read... [07:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:05]Read from MH i2c: E2 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [07:25:05]RAPDU: 90 00 [07:25:05]wFMCommunicate OK [07:25:05]wFMCommunicate request_size=30 [07:25:05]MH_SAM_APDU [07:25:05]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 30 10 04 04 00 5E C4 00 00 35 04 06 00 01 A9 89 D2 92 09 [07:25:05]Write to MH i2c: E2 21 00 7B 05 80 0D 02 02 19 00 30 38 37 35 30 30 30 10 04 04 00 5E C4 00 00 35 04 06 00 01 A9 89 D2 92 09 00 00 A9 [07:25:05]Write i2c OK [07:25:05]MH_I2C_Read... [07:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:05]Read from MH i2c: E2 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 [07:25:05]MH_I2C_Read... [07:25:05]Read from MH i2c: E2 03 00 7B 05 00 90 00 F4 [07:25:05]RAPDU: 90 00 [07:25:05]wFMCommunicate OK [07:25:05]wFMCommunicate request_size=4 [07:25:05]MH_SAM_APDU [07:25:05]CAPDU: 80 0D 03 02 [07:25:05]Write to MH i2c: E2 08 00 7C 05 80 0D 03 02 00 00 00 00 FC [07:25:05]Write i2c OK [07:25:05]MH_I2C_Read... [07:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:06]Read from MH i2c: E2 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 0B 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 0B 00 7C 05 00 F5 67 B8 B6 B2 8A 36 CC 90 00 05 [07:25:06]RAPDU: F5 67 B8 B6 B2 8A 36 CC 90 00 [07:25:06]wFMCommunicate OK [07:25:06]SAM_PROTO_SignData done [07:25:06]FM_MakeSignedData done [07:25:06]CreateOFDProtocolMessage [07:25:06]wFMCommunicate request_size=4 [07:25:06]MH_SAM_APDU [07:25:06]CAPDU: 80 11 00 00 [07:25:06]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:06]Read from MH i2c: E2 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 17 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 43 [07:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:25:06]wFMCommunicate OK [07:25:06]CreateOFDProtocolMessage done [07:25:06]OFDSenderStorePacket 50270 [07:25:06]StoreOFDPacket docnum=50270 [07:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 01 00 00 36 2A 1B 01 A9 C9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0F 00 00 00 F4 03 04 00 D2 A4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C4 00 00 35 04 06 00 01 A9 89 D2 92 09 F5 67 B8 B6 B2 8A 36 CC [07:25:06]CheckFolder [07:25:06]dirname=/storage/ofd_packets [07:25:06]CheckFolder done [07:25:06]ProducePacketName [07:25:06]name=ofd_packets/00050270 [07:25:06]NVStorageSaveData ofd_packets/00050270 [07:25:06]File name is /storage/ofd_packets/00050270 [07:25:06]Write 321 bytes [07:25:06]NVStorageSaveData done [07:25:06]OFDSenderStorePacket done [07:25:06]KKMCreateOFDPacket done [07:25:06]NVStorageSaveData kkm_last_timestamp [07:25:06]File name is /storage/kkm_last_timestamp [07:25:06]Write 4 bytes [07:25:06]NVStorageSaveData done [07:25:06]ExternCall_PrintAddStr [07:25:06]wPrintStart [07:25:06]Write to MH i2c: 01 00 00 7E 05 83 [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 07 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 FF 0F 98 [07:25:06]RasterBufferAndPrint [07:25:06]line Счет N : (3)164176 [07:25:06]line ИНН: 02508201610067 [07:25:06]line Контрольно-Кассовый Чек [07:25:06]line ПРОДАЖА [07:25:06]line Товар: 47802995 [07:25:06]line Сигареты Winston XS Silver [07:25:06]line 1.000 * 144.00 [07:25:06]line = 144.00 [07:25:06]line НДС 12% НСП 1% [07:25:06]line > о реализуемом товаре [07:25:06]line ИТОГО: 144.00 [07:25:06]line НСП 1% : 1.27 [07:25:06]line НДС 12% : 15.29 [07:25:06]line Наличными: 144.00 [07:25:06]line Безнал.: 0.00 [07:25:06]line Место: АЗС № 80 "Партнер Нефть" [07:25:06]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:25:06]line СНО: Общий режим [07:25:06]line Чек 15 23.10.2024 07:25 [07:25:06]line Смена: 491 ФФД: 1.0 [07:25:06]line ЗНМ: 0300000090 [07:25:06]line РНМ: 0000000000097022 [07:25:06]line Версия ККМ: 001 [07:25:06]line ФМ: 0000000000875000 [07:25:06]line ФД: 50270 [07:25:06]line ФПД: 1827673379337 [07:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072506&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50270&fm=1827673379337&tin=02508201610067®Number=0000000000097022&sum=14400 [07:25:06]OFD Sender: Processing packet 50270 [packets to send 7, broken 6] [07:25:06]ProducePacketName [07:25:06]name=ofd_packets/00050270 [07:25:06]OFD Sender: To server: pG, [07:25:06]CommunicateWithHost lk.salyk.kg:30040 [07:25:06]ConnectInit lk.salyk.kg [07:25:06]line 0 [07:25:06]written 0, free lines is 4095 [07:25:06]Connected sock=10 [07:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 01 00 00 36 2A 1B 01 A9 C9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0F 00 00 00 F4 03 04 00 D2 A4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C4 00 00 35 04 06 00 01 A9 89 D2 92 09 F5 67 B8 B6 B2 8A 36 CC [07:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C3 2E 47 00 FA 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C4 00 00 F4 03 04 00 6A 50 18 67 B6 04 01 00 00 B3 E0 22 B0 9D D1 E0 F5 [07:25:06]CommunicateWithHost err = 0 [07:25:06]CheckOFDResponse [07:25:06]1017 (14) - 77093643461234 [07:25:06]1041 (16) - 0000000000875000 [07:25:06]1040 (4) - 50270 [07:25:06]1012 (4) - 23.10.2024 01:24 [07:25:06]1206 (1) - 0 [07:25:06]OFD Sender: Remove packet 50270 [07:25:06]ProducePacketName [07:25:06]name=ofd_packets/00050270 [07:25:06]NVStorageDeleteData [07:25:06]Write to MH i2c: 01 00 00 A6 05 AB [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 07 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 11 0D D0 [07:25:06]RasterBufferAndPrint [07:25:06]line [07:25:06]line [07:25:06]line [07:25:06]line [07:25:06]line [07:25:06]written 0, free lines is 3351 [07:25:06]process_action close_receipt done [07:25:06]requested_data is exist [07:25:06]produce_requested_data [07:25:06]requested_item fm.sn is exist - process it [07:25:06]wFMCommunicate request_size=4 [07:25:06]MH_SAM_APDU [07:25:06]CAPDU: 80 11 00 00 [07:25:06]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 [07:25:06]MH_I2C_Read... [07:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:06]Read from MH i2c: E2 17 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 73 [07:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:25:06]wFMCommunicate OK [07:25:06]requested_item fd.num is exist - process it [07:25:06]SAM_PROTO_GetFieldsCounters [07:25:06]wFMCommunicate request_size=4 [07:25:06]MH_SAM_APDU [07:25:06]CAPDU: 80 13 00 00 [07:25:06]Write to MH i2c: E2 08 00 AE 05 80 13 00 00 00 00 00 00 2F [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:07]Read from MH i2c: E2 [07:25:07]MH_I2C_Read... [07:25:07]Read from MH i2c: E2 62 00 [07:25:07]MH_I2C_Read... [07:25:07]Read from MH i2c: E2 62 00 AE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [07:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:07]wFMCommunicate OK [07:25:07]SAM_PROTO_GetFieldsCounters done [07:25:07]requested_item shift.num is exist - process it [07:25:07]requested_item shift.opened is exist - process it [07:25:07]req_shift_opened [07:25:07]FM_GetShiftState [07:25:07]SAM_PROTO_GetShiftState [07:25:07]wFMCommunicate request_size=4 [07:25:07]MH_SAM_APDU [07:25:07]CAPDU: 80 13 01 00 [07:25:07]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [07:25:07]Write i2c OK [07:25:07]MH_I2C_Read... [07:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:07]Read from MH i2c: E2 [07:25:07]MH_I2C_Read... [07:25:07]Read from MH i2c: E2 0E 00 [07:25:07]MH_I2C_Read... [07:25:07]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7D [07:25:07]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:25:07]wFMCommunicate OK [07:25:07]SAM_PROTO_GetShiftState done [07:25:07]FM_GetShiftState done [07:25:07]req_shift_opened done [07:25:07]requested_item shift.open_date is exist - process it [07:25:07]req_shift_open_date [07:25:07]req_shift_open_date done [07:25:07]produce_requested_data done [07:25:07]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50270,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [07:25:07]process_action_free close_receipt [07:25:07]json_value_free [07:25:07]json_value_free done [07:25:07]process_json_proto returns [07:25:07]Send response to host [07:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50270,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [07:25:07]free response buf [07:25:07]execute_script done [07:25:07]execute_script returns [07:25:07]free content buf [07:25:07]Sock 9.Close socket [07:25:07]Sock 9.Thread stoped [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:15]accept exits with 7 [07:57:15]New connection [07:57:15]New thread 3067161956 created [07:57:15]Thread 3067305316 joined [07:57:15]Waiting for new connection... [07:57:15] Sock 7.Parse request [07:57:15]Sock 7.Check first char [07:57:15]Sock 7.First char is OK [07:57:15]request: POST /json_proto HTTP/1.0 [07:57:15]Method: POST [07:57:15]URL: /json_proto [07:57:15]Method is POST - this is cgi request [07:57:15]url: /json_proto [07:57:15]query_string will be loaded in cgi processing [07:57:15]execute_cgi json_proto POST (null) [07:57:15]execute_cgi path=json_proto method=POST [07:57:15]POST find Content-Length [07:57:15]Host: 172.17.49.196:8080 [07:57:15]Content-Length: 687 [07:57:15]Content-Type: application/json [07:57:15] [07:57:15]POST finish read [07:57:16]Found Content-Length = 687 [07:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15440925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 53.630, "sum" : 2086.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2086.00, "payments": [ { "type": 0, "sum" : 2086.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:16]execute_script... [07:57:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15440925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 53.630, "sum" : 2086.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2086.00, "payments": [ { "type": 0, "sum" : 2086.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:16]POST & json_proto [07:57:16]process_json_proto [07:57:16]json parsed OK: [07:57:16]protocol is kg_v1.0 [07:57:16]action value=close_receipt [07:57:16]process_action close_receipt [07:57:16]cmd_close_receipt [07:57:16]MH_GetDate [07:57:16]Write to MH i2c: F0 00 00 B0 05 A4 [07:57:16]Write i2c OK [07:57:16]MH_I2C_Read... [07:57:16]Read from MH i2c: F0 [07:57:16]MH_I2C_Read... [07:57:16]Read from MH i2c: F0 09 00 [07:57:16]MH_I2C_Read... [07:57:16]Read from MH i2c: F0 09 00 B0 05 00 5E AC 18 67 BD 3B 11 67 A6 [07:57:16]GetLastDocTimeStamp 1729668306 [07:57:16]current date 1729670238 [07:57:16]FM_GetShiftState [07:57:16]SAM_PROTO_GetShiftState [07:57:16]wFMCommunicate request_size=4 [07:57:16]MH_SAM_APDU [07:57:16]CAPDU: 80 13 01 00 [07:57:16]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [07:57:16]Write i2c OK [07:57:16]MH_I2C_Read... [07:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:16]Read from MH i2c: E2 [07:57:16]MH_I2C_Read... [07:57:16]Read from MH i2c: E2 0E 00 [07:57:16]MH_I2C_Read... [07:57:16]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7F [07:57:16]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:57:16]wFMCommunicate OK [07:57:16]SAM_PROTO_GetShiftState done [07:57:16]FM_GetShiftState done [07:57:16]opened in 1729642370 [07:57:16]opened+sec_in_day 1729728770 [07:57:16]quantity*price = 208620 [07:57:16]sum+1 = 208622 [07:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2086.00 Внесено: 5000.00 СДАЧА: 2914.00 НСП 1% : 18.46 НДС 12% : 221.54 Наличными: 2086.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 16 23.10.2024 07:57 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50271 ФПД: 157141901206478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075718&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50271&fm=157141901206478&tin=02508201610067®Number=0000000000097022&sum=208600 [07:57:17]StoreToDocumentArchive [07:57:17]shift 491 fd 50271 [07:57:17]save to /storage/0491/doc_00050271 [07:57:17]save last doc name /storage/0491/doc_00050271 to /storage/kkm_last_doc_name [07:57:17]save OK [07:57:17]Clear old archive folders... [07:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:57:17]tlvbuf is 000E28C0 [07:57:17]SAM_PROTO_ClearQueue [07:57:17]wFMCommunicate request_size=4 [07:57:17]MH_SAM_APDU [07:57:17]CAPDU: 80 09 00 00 [07:57:17]Write to MH i2c: E2 08 00 BE 05 80 09 00 00 00 00 00 00 35 [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [07:57:17]RAPDU: 90 00 [07:57:17]wFMCommunicate OK [07:57:17]SAM_PROTO_ClearQueue done [07:57:17]KKMCreateOFDPacket [07:57:17]OFDProtocolAddRootSTLVToBuf [07:57:17]FM_MakeSignedData [07:57:17]FM_MakeSignedData [07:57:17]SAM_PROTO_SignData [07:57:17]wFMCommunicate request_size=4 [07:57:17]MH_SAM_APDU [07:57:17]CAPDU: 80 0D 01 02 [07:57:17]Write to MH i2c: E2 08 00 BF 05 80 0D 01 02 00 00 00 00 3D [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [07:57:17]RAPDU: 90 00 [07:57:17]wFMCommunicate OK [07:57:17]wFMCommunicate request_size=255 [07:57:17]MH_SAM_APDU [07:57:17]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 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 ED 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 56 00 00 00 00 07 04 06 00 D8 2E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5E AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C4 00 00 35 04 06 00 8E EB [07:57:17]Write to MH i2c: E2 02 01 C0 05 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 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 ED 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 56 00 00 00 00 07 04 06 00 D8 2E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5E AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C4 00 00 35 04 06 00 8E EB 00 00 DB [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [07:57:17]RAPDU: 90 00 [07:57:17]wFMCommunicate OK [07:57:17]wFMCommunicate request_size=9 [07:57:17]MH_SAM_APDU [07:57:17]CAPDU: 80 0D 02 02 04 73 33 63 CE [07:57:17]Write to MH i2c: E2 0C 00 C1 05 80 0D 02 02 04 00 73 33 63 CE 00 00 1F [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [07:57:17]RAPDU: 90 00 [07:57:17]wFMCommunicate OK [07:57:17]wFMCommunicate request_size=4 [07:57:17]MH_SAM_APDU [07:57:17]CAPDU: 80 0D 03 02 [07:57:17]Write to MH i2c: E2 08 00 C2 05 80 0D 03 02 00 00 00 00 42 [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 0B 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 0B 00 C2 05 00 10 0D A4 47 60 93 01 B4 90 00 F3 [07:57:17]RAPDU: 10 0D A4 47 60 93 01 B4 90 00 [07:57:17]wFMCommunicate OK [07:57:17]SAM_PROTO_SignData done [07:57:17]FM_MakeSignedData done [07:57:17]CreateOFDProtocolMessage [07:57:17]wFMCommunicate request_size=4 [07:57:17]MH_SAM_APDU [07:57:17]CAPDU: 80 11 00 00 [07:57:17]Write to MH i2c: E2 08 00 C3 05 80 11 00 00 00 00 00 00 42 [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:17]Read from MH i2c: E2 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 17 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: E2 17 00 C3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 89 [07:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:57:17]wFMCommunicate OK [07:57:17]CreateOFDProtocolMessage done [07:57:17]OFDSenderStorePacket 50271 [07:57:17]StoreOFDPacket docnum=50271 [07:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 A4 71 06 01 B2 D1 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 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 ED 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 56 00 00 00 00 07 04 06 00 D8 2E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5E AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C4 00 00 35 04 06 00 8E EB 73 33 63 CE 10 0D A4 47 60 93 01 B4 [07:57:17]CheckFolder [07:57:17]dirname=/storage/ofd_packets [07:57:17]CheckFolder done [07:57:17]ProducePacketName [07:57:17]name=ofd_packets/00050271 [07:57:17]NVStorageSaveData ofd_packets/00050271 [07:57:17]File name is /storage/ofd_packets/00050271 [07:57:17]Write 300 bytes [07:57:17]NVStorageSaveData done [07:57:17]OFDSenderStorePacket done [07:57:17]KKMCreateOFDPacket done [07:57:17]NVStorageSaveData kkm_last_timestamp [07:57:17]File name is /storage/kkm_last_timestamp [07:57:17]Write 4 bytes [07:57:17]NVStorageSaveData done [07:57:17]ExternCall_PrintAddStr [07:57:17]wPrintStart [07:57:17]Write to MH i2c: 01 00 00 C4 05 C9 [07:57:17]Write i2c OK [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: 01 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: 01 07 00 [07:57:17]MH_I2C_Read... [07:57:17]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [07:57:17]RasterBufferAndPrint [07:57:17]line Счет N : (1)15440925 [07:57:17]line ИНН: 02508201610067 [07:57:17]line Контрольно-Кассовый Чек [07:57:17]line ПРОДАЖА [07:57:17]line ТРК (МРК, ГНК) : 71 [07:57:17]line Товар: 2711190000 [07:57:17]line ГАЗ-К-5 [07:57:17]line 53.630 * 38.90 [07:57:17]line = 2086.21 [07:57:17]line НДС 12% НСП 1% [07:57:17]line > о реализуемом товаре [07:57:17]line ОКРУГЛЕНИЕ: -0.21 [07:57:17]line ИТОГО: 2086.00 [07:57:17]line Внесено: 5000.00 [07:57:17]line СДАЧА: 2914.00 [07:57:17]line НСП 1% : 18.46 [07:57:17]line НДС 12% : 221.54 [07:57:17]line Наличными: 2086.00 [07:57:17]line Безнал.: 0.00 [07:57:17]line Место: АЗС № 80 "Партнер Нефть" [07:57:17]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:57:17]line СНО: Общий режим [07:57:17]line Чек 16 23.10.2024 07:57 [07:57:17]line Смена: 491 ФФД: 1.0 [07:57:17]line ЗНМ: 0300000090 [07:57:17]line РНМ: 0000000000097022 [07:57:17]line Версия ККМ: 001 [07:57:17]line ФМ: 0000000000875000 [07:57:17]line ФД: 50271 [07:57:17]line ФПД: 157141901206478 [07:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075718&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50271&fm=157141901206478&tin=02508201610067®Number=0000000000097022&sum=208600 [07:57:17]OFD Sender: Processing packet 50271 [packets to send 7, broken 6] [07:57:17]ProducePacketName [07:57:17]name=ofd_packets/00050271 [07:57:17]OFD Sender: To server: pG, [07:57:17]CommunicateWithHost lk.salyk.kg:30040 [07:57:17]ConnectInit lk.salyk.kg [07:57:17]written 0, free lines is 4095 [07:57:18]Connected sock=10 [07:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 A4 71 06 01 B2 D1 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 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 ED 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 56 00 00 00 00 07 04 06 00 D8 2E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5E AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C4 00 00 35 04 06 00 8E EB 73 33 63 CE 10 0D A4 47 60 93 01 B4 [07:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A1 94 47 00 5A 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C4 00 00 F4 03 04 00 F5 57 18 67 B6 04 01 00 00 FA BC 9A 89 AA 6E 39 28 [07:57:18]CommunicateWithHost err = 0 [07:57:18]CheckOFDResponse [07:57:18]1017 (14) - 77093643461234 [07:57:18]1041 (16) - 0000000000875000 [07:57:18]1040 (4) - 50271 [07:57:18]1012 (4) - 23.10.2024 01:57 [07:57:18]1206 (1) - 0 [07:57:18]OFD Sender: Remove packet 50271 [07:57:18]ProducePacketName [07:57:18]name=ofd_packets/00050271 [07:57:18]NVStorageDeleteData [07:57:18]Write to MH i2c: 01 00 00 EF 05 F4 [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: 01 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: 01 07 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FE 0C 05 [07:57:18]RasterBufferAndPrint [07:57:18]line [07:57:18]line [07:57:18]line [07:57:18]line [07:57:18]line [07:57:18]written 0, free lines is 3331 [07:57:18]process_action close_receipt done [07:57:18]requested_data is exist [07:57:18]produce_requested_data [07:57:18]requested_item fm.sn is exist - process it [07:57:18]wFMCommunicate request_size=4 [07:57:18]MH_SAM_APDU [07:57:18]CAPDU: 80 11 00 00 [07:57:18]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:18]Read from MH i2c: E2 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 17 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BC [07:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:57:18]wFMCommunicate OK [07:57:18]requested_item fd.num is exist - process it [07:57:18]SAM_PROTO_GetFieldsCounters [07:57:18]wFMCommunicate request_size=4 [07:57:18]MH_SAM_APDU [07:57:18]CAPDU: 80 13 00 00 [07:57:18]Write to MH i2c: E2 08 00 F7 05 80 13 00 00 00 00 00 00 78 [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:18]Read from MH i2c: E2 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 62 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 62 00 F7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [07:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:18]wFMCommunicate OK [07:57:18]SAM_PROTO_GetFieldsCounters done [07:57:18]requested_item shift.num is exist - process it [07:57:18]requested_item shift.opened is exist - process it [07:57:18]req_shift_opened [07:57:18]FM_GetShiftState [07:57:18]SAM_PROTO_GetShiftState [07:57:18]wFMCommunicate request_size=4 [07:57:18]MH_SAM_APDU [07:57:18]CAPDU: 80 13 01 00 [07:57:18]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:18]Read from MH i2c: E2 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 0E 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C6 [07:57:18]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:57:18]wFMCommunicate OK [07:57:18]SAM_PROTO_GetShiftState done [07:57:18]FM_GetShiftState done [07:57:18]req_shift_opened done [07:57:18]requested_item shift.open_date is exist - process it [07:57:18]req_shift_open_date [07:57:18]req_shift_open_date done [07:57:18]produce_requested_data done [07:57:18]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50271,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [07:57:18]process_action_free close_receipt [07:57:18]json_value_free [07:57:18]json_value_free done [07:57:18]process_json_proto returns [07:57:18]Send response to host [07:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50271,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [07:57:18]free response buf [07:57:18]execute_script done [07:57:18]execute_script returns [07:57:18]free content buf [07:57:18]Sock 7.Close socket [07:57:18]Sock 7.Thread stoped [07:57:18]OFD Sender: No OFD packet to send [07:57:21]int [07:57:21]Write to MH i2c: 01 00 00 F9 05 FE [07:57:21]*** FLAG_PRN_PAP1 set [07:57:21]Write i2c OK [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 07 00 [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 07 00 F9 05 00 01 00 00 00 FF 0F 14 [07:57:21]state=0 [07:57:21]No paper [07:57:21]int [07:57:21]Write to MH i2c: 01 00 00 FA 05 FF [07:57:21]*** FLAG_PRN_PAP2 set [07:57:21]Write i2c OK [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 07 00 [07:57:21]MH_I2C_Read... [07:57:21]Read from MH i2c: 01 07 00 FA 05 00 03 00 00 00 FF 0F 17 [07:57:21]state=0 [07:57:21]No paper [07:57:21]Cover opened [07:57:22]int [07:57:22]Write to MH i2c: 01 00 00 FB 05 00 [07:57:22]*** FLAG_PRN_PAP2 reset [07:57:22]Write i2c OK [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 07 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 07 00 FB 05 00 01 00 00 00 FF 0F 16 [07:57:22]state=3 [07:57:22]No paper [07:57:22]Cover closed [07:57:22]int [07:57:22]Write to MH i2c: 01 00 00 FC 05 01 [07:57:22]*** FLAG_PRN_PAP1 reset [07:57:22]Write i2c OK [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 07 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [07:57:22]state=0 [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]accept exits with 9 [07:58:13]New connection [07:58:13]New thread 3067305316 created [07:58:13]Thread 3067161956 joined [07:58:13]Waiting for new connection... [07:58:13] Sock 9.Parse request [07:58:13]Sock 9.Check first char [07:58:13]Sock 9.First char is OK [07:58:13]request: POST /json_proto HTTP/1.0 [07:58:13]Method: POST [07:58:13]URL: /json_proto [07:58:13]Method is POST - this is cgi request [07:58:13]url: /json_proto [07:58:13]query_string will be loaded in cgi processing [07:58:13]execute_cgi json_proto POST (null) [07:58:13]execute_cgi path=json_proto method=POST [07:58:13]POST find Content-Length [07:58:13]Host: 172.17.49.196:8080 [07:58:13]Content-Length: 621 [07:58:13]Content-Type: application/json [07:58:13] [07:58:13]POST finish read [07:58:13]Found Content-Length = 621 [07:58:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164177", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:13]execute_script... [07:58:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164177", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:13]POST & json_proto [07:58:13]process_json_proto [07:58:13]json parsed OK: [07:58:13]protocol is kg_v1.0 [07:58:13]action value=close_receipt [07:58:13]process_action close_receipt [07:58:13]cmd_close_receipt [07:58:13]MH_GetDate [07:58:13]Write to MH i2c: F0 00 00 FD 05 F1 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: F0 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: F0 09 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: F0 09 00 FD 05 00 97 AC 18 67 BD 3B 11 67 2C [07:58:13]GetLastDocTimeStamp 1729670238 [07:58:13]current date 1729670295 [07:58:13]FM_GetShiftState [07:58:13]SAM_PROTO_GetShiftState [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 13 01 00 [07:58:13]Write to MH i2c: E2 08 00 FE 05 80 13 01 00 00 00 00 00 80 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0E 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0E 00 FE 05 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CC [07:58:13]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:58:13]wFMCommunicate OK [07:58:13]SAM_PROTO_GetShiftState done [07:58:13]FM_GetShiftState done [07:58:13]opened in 1729642370 [07:58:13]opened+sec_in_day 1729728770 [07:58:13]quantity*price = 28800 [07:58:13]sum+1 = 28801 [07:58:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 17 23.10.2024 07:58 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50272 ФПД: 173099288433722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50272&fm=173099288433722&tin=02508201610067®Number=0000000000097022&sum=28800 0 [07:58:14]StoreToDocumentArchive [07:58:14]shift 491 fd 50272 [07:58:14]save to /storage/0491/doc_00050272 [07:58:14]save last doc name /storage/0491/doc_00050272 to /storage/kkm_last_doc_name [07:58:14]save OK [07:58:14]Clear old archive folders... [07:58:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:58:14]tlvbuf is 0020E8E0 [07:58:14]SAM_PROTO_ClearQueue [07:58:14]wFMCommunicate request_size=4 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 09 00 00 [07:58:14]Write to MH i2c: E2 08 00 0B 06 80 09 00 00 00 00 00 00 83 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [07:58:14]RAPDU: 90 00 [07:58:14]wFMCommunicate OK [07:58:14]SAM_PROTO_ClearQueue done [07:58:14]KKMCreateOFDPacket [07:58:14]OFDProtocolAddRootSTLVToBuf [07:58:14]FM_MakeSignedData [07:58:14]FM_MakeSignedData [07:58:14]SAM_PROTO_SignData [07:58:14]wFMCommunicate request_size=4 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 0D 01 02 [07:58:14]Write to MH i2c: E2 08 00 0C 06 80 0D 01 02 00 00 00 00 8B [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [07:58:14]RAPDU: 90 00 [07:58:14]wFMCommunicate OK [07:58:14]wFMCommunicate request_size=255 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 97 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [07:58:14]Write to MH i2c: E2 02 01 0D 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 97 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 82 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [07:58:14]RAPDU: 90 00 [07:58:14]wFMCommunicate OK [07:58:14]wFMCommunicate request_size=32 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C4 00 00 35 04 06 00 9D 6E D1 99 14 3A [07:58:14]Write to MH i2c: E2 23 00 0E 06 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C4 00 00 35 04 06 00 9D 6E D1 99 14 3A 00 00 C6 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [07:58:14]RAPDU: 90 00 [07:58:14]wFMCommunicate OK [07:58:14]wFMCommunicate request_size=4 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 0D 03 02 [07:58:14]Write to MH i2c: E2 08 00 0F 06 80 0D 03 02 00 00 00 00 90 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 0B 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 0B 00 0F 06 00 6E 66 D7 E6 64 8C B5 5B 90 00 22 [07:58:14]RAPDU: 6E 66 D7 E6 64 8C B5 5B 90 00 [07:58:14]wFMCommunicate OK [07:58:14]SAM_PROTO_SignData done [07:58:14]FM_MakeSignedData done [07:58:14]CreateOFDProtocolMessage [07:58:14]wFMCommunicate request_size=4 [07:58:14]MH_SAM_APDU [07:58:14]CAPDU: 80 11 00 00 [07:58:14]Write to MH i2c: E2 08 00 10 06 80 11 00 00 00 00 00 00 90 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:14]Read from MH i2c: E2 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 17 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: E2 17 00 10 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D7 [07:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:58:14]wFMCommunicate OK [07:58:14]CreateOFDProtocolMessage done [07:58:14]OFDSenderStorePacket 50272 [07:58:14]StoreOFDPacket docnum=50272 [07:58:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 E5 03 1D 01 B4 C1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 97 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C4 00 00 35 04 06 00 9D 6E D1 99 14 3A 6E 66 D7 E6 64 8C B5 5B [07:58:14]CheckFolder [07:58:14]dirname=/storage/ofd_packets [07:58:14]CheckFolder done [07:58:14]ProducePacketName [07:58:14]name=ofd_packets/00050272 [07:58:14]NVStorageSaveData ofd_packets/00050272 [07:58:14]File name is /storage/ofd_packets/00050272 [07:58:14]Write 323 bytes [07:58:14]NVStorageSaveData done [07:58:14]OFDSenderStorePacket done [07:58:14]KKMCreateOFDPacket done [07:58:14]NVStorageSaveData kkm_last_timestamp [07:58:14]File name is /storage/kkm_last_timestamp [07:58:14]Write 4 bytes [07:58:14]NVStorageSaveData done [07:58:14]ExternCall_PrintAddStr [07:58:14]wPrintStart [07:58:14]Write to MH i2c: 01 00 00 11 06 17 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [07:58:14]RasterBufferAndPrint [07:58:14]line Счет N : (3)164177 [07:58:14]line ИНН: 02508201610067 [07:58:14]line Контрольно-Кассовый Чек [07:58:14]line ПРОДАЖА [07:58:14]line Товар: 48743570 [07:58:14]line Сигареты Winston XStyle Blue [07:58:14]line 2.000 * 144.00 [07:58:14]line = 288.00 [07:58:14]line НДС 12% НСП 1% [07:58:14]line > о реализуемом товаре [07:58:14]line ИТОГО: 288.00 [07:58:14]line НСП 1% : 2.55 [07:58:14]line НДС 12% : 30.58 [07:58:14]line Наличными: 288.00 [07:58:14]line Безнал.: 0.00 [07:58:14]line Место: АЗС № 80 "Партнер Нефть" [07:58:14]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:58:14]line СНО: Общий режим [07:58:14]line Чек 17 23.10.2024 07:58 [07:58:14]line Смена: 491 ФФД: 1.0 [07:58:14]line ЗНМ: 0300000090 [07:58:14]line РНМ: 0000000000097022 [07:58:14]line Версия ККМ: 001 [07:58:14]line ФМ: 0000000000875000 [07:58:14]line ФД: 50272 [07:58:14]line ФПД: 173099288433722 [07:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50272&fm=173099288433722&tin=02508201610067®Number=0000000000097022&sum=28800 [07:58:15]OFD Sender: Processing packet 50272 [packets to send 7, broken 6] [07:58:15]ProducePacketName [07:58:15]name=ofd_packets/00050272 [07:58:15]OFD Sender: To server: pG, [07:58:15]CommunicateWithHost lk.salyk.kg:30040 [07:58:15]ConnectInit lk.salyk.kg [07:58:15]line 0 [07:58:15]written 0, free lines is 4095 [07:58:15]Connected sock=11 [07:58:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 E5 03 1D 01 B4 C1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 97 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C4 00 00 35 04 06 00 9D 6E D1 99 14 3A 6E 66 D7 E6 64 8C B5 5B [07:58:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 82 72 47 00 22 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C4 00 00 F4 03 04 00 2E 58 18 67 B6 04 01 00 00 95 5B 8F 66 39 AD D1 A8 [07:58:15]CommunicateWithHost err = 0 [07:58:15]CheckOFDResponse [07:58:15]1017 (14) - 77093643461234 [07:58:15]1041 (16) - 0000000000875000 [07:58:15]1040 (4) - 50272 [07:58:15]1012 (4) - 23.10.2024 01:58 [07:58:15]1206 (1) - 0 [07:58:15]OFD Sender: Remove packet 50272 [07:58:15]ProducePacketName [07:58:15]name=ofd_packets/00050272 [07:58:15]NVStorageDeleteData [07:58:15]Write to MH i2c: 01 00 00 39 06 3F [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: 01 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: 01 07 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 1E 0D 71 [07:58:15]RasterBufferAndPrint [07:58:15]line [07:58:15]line [07:58:15]line [07:58:15]line [07:58:15]line [07:58:15]written 0, free lines is 3364 [07:58:15]process_action close_receipt done [07:58:15]requested_data is exist [07:58:15]produce_requested_data [07:58:15]requested_item fm.sn is exist - process it [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 11 00 00 [07:58:15]Write to MH i2c: E2 08 00 40 06 80 11 00 00 00 00 00 00 C0 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 40 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 07 [07:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:58:15]wFMCommunicate OK [07:58:15]requested_item fd.num is exist - process it [07:58:15]SAM_PROTO_GetFieldsCounters [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 00 00 [07:58:15]Write to MH i2c: E2 08 00 41 06 80 13 00 00 00 00 00 00 C3 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 41 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [07:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetFieldsCounters done [07:58:15]requested_item shift.num is exist - process it [07:58:15]requested_item shift.opened is exist - process it [07:58:15]req_shift_opened [07:58:15]FM_GetShiftState [07:58:15]SAM_PROTO_GetShiftState [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 01 00 [07:58:15]Write to MH i2c: E2 08 00 42 06 80 13 01 00 00 00 00 00 C5 [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 42 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 11 [07:58:15]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetShiftState done [07:58:15]FM_GetShiftState done [07:58:15]req_shift_opened done [07:58:15]requested_item shift.open_date is exist - process it [07:58:15]req_shift_open_date [07:58:15]req_shift_open_date done [07:58:15]produce_requested_data done [07:58:15]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50272,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [07:58:15]process_action_free close_receipt [07:58:15]json_value_free [07:58:15]json_value_free done [07:58:15]process_json_proto returns [07:58:15]Send response to host [07:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50272,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [07:58:15]free response buf [07:58:15]execute_script done [07:58:15]execute_script returns [07:58:15]free content buf [07:58:15]Sock 9.Close socket [07:58:15]Sock 9.Thread stoped [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:26]accept exits with 7 [07:59:26]New connection [07:59:26]New thread 3067161956 created [07:59:26]Thread 3067305316 joined [07:59:26]Waiting for new connection... [07:59:26] Sock 7.Parse request [07:59:26]Sock 7.Check first char [07:59:26]Sock 7.First char is OK [07:59:26]request: POST /json_proto HTTP/1.0 [07:59:26]Method: POST [07:59:26]URL: /json_proto [07:59:26]Method is POST - this is cgi request [07:59:26]url: /json_proto [07:59:26]query_string will be loaded in cgi processing [07:59:26]execute_cgi json_proto POST (null) [07:59:26]execute_cgi path=json_proto method=POST [07:59:26]POST find Content-Length [07:59:26]Host: 172.17.49.196:8080 [07:59:26]Content-Length: 654 [07:59:26]Content-Type: application/json [07:59:26] [07:59:26]POST finish read [07:59:26]Found Content-Length = 654 [07:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164178", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "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" ] } } [07:59:26]execute_script... [07:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164178", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "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" ] } } [07:59:26]POST & json_proto [07:59:26]process_json_proto [07:59:26]json parsed OK: [07:59:26]protocol is kg_v1.0 [07:59:26]action value=close_receipt [07:59:26]process_action close_receipt [07:59:26]cmd_close_receipt [07:59:26]MH_GetDate [07:59:26]Write to MH i2c: F0 00 00 43 06 38 [07:59:26]Write i2c OK [07:59:26]MH_I2C_Read... [07:59:26]Read from MH i2c: F0 [07:59:26]MH_I2C_Read... [07:59:26]Read from MH i2c: F0 09 00 [07:59:26]MH_I2C_Read... [07:59:26]Read from MH i2c: F0 09 00 43 06 00 E0 AC 18 67 BD 3B 11 67 BC [07:59:26]GetLastDocTimeStamp 1729670295 [07:59:26]current date 1729670368 [07:59:26]FM_GetShiftState [07:59:26]SAM_PROTO_GetShiftState [07:59:26]wFMCommunicate request_size=4 [07:59:26]MH_SAM_APDU [07:59:26]CAPDU: 80 13 01 00 [07:59:26]Write to MH i2c: E2 08 00 44 06 80 13 01 00 00 00 00 00 C7 [07:59:26]Write i2c OK [07:59:26]MH_I2C_Read... [07:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:26]Read from MH i2c: E2 [07:59:26]MH_I2C_Read... [07:59:26]Read from MH i2c: E2 0E 00 [07:59:26]MH_I2C_Read... [07:59:26]Read from MH i2c: E2 0E 00 44 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 13 [07:59:26]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:59:26]wFMCommunicate OK [07:59:26]SAM_PROTO_GetShiftState done [07:59:26]FM_GetShiftState done [07:59:26]opened in 1729642370 [07:59:26]opened+sec_in_day 1729728770 [07:59:26]quantity*price = 19000 [07:59:26]sum+1 = 19001 [07:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 18 23.10.2024 07:59 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50273 ФПД: 42411763489722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075928&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50273&fm=42411763489722&tin=02508201610067®Number=0000000000097022&sum=19000 0 [07:59:27]StoreToDocumentArchive [07:59:27]shift 491 fd 50273 [07:59:27]save to /storage/0491/doc_00050273 [07:59:27]save last doc name /storage/0491/doc_00050273 to /storage/kkm_last_doc_name [07:59:27]save OK [07:59:27]Clear old archive folders... [07:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:59:27]tlvbuf is 00236690 [07:59:27]SAM_PROTO_ClearQueue [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 09 00 00 [07:59:27]Write to MH i2c: E2 08 00 51 06 80 09 00 00 00 00 00 00 C9 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [07:59:27]RAPDU: 90 00 [07:59:27]wFMCommunicate OK [07:59:27]SAM_PROTO_ClearQueue done [07:59:27]KKMCreateOFDPacket [07:59:27]OFDProtocolAddRootSTLVToBuf [07:59:27]FM_MakeSignedData [07:59:27]FM_MakeSignedData [07:59:27]SAM_PROTO_SignData [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 0D 01 02 [07:59:27]Write to MH i2c: E2 08 00 52 06 80 0D 01 02 00 00 00 00 D1 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [07:59:27]RAPDU: 90 00 [07:59:27]wFMCommunicate OK [07:59:27]wFMCommunicate request_size=255 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 12 00 00 00 F4 03 04 00 E0 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [07:59:27]Write to MH i2c: E2 02 01 53 06 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 12 00 00 00 F4 03 04 00 E0 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 EC [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [07:59:27]RAPDU: 90 00 [07:59:27]wFMCommunicate OK [07:59:27]wFMCommunicate request_size=34 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C4 00 00 35 04 06 00 26 92 C2 18 DB BA [07:59:27]Write to MH i2c: E2 25 00 54 06 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C4 00 00 35 04 06 00 26 92 C2 18 DB BA 00 00 D5 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [07:59:27]RAPDU: 90 00 [07:59:27]wFMCommunicate OK [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 0D 03 02 [07:59:27]Write to MH i2c: E2 08 00 55 06 80 0D 03 02 00 00 00 00 D6 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 0B 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 0B 00 55 06 00 FE FF 16 E5 3D 75 EB 35 90 00 A1 [07:59:27]RAPDU: FE FF 16 E5 3D 75 EB 35 90 00 [07:59:27]wFMCommunicate OK [07:59:27]SAM_PROTO_SignData done [07:59:27]FM_MakeSignedData done [07:59:27]CreateOFDProtocolMessage [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 11 00 00 [07:59:27]Write to MH i2c: E2 08 00 56 06 80 11 00 00 00 00 00 00 D6 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 17 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 17 00 56 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1D [07:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:59:27]wFMCommunicate OK [07:59:27]CreateOFDProtocolMessage done [07:59:27]OFDSenderStorePacket 50273 [07:59:27]StoreOFDPacket docnum=50273 [07:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 FB E6 1F 01 48 80 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 12 00 00 00 F4 03 04 00 E0 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C4 00 00 35 04 06 00 26 92 C2 18 DB BA FE FF 16 E5 3D 75 EB 35 [07:59:27]CheckFolder [07:59:27]dirname=/storage/ofd_packets [07:59:27]CheckFolder done [07:59:27]ProducePacketName [07:59:27]name=ofd_packets/00050273 [07:59:27]NVStorageSaveData ofd_packets/00050273 [07:59:27]File name is /storage/ofd_packets/00050273 [07:59:27]Write 325 bytes [07:59:27]NVStorageSaveData done [07:59:27]OFDSenderStorePacket done [07:59:27]KKMCreateOFDPacket done [07:59:27]NVStorageSaveData kkm_last_timestamp [07:59:27]File name is /storage/kkm_last_timestamp [07:59:27]Write 4 bytes [07:59:27]NVStorageSaveData done [07:59:27]ExternCall_PrintAddStr [07:59:27]wPrintStart [07:59:27]Write to MH i2c: 01 00 00 57 06 5D [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: 01 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: 01 07 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: 01 07 00 57 06 00 00 00 00 00 FF 0F 72 [07:59:27]RasterBufferAndPrint [07:59:27]line Счет N : (3)164178 [07:59:27]line ИНН: 02508201610067 [07:59:27]line Контрольно-Кассовый Чек [07:59:27]line ПРОДАЖА [07:59:27]line Товар: 4660013331438 [07:59:27]line Эскимо Московское [07:59:27]line 2.000 * 95.00 [07:59:27]line = 190.00 [07:59:27]line НДС 12% НСП 1% [07:59:27]line > о реализуемом товаре [07:59:27]line ИТОГО: 190.00 [07:59:27]line НСП 1% : 1.68 [07:59:27]line НДС 12% : 20.18 [07:59:27]line Наличными: 190.00 [07:59:27]line Безнал.: 0.00 [07:59:27]line Место: АЗС № 80 "Партнер Нефть" [07:59:27]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:59:27]line СНО: Общий режим [07:59:27]line Чек 18 23.10.2024 07:59 [07:59:27]line Смена: 491 ФФД: 1.0 [07:59:27]line ЗНМ: 0300000090 [07:59:27]line РНМ: 0000000000097022 [07:59:27]line Версия ККМ: 001 [07:59:27]line ФМ: 0000000000875000 [07:59:27]line ФД: 50273 [07:59:27]line ФПД: 42411763489722 [07:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075928&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50273&fm=42411763489722&tin=02508201610067®Number=0000000000097022&sum=19000 [07:59:28]OFD Sender: Processing packet 50273 [packets to send 7, broken 6] [07:59:28]ProducePacketName [07:59:28]name=ofd_packets/00050273 [07:59:28]OFD Sender: To server: pG, [07:59:28]CommunicateWithHost lk.salyk.kg:30040 [07:59:28]ConnectInit lk.salyk.kg [07:59:28]line 0 [07:59:28]written 0, free lines is 4095 [07:59:28]Connected sock=10 [07:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 FB E6 1F 01 48 80 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 12 00 00 00 F4 03 04 00 E0 AC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C4 00 00 35 04 06 00 26 92 C2 18 DB BA FE FF 16 E5 3D 75 EB 35 [07:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7B 63 47 00 68 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C4 00 00 F4 03 04 00 78 58 18 67 B6 04 01 00 00 E0 9F 8B A9 B5 93 23 F6 [07:59:28]CommunicateWithHost err = 0 [07:59:28]CheckOFDResponse [07:59:28]1017 (14) - 77093643461234 [07:59:28]1041 (16) - 0000000000875000 [07:59:28]1040 (4) - 50273 [07:59:28]1012 (4) - 23.10.2024 01:59 [07:59:28]1206 (1) - 0 [07:59:28]OFD Sender: Remove packet 50273 [07:59:28]ProducePacketName [07:59:28]name=ofd_packets/00050273 [07:59:28]NVStorageDeleteData [07:59:28]Write to MH i2c: 01 00 00 7F 06 85 [07:59:28]Write i2c OK [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: 01 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: 01 07 00 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 20 0D B9 [07:59:28]RasterBufferAndPrint [07:59:28]line [07:59:28]line [07:59:28]line [07:59:28]line [07:59:28]line [07:59:28]written 0, free lines is 3366 [07:59:28]process_action close_receipt done [07:59:28]requested_data is exist [07:59:28]produce_requested_data [07:59:28]requested_item fm.sn is exist - process it [07:59:28]wFMCommunicate request_size=4 [07:59:28]MH_SAM_APDU [07:59:28]CAPDU: 80 11 00 00 [07:59:28]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [07:59:28]Write i2c OK [07:59:28]MH_I2C_Read... [07:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:28]Read from MH i2c: E2 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 17 00 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4D [07:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:59:28]wFMCommunicate OK [07:59:28]requested_item fd.num is exist - process it [07:59:28]SAM_PROTO_GetFieldsCounters [07:59:28]wFMCommunicate request_size=4 [07:59:28]MH_SAM_APDU [07:59:28]CAPDU: 80 13 00 00 [07:59:28]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [07:59:28]Write i2c OK [07:59:28]MH_I2C_Read... [07:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:28]Read from MH i2c: E2 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 62 00 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 62 00 87 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 61 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [07:59:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 61 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:28]wFMCommunicate OK [07:59:28]SAM_PROTO_GetFieldsCounters done [07:59:28]requested_item shift.num is exist - process it [07:59:28]requested_item shift.opened is exist - process it [07:59:28]req_shift_opened [07:59:28]FM_GetShiftState [07:59:28]SAM_PROTO_GetShiftState [07:59:28]wFMCommunicate request_size=4 [07:59:28]MH_SAM_APDU [07:59:28]CAPDU: 80 13 01 00 [07:59:28]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [07:59:28]Write i2c OK [07:59:28]MH_I2C_Read... [07:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:28]Read from MH i2c: E2 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 0E 00 [07:59:28]MH_I2C_Read... [07:59:28]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 57 [07:59:28]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [07:59:28]wFMCommunicate OK [07:59:28]SAM_PROTO_GetShiftState done [07:59:28]FM_GetShiftState done [07:59:28]req_shift_opened done [07:59:28]requested_item shift.open_date is exist - process it [07:59:28]req_shift_open_date [07:59:28]req_shift_open_date done [07:59:28]produce_requested_data done [07:59:28]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50273,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [07:59:28]process_action_free close_receipt [07:59:28]json_value_free [07:59:28]json_value_free done [07:59:28]process_json_proto returns [07:59:28]Send response to host [07:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50273,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [07:59:28]free response buf [07:59:28]execute_script done [07:59:28]execute_script returns [07:59:28]free content buf [07:59:28]Sock 7.Close socket [07:59:28]Sock 7.Thread stoped [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:58]accept exits with 9 [08:07:58]New connection [08:07:58]New thread 3067305316 created [08:07:58]Thread 3067161956 joined [08:07:58]Waiting for new connection... [08:07:58] Sock 9.Parse request [08:07:58]Sock 9.Check first char [08:07:58]Sock 9.First char is OK [08:07:58]request: POST /json_proto HTTP/1.0 [08:07:58]Method: POST [08:07:58]URL: /json_proto [08:07:58]Method is POST - this is cgi request [08:07:58]url: /json_proto [08:07:58]query_string will be loaded in cgi processing [08:07:58]execute_cgi json_proto POST (null) [08:07:58]execute_cgi path=json_proto method=POST [08:07:58]POST find Content-Length [08:07:58]Host: 172.17.49.196:8080 [08:07:58]Content-Length: 646 [08:07:58]Content-Type: application/json [08:07:58] [08:07:58]POST finish read [08:07:58]Found Content-Length = 646 [08:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164179", "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" ] } } [08:07:58]execute_script... [08:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164179", "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" ] } } [08:07:58]POST & json_proto [08:07:58]process_json_proto [08:07:58]json parsed OK: [08:07:58]protocol is kg_v1.0 [08:07:58]action value=close_receipt [08:07:58]process_action close_receipt [08:07:58]cmd_close_receipt [08:07:58]MH_GetDate [08:07:58]Write to MH i2c: F0 00 00 89 06 7E [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: F0 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: F0 09 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: F0 09 00 89 06 00 E0 AE 18 67 BD 3B 11 67 04 [08:07:58]GetLastDocTimeStamp 1729670368 [08:07:58]current date 1729670880 [08:07:58]FM_GetShiftState [08:07:58]SAM_PROTO_GetShiftState [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 13 01 00 [08:07:58]Write to MH i2c: E2 08 00 8A 06 80 13 01 00 00 00 00 00 0D [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0E 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0E 00 8A 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 59 [08:07:58]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:07:58]wFMCommunicate OK [08:07:58]SAM_PROTO_GetShiftState done [08:07:58]FM_GetShiftState done [08:07:58]opened in 1729642370 [08:07:58]opened+sec_in_day 1729728770 [08:07:58]quantity*price = 13000 [08:07:58]sum+1 = 13001 [08:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 19 23.10.2024 08:08 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50274 ФПД: 169578351111210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080800&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50274&fm=169578351111210&tin=02508201610067®Number=0000000000097022&sum=13000 0 [08:07:59]StoreToDocumentArchive [08:07:59]shift 491 fd 50274 [08:07:59]save to /storage/0491/doc_00050274 [08:07:59]save last doc name /storage/0491/doc_00050274 to /storage/kkm_last_doc_name [08:07:59]save OK [08:07:59]Clear old archive folders... [08:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:07:59]tlvbuf is 00235B80 [08:07:59]SAM_PROTO_ClearQueue [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 09 00 00 [08:07:59]Write to MH i2c: E2 08 00 97 06 80 09 00 00 00 00 00 00 0F [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [08:07:59]RAPDU: 90 00 [08:07:59]wFMCommunicate OK [08:07:59]SAM_PROTO_ClearQueue done [08:07:59]KKMCreateOFDPacket [08:07:59]OFDProtocolAddRootSTLVToBuf [08:07:59]FM_MakeSignedData [08:07:59]FM_MakeSignedData [08:07:59]SAM_PROTO_SignData [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 0D 01 02 [08:07:59]Write to MH i2c: E2 08 00 98 06 80 0D 01 02 00 00 00 00 17 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [08:07:59]RAPDU: 90 00 [08:07:59]wFMCommunicate OK [08:07:59]wFMCommunicate request_size=255 [08:07:59]MH_SAM_APDU [08:07:59]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 13 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [08:07:59]Write to MH i2c: E2 02 01 99 06 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 13 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 2D [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]OFD Sender: No OFD packet to send [08:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [08:07:59]RAPDU: 90 00 [08:07:59]wFMCommunicate OK [08:07:59]wFMCommunicate request_size=41 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C4 00 00 35 04 06 00 9A 3B 09 61 2C 2A [08:07:59]Write to MH i2c: E2 2C 00 9A 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C4 00 00 35 04 06 00 9A 3B 09 61 2C 2A 00 00 98 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [08:07:59]RAPDU: 90 00 [08:07:59]wFMCommunicate OK [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 0D 03 02 [08:07:59]Write to MH i2c: E2 08 00 9B 06 80 0D 03 02 00 00 00 00 1C [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 0B 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 0B 00 9B 06 00 62 1B 39 B1 20 C7 86 BE 90 00 AF [08:07:59]RAPDU: 62 1B 39 B1 20 C7 86 BE 90 00 [08:07:59]wFMCommunicate OK [08:07:59]SAM_PROTO_SignData done [08:07:59]FM_MakeSignedData done [08:07:59]CreateOFDProtocolMessage [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 11 00 00 [08:07:59]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 17 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 63 [08:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:07:59]wFMCommunicate OK [08:07:59]CreateOFDProtocolMessage done [08:07:59]OFDSenderStorePacket 50274 [08:07:59]StoreOFDPacket docnum=50274 [08:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 C5 63 26 01 B0 BC 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 13 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C4 00 00 35 04 06 00 9A 3B 09 61 2C 2A 62 1B 39 B1 20 C7 86 BE [08:07:59]CheckFolder [08:07:59]dirname=/storage/ofd_packets [08:07:59]CheckFolder done [08:07:59]ProducePacketName [08:07:59]name=ofd_packets/00050274 [08:07:59]NVStorageSaveData ofd_packets/00050274 [08:07:59]File name is /storage/ofd_packets/00050274 [08:07:59]Write 332 bytes [08:07:59]NVStorageSaveData done [08:07:59]OFDSenderStorePacket done [08:07:59]KKMCreateOFDPacket done [08:07:59]NVStorageSaveData kkm_last_timestamp [08:07:59]File name is /storage/kkm_last_timestamp [08:07:59]Write 4 bytes [08:07:59]NVStorageSaveData done [08:07:59]ExternCall_PrintAddStr [08:07:59]wPrintStart [08:07:59]Write to MH i2c: 01 00 00 9D 06 A3 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 07 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [08:07:59]RasterBufferAndPrint [08:07:59]line Счет N : (3)164179 [08:07:59]line ИНН: 02508201610067 [08:07:59]line Контрольно-Кассовый Чек [08:07:59]line ПРОДАЖА [08:07:59]line Товар: 2000036220012 [08:07:59]line Кофе Капучино XL(GABB TRADE) [08:07:59]line 1.000 * 130.00 [08:07:59]line = 130.00 [08:07:59]line НДС 12% НСП 1% [08:07:59]line > о реализуемом товаре [08:07:59]line ИТОГО: 130.00 [08:07:59]line НСП 1% : 1.15 [08:07:59]line НДС 12% : 13.80 [08:07:59]line Наличными: 130.00 [08:07:59]line Безнал.: 0.00 [08:07:59]line Место: АЗС № 80 "Партнер Нефть" [08:07:59]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:07:59]line СНО: Общий режим [08:07:59]line Чек 19 23.10.2024 08:08 [08:07:59]line Смена: 491 ФФД: 1.0 [08:07:59]line ЗНМ: 0300000090 [08:07:59]line РНМ: 0000000000097022 [08:07:59]line Версия ККМ: 001 [08:07:59]line ФМ: 0000000000875000 [08:07:59]line ФД: 50274 [08:07:59]line ФПД: 169578351111210 [08:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080800&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50274&fm=169578351111210&tin=02508201610067®Number=0000000000097022&sum=13000 [08:08:00]line 0 [08:08:00]OFD Sender: Processing packet 50274 [packets to send 7, broken 6] [08:08:00]ProducePacketName [08:08:00]name=ofd_packets/00050274 [08:08:00]OFD Sender: To server: pG, [08:08:00]CommunicateWithHost lk.salyk.kg:30040 [08:08:00]ConnectInit lk.salyk.kg [08:08:00]written 0, free lines is 4095 [08:08:00]Connected sock=10 [08:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 C5 63 26 01 B0 BC 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 13 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C4 00 00 35 04 06 00 9A 3B 09 61 2C 2A 62 1B 39 B1 20 C7 86 BE [08:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C5 CA 47 00 43 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C4 00 00 F4 03 04 00 78 5A 18 67 B6 04 01 00 00 E7 79 FA 15 8F 3A BF 5C [08:08:00]CommunicateWithHost err = 0 [08:08:00]CheckOFDResponse [08:08:00]1017 (14) - 77093643461234 [08:08:00]1041 (16) - 0000000000875000 [08:08:00]1040 (4) - 50274 [08:08:00]1012 (4) - 23.10.2024 02:07 [08:08:00]1206 (1) - 0 [08:08:00]OFD Sender: Remove packet 50274 [08:08:00]ProducePacketName [08:08:00]name=ofd_packets/00050274 [08:08:00]NVStorageDeleteData [08:08:00]Write to MH i2c: 01 00 00 C6 06 CC [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 01 0D E1 [08:08:00]RasterBufferAndPrint [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]written 0, free lines is 3335 [08:08:00]process_action close_receipt done [08:08:00]requested_data is exist [08:08:00]produce_requested_data [08:08:00]requested_item fm.sn is exist - process it [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 11 00 00 [08:08:00]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 94 [08:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:08:00]wFMCommunicate OK [08:08:00]requested_item fd.num is exist - process it [08:08:00]SAM_PROTO_GetFieldsCounters [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 00 00 [08:08:00]Write to MH i2c: E2 08 00 CE 06 80 13 00 00 00 00 00 00 50 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 CE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [08:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetFieldsCounters done [08:08:00]requested_item shift.num is exist - process it [08:08:00]requested_item shift.opened is exist - process it [08:08:00]req_shift_opened [08:08:00]FM_GetShiftState [08:08:00]SAM_PROTO_GetShiftState [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 01 00 [08:08:00]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 9E [08:08:00]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetShiftState done [08:08:00]FM_GetShiftState done [08:08:00]req_shift_opened done [08:08:00]requested_item shift.open_date is exist - process it [08:08:00]req_shift_open_date [08:08:00]req_shift_open_date done [08:08:00]produce_requested_data done [08:08:00]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50274,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [08:08:00]process_action_free close_receipt [08:08:00]json_value_free [08:08:00]json_value_free done [08:08:00]process_json_proto returns [08:08:00]Send response to host [08:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50274,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [08:08:00]free response buf [08:08:00]execute_script done [08:08:00]execute_script returns [08:08:00]free content buf [08:08:00]Sock 9.Close socket [08:08:00]Sock 9.Thread stoped [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]accept exits with 7 [08:39:32]New connection [08:39:32]New thread 3067161956 created [08:39:32]Thread 3067305316 joined [08:39:32]Waiting for new connection... [08:39:32] Sock 7.Parse request [08:39:32]Sock 7.Check first char [08:39:32]Sock 7.First char is OK [08:39:32]request: POST /json_proto HTTP/1.0 [08:39:32]Method: POST [08:39:32]URL: /json_proto [08:39:32]Method is POST - this is cgi request [08:39:32]url: /json_proto [08:39:32]query_string will be loaded in cgi processing [08:39:32]execute_cgi json_proto POST (null) [08:39:32]execute_cgi path=json_proto method=POST [08:39:32]POST find Content-Length [08:39:32]Host: 172.17.49.196:8080 [08:39:32]Content-Length: 215 [08:39:32]Content-Type: application/json [08:39:32] [08:39:32]POST finish read [08:39:32]Found Content-Length = 215 [08:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:32]execute_script... [08:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:32]POST & json_proto [08:39:32]process_json_proto [08:39:32]json parsed OK: [08:39:32]protocol is kg_v1.0 [08:39:32]action value=get_value [08:39:32]process_action get_value [08:39:32]cmd_get_value [08:39:32]process_action get_value done [08:39:32]requested_data is exist [08:39:32]produce_requested_data [08:39:32]requested_item kkm.sn is exist - process it [08:39:32]requested_item kkm.ver is exist - process it [08:39:32]requested_item fm.sn is exist - process it [08:39:32]wFMCommunicate request_size=4 [08:39:32]MH_SAM_APDU [08:39:32]CAPDU: 80 11 00 00 [08:39:32]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:32]Read from MH i2c: E2 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 17 00 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 97 [08:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:39:32]wFMCommunicate OK [08:39:32]requested_item fd.num is exist - process it [08:39:32]SAM_PROTO_GetFieldsCounters [08:39:32]wFMCommunicate request_size=4 [08:39:32]MH_SAM_APDU [08:39:32]CAPDU: 80 13 00 00 [08:39:32]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:32]Read from MH i2c: E2 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 62 00 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 62 00 D1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:32]wFMCommunicate OK [08:39:32]SAM_PROTO_GetFieldsCounters done [08:39:32]requested_item shift.num is exist - process it [08:39:32]requested_item shift.opened is exist - process it [08:39:32]req_shift_opened [08:39:32]FM_GetShiftState [08:39:32]SAM_PROTO_GetShiftState [08:39:32]wFMCommunicate request_size=4 [08:39:32]MH_SAM_APDU [08:39:32]CAPDU: 80 13 01 00 [08:39:32]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:32]Read from MH i2c: E2 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 0E 00 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A1 [08:39:32]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:39:32]wFMCommunicate OK [08:39:32]SAM_PROTO_GetShiftState done [08:39:32]FM_GetShiftState done [08:39:32]req_shift_opened done [08:39:32]requested_item shift.open_date is exist - process it [08:39:32]req_shift_open_date [08:39:32]req_shift_open_date done [08:39:32]produce_requested_data done [08:39:32]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50274,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [08:39:32]process_action_free get_value [08:39:32]json_value_free [08:39:32]json_value_free done [08:39:32]process_json_proto returns [08:39:32]Send response to host [08:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50274,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [08:39:32]free response buf [08:39:32]execute_script done [08:39:32]execute_script returns [08:39:32]free content buf [08:39:32]Sock 7.Close socket [08:39:32]Sock 7.Thread stoped [08:39:32]accept exits with 9 [08:39:32]New connection [08:39:32]New thread 3067305316 created [08:39:32]Thread 3067161956 joined [08:39:32]Waiting for new connection... [08:39:32] Sock 9.Parse request [08:39:32]Sock 9.Check first char [08:39:32]Sock 9.First char is OK [08:39:32]request: POST /json_proto HTTP/1.0 [08:39:32]Method: POST [08:39:32]URL: /json_proto [08:39:32]Method is POST - this is cgi request [08:39:32]url: /json_proto [08:39:32]query_string will be loaded in cgi processing [08:39:32]execute_cgi json_proto POST (null) [08:39:32]execute_cgi path=json_proto method=POST [08:39:32]POST find Content-Length [08:39:32]Host: 172.17.49.196:8080 [08:39:32]Content-Length: 331 [08:39:32]Content-Type: application/json [08:39:32] [08:39:32]POST finish read [08:39:32]Found Content-Length = 331 [08:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:39:32]execute_script... [08:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:39:32]POST & json_proto [08:39:32]process_json_proto [08:39:32]json parsed OK: [08:39:32]protocol is kg_v1.0 [08:39:32]action value=get_value [08:39:32]process_action get_value [08:39:32]cmd_get_value [08:39:32]process_action get_value done [08:39:32]requested_data is exist [08:39:32]produce_requested_data [08:39:32]requested_item fm.sale.total is exist - process it [08:39:32]SAM_PROTO_GetFMData [08:39:32]wFMCommunicate request_size=4 [08:39:32]MH_SAM_APDU [08:39:32]CAPDU: 80 13 03 00 [08:39:32]Write to MH i2c: E2 08 00 D3 06 80 13 03 00 00 00 00 00 58 [08:39:32]OFD Sender: No OFD packet to send [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 D3 06 00 C5 04 85 04 C1 04 6E 04 04 00 8C C0 00 00 69 04 A1 00 6F 04 04 00 8C BF 00 00 B1 04 04 00 B9 15 5C 82 70 04 04 00 04 5B 5D 61 72 04 04 00 B5 BA FE 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 5F D8 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A0 4A 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 CA [08:39:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C C0 00 00 69 04 A1 00 6F 04 04 00 8C BF 00 00 B1 04 04 00 B9 15 5C 82 70 04 04 00 04 5B 5D 61 72 04 04 00 B5 BA FE 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 5F D8 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A0 4A 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 17 00 00 [08:39:33]Write to MH i2c: E2 08 00 D4 06 80 17 00 00 00 00 00 00 5A [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 D4 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [08:39:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 17 00 00 [08:39:33]Write to MH i2c: E2 08 00 D5 06 80 17 00 00 00 00 00 00 5B [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 D5 06 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [08:39:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 17 00 00 [08:39:33]Write to MH i2c: E2 08 00 D6 06 80 17 00 00 00 00 00 00 5C [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 FD 00 D6 06 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [08:39:33]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 17 00 00 [08:39:33]Write to MH i2c: E2 08 00 D7 06 80 17 00 00 00 00 00 00 5D [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 E2 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 E2 00 D7 06 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [08:39:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:39:34]wFMCommunicate OK [08:39:34]SAM_PROTO_GetFMData done [08:39:34]requested_item fm.sale_refund.total is exist - process it [08:39:34]requested_item fm.buy.total is exist - process it [08:39:34]requested_item shift.sale.total is exist - process it [08:39:34]SAM_PROTO_GetShiftData [08:39:34]wFMCommunicate request_size=4 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 13 02 00 [08:39:34]Write to MH i2c: E2 08 00 D8 06 80 13 02 00 00 00 00 00 5C [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 FD 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 FD 00 D8 06 00 AC 04 AA 04 A8 04 6E 04 04 00 13 00 00 00 69 04 99 00 6F 04 04 00 13 00 00 00 B1 04 03 00 B0 70 07 70 04 03 00 98 DE 06 72 04 02 00 18 92 00 04 79 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 43 CA 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 DA 10 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 80 [08:39:34]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 13 00 00 00 69 04 99 00 6F 04 04 00 13 00 00 00 B1 04 03 00 B0 70 07 70 04 03 00 98 DE 06 72 04 02 00 18 92 00 04 79 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 43 CA 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 DA 10 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [08:39:34]wFMCommunicate OK [08:39:34]wFMCommunicate request_size=4 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 17 00 00 [08:39:34]Write to MH i2c: E2 08 00 D9 06 80 17 00 00 00 00 00 00 5F [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:34]Read from MH i2c: E2 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 FD 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: E2 FD 00 D9 06 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [08:39:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:39:34]wFMCommunicate OK [08:39:34]wFMCommunicate request_size=4 [08:39:34]MH_SAM_APDU [08:39:34]CAPDU: 80 17 00 00 [08:39:34]Write to MH i2c: E2 08 00 DA 06 80 17 00 00 00 00 00 00 60 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 FD 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 FD 00 DA 06 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [08:39:35]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:39:35]wFMCommunicate OK [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 17 00 00 [08:39:35]Write to MH i2c: E2 08 00 DB 06 80 17 00 00 00 00 00 00 61 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 FD 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 FD 00 DB 06 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 90 00 D6 [08:39:35]RAPDU: 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 90 00 [08:39:35]wFMCommunicate OK [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 17 00 00 [08:39:35]Write to MH i2c: E2 08 00 DC 06 80 17 00 00 00 00 00 00 62 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 C9 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 C9 00 DC 06 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [08:39:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:39:35]wFMCommunicate OK [08:39:35]SAM_PROTO_GetShiftData done [08:39:35]requested_item shift.sale.total_cash is exist - process it [08:39:35]requested_item shift.sale_refund.total is exist - process it [08:39:35]requested_item shift.sale_refund.total_cash is exist - process it [08:39:35]requested_item shift.buy.total is exist - process it [08:39:35]requested_item shift.buy.total_cash is exist - process it [08:39:35]produce_requested_data done [08:39:35]produce_requested_data return {"fm.sale.total":21870729.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":4876.00,"shift.sale.total_cash":4502.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:39:35]process_action_free get_value [08:39:35]json_value_free [08:39:35]json_value_free done [08:39:35]process_json_proto returns [08:39:35]Send response to host [08:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21870729.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":4876.00,"shift.sale.total_cash":4502.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:39:35]free response buf [08:39:35]execute_script done [08:39:35]execute_script returns [08:39:35]free content buf [08:39:35]Sock 9.Close socket [08:39:35]Sock 9.Thread stoped [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:00]accept exits with 7 [08:48:00]New connection [08:48:00]New thread 3067161956 created [08:48:00]Thread 3067305316 joined [08:48:00]Waiting for new connection... [08:48:00] Sock 7.Parse request [08:48:00]Sock 7.Check first char [08:48:00]Sock 7.First char is OK [08:48:00]request: POST /json_proto HTTP/1.0 [08:48:00]Method: POST [08:48:00]URL: /json_proto [08:48:00]Method is POST - this is cgi request [08:48:00]url: /json_proto [08:48:00]query_string will be loaded in cgi processing [08:48:00]execute_cgi json_proto POST (null) [08:48:00]execute_cgi path=json_proto method=POST [08:48:00]POST find Content-Length [08:48:00]Host: 172.17.49.196:8080 [08:48:00]Content-Length: 621 [08:48:00]Content-Type: application/json [08:48:00] [08:48:00]POST finish read [08:48:00]Found Content-Length = 621 [08:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164180", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:00]execute_script... [08:48:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164180", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:00]POST & json_proto [08:48:00]process_json_proto [08:48:00]json parsed OK: [08:48:00]protocol is kg_v1.0 [08:48:00]action value=close_receipt [08:48:00]process_action close_receipt [08:48:00]cmd_close_receipt [08:48:00]MH_GetDate [08:48:00]Write to MH i2c: F0 00 00 DD 06 D2 [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: F0 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: F0 09 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: F0 09 00 DD 06 00 42 B8 18 67 BD 3B 11 67 C4 [08:48:00]GetLastDocTimeStamp 1729670880 [08:48:00]current date 1729673282 [08:48:00]FM_GetShiftState [08:48:00]SAM_PROTO_GetShiftState [08:48:00]wFMCommunicate request_size=4 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 13 01 00 [08:48:00]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:00]Read from MH i2c: E2 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 0E 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AD [08:48:00]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:48:00]wFMCommunicate OK [08:48:00]SAM_PROTO_GetShiftState done [08:48:00]FM_GetShiftState done [08:48:00]opened in 1729642370 [08:48:00]opened+sec_in_day 1729728770 [08:48:00]quantity*price = 14400 [08:48:00]sum+1 = 14401 [08:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 20 23.10.2024 08:48 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50275 ФПД: 187493106596562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084802&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50275&fm=187493106596562&tin=02508201610067®Number=0000000000097022&sum=14400 0 [08:48:01]StoreToDocumentArchive [08:48:01]shift 491 fd 50275 [08:48:01]save to /storage/0491/doc_00050275 [08:48:01]save last doc name /storage/0491/doc_00050275 to /storage/kkm_last_doc_name [08:48:01]save OK [08:48:01]Clear old archive folders... [08:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:48:01]tlvbuf is 00235B80 [08:48:01]SAM_PROTO_ClearQueue [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 09 00 00 [08:48:01]Write to MH i2c: E2 08 00 EB 06 80 09 00 00 00 00 00 00 63 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]SAM_PROTO_ClearQueue done [08:48:01]KKMCreateOFDPacket [08:48:01]OFDProtocolAddRootSTLVToBuf [08:48:01]FM_MakeSignedData [08:48:01]FM_MakeSignedData [08:48:01]SAM_PROTO_SignData [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 01 02 [08:48:01]Write to MH i2c: E2 08 00 EC 06 80 0D 01 02 00 00 00 00 6B [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]wFMCommunicate request_size=255 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 14 00 00 00 F4 03 04 00 42 B8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [08:48:01]Write to MH i2c: E2 02 01 ED 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 14 00 00 00 F4 03 04 00 42 B8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 35 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]wFMCommunicate request_size=32 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C4 00 00 35 04 06 00 AA 86 24 04 3A D2 [08:48:01]Write to MH i2c: E2 23 00 EE 06 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C4 00 00 35 04 06 00 AA 86 24 04 3A D2 00 00 4A [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 03 02 [08:48:01]Write to MH i2c: E2 08 00 EF 06 80 0D 03 02 00 00 00 00 70 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0B 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0B 00 EF 06 00 15 CA 86 30 76 2E 55 69 90 00 68 [08:48:01]RAPDU: 15 CA 86 30 76 2E 55 69 90 00 [08:48:01]wFMCommunicate OK [08:48:01]SAM_PROTO_SignData done [08:48:01]FM_MakeSignedData done [08:48:01]CreateOFDProtocolMessage [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 11 00 00 [08:48:01]Write to MH i2c: E2 08 00 F0 06 80 11 00 00 00 00 00 00 70 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 17 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 17 00 F0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B7 [08:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:48:01]wFMCommunicate OK [08:48:01]CreateOFDProtocolMessage done [08:48:01]OFDSenderStorePacket 50275 [08:48:01]StoreOFDPacket docnum=50275 [08:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 22 7A 1D 01 7F 1A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 14 00 00 00 F4 03 04 00 42 B8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C4 00 00 35 04 06 00 AA 86 24 04 3A D2 15 CA 86 30 76 2E 55 69 [08:48:01]CheckFolder [08:48:01]dirname=/storage/ofd_packets [08:48:01]CheckFolder done [08:48:01]ProducePacketName [08:48:01]name=ofd_packets/00050275 [08:48:01]NVStorageSaveData ofd_packets/00050275 [08:48:01]File name is /storage/ofd_packets/00050275 [08:48:01]Write 323 bytes [08:48:01]NVStorageSaveData done [08:48:01]OFDSenderStorePacket done [08:48:01]KKMCreateOFDPacket done [08:48:01]NVStorageSaveData kkm_last_timestamp [08:48:01]File name is /storage/kkm_last_timestamp [08:48:01]Write 4 bytes [08:48:01]NVStorageSaveData done [08:48:01]ExternCall_PrintAddStr [08:48:01]wPrintStart [08:48:01]Write to MH i2c: 01 00 00 F1 06 F7 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [08:48:01]RasterBufferAndPrint [08:48:01]line Счет N : (3)164180 [08:48:01]line ИНН: 02508201610067 [08:48:01]line Контрольно-Кассовый Чек [08:48:01]line ПРОДАЖА [08:48:01]line Товар: 48747059 [08:48:01]line Сигареты Winston Legend Blue [08:48:01]line 1.000 * 144.00 [08:48:01]line = 144.00 [08:48:01]line НДС 12% НСП 1% [08:48:01]line > о реализуемом товаре [08:48:01]line ИТОГО: 144.00 [08:48:01]line НСП 1% : 1.27 [08:48:01]line НДС 12% : 15.29 [08:48:01]line Наличными: 144.00 [08:48:01]line Безнал.: 0.00 [08:48:01]line Место: АЗС № 80 "Партнер Нефть" [08:48:01]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:48:01]line СНО: Общий режим [08:48:01]line Чек 20 23.10.2024 08:48 [08:48:01]line Смена: 491 ФФД: 1.0 [08:48:01]line ЗНМ: 0300000090 [08:48:01]line РНМ: 0000000000097022 [08:48:01]line Версия ККМ: 001 [08:48:01]line ФМ: 0000000000875000 [08:48:01]line ФД: 50275 [08:48:01]line ФПД: 187493106596562 [08:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084802&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50275&fm=187493106596562&tin=02508201610067®Number=0000000000097022&sum=14400 [08:48:01]line 0 [08:48:02]written 0, free lines is 4095 [08:48:02]OFD Sender: Processing packet 50275 [packets to send 7, broken 6] [08:48:02]ProducePacketName [08:48:02]name=ofd_packets/00050275 [08:48:02]OFD Sender: To server: pG, [08:48:02]CommunicateWithHost lk.salyk.kg:30040 [08:48:02]ConnectInit lk.salyk.kg [08:48:02]Connected sock=10 [08:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 22 7A 1D 01 7F 1A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 14 00 00 00 F4 03 04 00 42 B8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C4 00 00 35 04 06 00 AA 86 24 04 3A D2 15 CA 86 30 76 2E 55 69 [08:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 05 3F 47 00 BE 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C4 00 00 F4 03 04 00 DA 63 18 67 B6 04 01 00 00 C9 FE 94 65 03 3A 28 0E [08:48:02]CommunicateWithHost err = 0 [08:48:02]CheckOFDResponse [08:48:02]1017 (14) - 77093643461234 [08:48:02]1041 (16) - 0000000000875000 [08:48:02]1040 (4) - 50275 [08:48:02]1012 (4) - 23.10.2024 02:47 [08:48:02]1206 (1) - 0 [08:48:02]OFD Sender: Remove packet 50275 [08:48:02]ProducePacketName [08:48:02]name=ofd_packets/00050275 [08:48:02]NVStorageDeleteData [08:48:02]Write to MH i2c: 01 00 00 1A 07 21 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: 01 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: 01 07 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FE 0C 32 [08:48:02]RasterBufferAndPrint [08:48:02]line [08:48:02]line [08:48:02]line [08:48:02]line [08:48:02]line [08:48:02]written 0, free lines is 3334 [08:48:02]process_action close_receipt done [08:48:02]requested_data is exist [08:48:02]produce_requested_data [08:48:02]requested_item fm.sn is exist - process it [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 11 00 00 [08:48:02]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 17 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E9 [08:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:48:02]wFMCommunicate OK [08:48:02]requested_item fd.num is exist - process it [08:48:02]SAM_PROTO_GetFieldsCounters [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 13 00 00 [08:48:02]Write to MH i2c: E2 08 00 22 07 80 13 00 00 00 00 00 00 A5 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 62 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 62 00 22 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 63 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [08:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 63 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:02]wFMCommunicate OK [08:48:02]SAM_PROTO_GetFieldsCounters done [08:48:02]requested_item shift.num is exist - process it [08:48:02]requested_item shift.opened is exist - process it [08:48:02]req_shift_opened [08:48:02]FM_GetShiftState [08:48:02]SAM_PROTO_GetShiftState [08:48:02]wFMCommunicate request_size=4 [08:48:02]MH_SAM_APDU [08:48:02]CAPDU: 80 13 01 00 [08:48:02]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [08:48:02]Write i2c OK [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 [08:48:02]MH_I2C_Read... [08:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:02]Read from MH i2c: E2 0E 00 [08:48:02]MH_I2C_Read... [08:48:02]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F3 [08:48:02]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:48:02]wFMCommunicate OK [08:48:02]SAM_PROTO_GetShiftState done [08:48:02]FM_GetShiftState done [08:48:02]req_shift_opened done [08:48:02]requested_item shift.open_date is exist - process it [08:48:02]req_shift_open_date [08:48:02]req_shift_open_date done [08:48:02]produce_requested_data done [08:48:02]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50275,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [08:48:02]process_action_free close_receipt [08:48:02]json_value_free [08:48:02]json_value_free done [08:48:02]process_json_proto returns [08:48:02]Send response to host [08:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50275,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [08:48:02]free response buf [08:48:02]execute_script done [08:48:02]execute_script returns [08:48:02]free content buf [08:48:02]Sock 7.Close socket [08:48:02]Sock 7.Thread stoped [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:19]accept exits with 9 [08:52:19]New connection [08:52:19]New thread 3067305316 created [08:52:19]Thread 3067161956 joined [08:52:19]Waiting for new connection... [08:52:19] Sock 9.Parse request [08:52:19]Sock 9.Check first char [08:52:19]Sock 9.First char is OK [08:52:19]request: POST /json_proto HTTP/1.0 [08:52:19]Method: POST [08:52:19]URL: /json_proto [08:52:19]Method is POST - this is cgi request [08:52:19]url: /json_proto [08:52:19]query_string will be loaded in cgi processing [08:52:19]execute_cgi json_proto POST (null) [08:52:19]execute_cgi path=json_proto method=POST [08:52:19]POST find Content-Length [08:52:19]Host: 172.17.49.196:8080 [08:52:19]Content-Length: 623 [08:52:19]Content-Type: application/json [08:52:19] [08:52:19]POST finish read [08:52:19]Found Content-Length = 623 [08:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164181", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]execute_script... [08:52: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)164181", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]POST & json_proto [08:52:19]process_json_proto [08:52:19]json parsed OK: [08:52:19]protocol is kg_v1.0 [08:52:19]action value=close_receipt [08:52:19]process_action close_receipt [08:52:19]cmd_close_receipt [08:52:19]MH_GetDate [08:52:19]Write to MH i2c: F0 00 00 24 07 1A [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 24 07 00 45 B9 18 67 BD 3B 11 67 10 [08:52:19]GetLastDocTimeStamp 1729673282 [08:52:19]current date 1729673541 [08:52:19]FM_GetShiftState [08:52:19]SAM_PROTO_GetShiftState [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 01 00 [08:52:19]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F5 [08:52:19]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:52:19]wFMCommunicate OK [08:52:19]SAM_PROTO_GetShiftState done [08:52:19]FM_GetShiftState done [08:52:19]opened in 1729642370 [08:52:19]opened+sec_in_day 1729728770 [08:52:19]quantity*price = 14400 [08:52:19]sum+1 = 14401 [08:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 21 23.10.2024 08:52 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50276 ФПД: 209802172295732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085221&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50276&fm=209802172295732&tin=02508201610067®Number=0000000000097022&sum=14400 0 [08:52:20]StoreToDocumentArchive [08:52:20]shift 491 fd 50276 [08:52:20]save to /storage/0491/doc_00050276 [08:52:20]save last doc name /storage/0491/doc_00050276 to /storage/kkm_last_doc_name [08:52:20]save OK [08:52:20]Clear old archive folders... [08:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:52:20]tlvbuf is 00234050 [08:52:20]SAM_PROTO_ClearQueue [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 09 00 00 [08:52:20]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_ClearQueue done [08:52:20]KKMCreateOFDPacket [08:52:20]OFDProtocolAddRootSTLVToBuf [08:52:20]FM_MakeSignedData [08:52:20]FM_MakeSignedData [08:52:20]SAM_PROTO_SignData [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 01 02 [08:52:20]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=255 [08:52:20]MH_SAM_APDU [08:52:20]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 15 00 00 00 F4 03 04 00 45 B9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [08:52:20]Write to MH i2c: E2 02 01 34 07 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 15 00 00 00 F4 03 04 00 45 B9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 31 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=34 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C4 00 00 35 04 06 00 BE D0 5F F3 EA 34 [08:52:20]Write to MH i2c: E2 25 00 35 07 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C4 00 00 35 04 06 00 BE D0 5F F3 EA 34 00 00 91 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 03 02 [08:52:20]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0B 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0B 00 36 07 00 9D 1F 6B 77 7E 32 70 8A 90 00 01 [08:52:20]RAPDU: 9D 1F 6B 77 7E 32 70 8A 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_SignData done [08:52:20]FM_MakeSignedData done [08:52:20]CreateOFDProtocolMessage [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 11 00 00 [08:52:20]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 17 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FF [08:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:52:20]wFMCommunicate OK [08:52:20]CreateOFDProtocolMessage done [08:52:20]OFDSenderStorePacket 50276 [08:52:20]StoreOFDPacket docnum=50276 [08:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 A2 25 1F 01 97 E5 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 15 00 00 00 F4 03 04 00 45 B9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C4 00 00 35 04 06 00 BE D0 5F F3 EA 34 9D 1F 6B 77 7E 32 70 8A [08:52:20]CheckFolder [08:52:20]dirname=/storage/ofd_packets [08:52:20]CheckFolder done [08:52:20]ProducePacketName [08:52:20]name=ofd_packets/00050276 [08:52:20]NVStorageSaveData ofd_packets/00050276 [08:52:20]File name is /storage/ofd_packets/00050276 [08:52:20]Write 325 bytes [08:52:20]NVStorageSaveData done [08:52:20]OFDSenderStorePacket done [08:52:20]KKMCreateOFDPacket done [08:52:20]NVStorageSaveData kkm_last_timestamp [08:52:20]File name is /storage/kkm_last_timestamp [08:52:20]Write 4 bytes [08:52:20]NVStorageSaveData done [08:52:20]ExternCall_PrintAddStr [08:52:20]wPrintStart [08:52:20]Write to MH i2c: 01 00 00 38 07 3F [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 07 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [08:52:20]RasterBufferAndPrint [08:52:20]line Счет N : (3)164181 [08:52:20]line ИНН: 02508201610067 [08:52:20]line Контрольно-Кассовый Чек [08:52:20]line ПРОДАЖА [08:52:20]line Товар: 48743587 [08:52:20]line Сигареты Winston XStyle Silver [08:52:20]line 1.000 * 144.00 [08:52:20]line = 144.00 [08:52:20]line НДС 12% НСП 1% [08:52:20]line > о реализуемом товаре [08:52:20]line ИТОГО: 144.00 [08:52:20]line НСП 1% : 1.27 [08:52:20]line НДС 12% : 15.29 [08:52:20]line Наличными: 144.00 [08:52:20]line Безнал.: 0.00 [08:52:20]line Место: АЗС № 80 "Партнер Нефть" [08:52:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:52:20]line СНО: Общий режим [08:52:20]line Чек 21 23.10.2024 08:52 [08:52:20]line Смена: 491 ФФД: 1.0 [08:52:20]line ЗНМ: 0300000090 [08:52:20]line РНМ: 0000000000097022 [08:52:20]line Версия ККМ: 001 [08:52:20]line ФМ: 0000000000875000 [08:52:20]line ФД: 50276 [08:52:20]line ФПД: 209802172295732 [08:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085221&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50276&fm=209802172295732&tin=02508201610067®Number=0000000000097022&sum=14400 [08:52:21]line 0 [08:52:21]OFD Sender: Processing packet 50276 [packets to send 7, broken 6] [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00050276 [08:52:21]OFD Sender: To server: pG, [08:52:21]CommunicateWithHost lk.salyk.kg:30040 [08:52:21]ConnectInit lk.salyk.kg [08:52:21]written 0, free lines is 4095 [08:52:21]Connected sock=10 [08:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 A2 25 1F 01 97 E5 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 15 00 00 00 F4 03 04 00 45 B9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C4 00 00 35 04 06 00 BE D0 5F F3 EA 34 9D 1F 6B 77 7E 32 70 8A [08:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EE 36 47 00 F2 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C4 00 00 F4 03 04 00 DD 64 18 67 B6 04 01 00 00 06 16 96 FF 21 F5 A9 A4 [08:52:21]CommunicateWithHost err = 0 [08:52:21]CheckOFDResponse [08:52:21]1017 (14) - 77093643461234 [08:52:21]1041 (16) - 0000000000875000 [08:52:21]1040 (4) - 50276 [08:52:21]1012 (4) - 23.10.2024 02:52 [08:52:21]1206 (1) - 0 [08:52:21]OFD Sender: Remove packet 50276 [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00050276 [08:52:21]NVStorageDeleteData [08:52:21]Write to MH i2c: 01 00 00 61 07 68 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 61 07 00 00 00 00 00 13 0D 8F [08:52:21]RasterBufferAndPrint [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]written 0, free lines is 3354 [08:52:21]process_action close_receipt done [08:52:21]requested_data is exist [08:52:21]produce_requested_data [08:52:21]requested_item fm.sn is exist - process it [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 11 00 00 [08:52:21]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [08:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:52:21]wFMCommunicate OK [08:52:21]requested_item fd.num is exist - process it [08:52:21]SAM_PROTO_GetFieldsCounters [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 13 00 00 [08:52:21]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 62 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 62 00 69 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 64 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [08:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 64 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_GetFieldsCounters done [08:52:21]requested_item shift.num is exist - process it [08:52:21]requested_item shift.opened is exist - process it [08:52:21]req_shift_opened [08:52:21]FM_GetShiftState [08:52:21]SAM_PROTO_GetShiftState [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 13 01 00 [08:52:21]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:21]Read from MH i2c: E2 0E 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3A [08:52:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_GetShiftState done [08:52:21]FM_GetShiftState done [08:52:21]req_shift_opened done [08:52:21]requested_item shift.open_date is exist - process it [08:52:21]req_shift_open_date [08:52:21]req_shift_open_date done [08:52:21]produce_requested_data done [08:52:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50276,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [08:52:21]process_action_free close_receipt [08:52:21]json_value_free [08:52:21]json_value_free done [08:52:21]process_json_proto returns [08:52:21]Send response to host [08:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50276,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [08:52:21]free response buf [08:52:21]execute_script done [08:52:21]execute_script returns [08:52:21]free content buf [08:52:21]Sock 9.Close socket [08:52:21]Sock 9.Thread stoped [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:37]accept exits with 7 [08:58:37]New connection [08:58:37]New thread 3067161956 created [08:58:37]Thread 3067305316 joined [08:58:37]Waiting for new connection... [08:58:37] Sock 7.Parse request [08:58:37]Sock 7.Check first char [08:58:37]Sock 7.First char is OK [08:58:37]request: POST /json_proto HTTP/1.0 [08:58:37]Method: POST [08:58:37]URL: /json_proto [08:58:37]Method is POST - this is cgi request [08:58:37]url: /json_proto [08:58:37]query_string will be loaded in cgi processing [08:58:37]execute_cgi json_proto POST (null) [08:58:37]execute_cgi path=json_proto method=POST [08:58:37]POST find Content-Length [08:58:37]Host: 172.17.49.196:8080 [08:58:37]Content-Length: 1668 [08:58:37]Content-Type: application/json [08:58:37] [08:58:37]POST finish read [08:58:37]Found Content-Length = 1668 [08:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164182", "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" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 656.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:37]execute_script... [08:58: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)164182", "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" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 656.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:37]POST & json_proto [08:58:37]process_json_proto [08:58:37]json parsed OK: [08:58:37]protocol is kg_v1.0 [08:58:38]action value=close_receipt [08:58:38]process_action close_receipt [08:58:38]cmd_close_receipt [08:58:38]MH_GetDate [08:58:38]Write to MH i2c: F0 00 00 6B 07 61 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 6B 07 00 C0 BA 18 67 BD 3B 11 67 D3 [08:58:38]GetLastDocTimeStamp 1729673541 [08:58:38]current date 1729673920 [08:58:38]FM_GetShiftState [08:58:38]SAM_PROTO_GetShiftState [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 01 00 [08:58:38]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3C [08:58:38]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:58:38]wFMCommunicate OK [08:58:38]SAM_PROTO_GetShiftState done [08:58:38]FM_GetShiftState done [08:58:38]opened in 1729642370 [08:58:38]opened+sec_in_day 1729728770 [08:58:38]quantity*price = 39000 [08:58:38]sum+1 = 39001 [08:58:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420152 Салфетки влажн BEST GOLD 20шт 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600080322137 Ваф Коровка с шок начинкой 150г 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 656.00 НСП 1% : 5.80 НДС 12% : 69.67 Наличными: 0.00 Безнал.: 656.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 22 23.10.2024 08:58 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50277 ФПД: 94733289695723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085840&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50277&fm=94733289695723&tin=02508201610067®Number=0000000000097022&sum=65600 0 [08:58:39]StoreToDocumentArchive [08:58:39]shift 491 fd 50277 [08:58:39]save to /storage/0491/doc_00050277 [08:58:39]save last doc name /storage/0491/doc_00050277 to /storage/kkm_last_doc_name [08:58:39]save OK [08:58:39]Clear old archive folders... [08:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=645 [08:58:39]tlvbuf is 0022EF40 [08:58:39]SAM_PROTO_ClearQueue [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 09 00 00 [08:58:39]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [08:58:39]RAPDU: 90 00 [08:58:39]wFMCommunicate OK [08:58:39]SAM_PROTO_ClearQueue done [08:58:39]KKMCreateOFDPacket [08:58:39]OFDProtocolAddRootSTLVToBuf [08:58:39]FM_MakeSignedData [08:58:39]FM_MakeSignedData [08:58:39]SAM_PROTO_SignData [08:58:39]wFMCommunicate request_size=4 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 0D 01 02 [08:58:39]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [08:58:39]RAPDU: 90 00 [08:58:39]wFMCommunicate OK [08:58:39]wFMCommunicate request_size=255 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 0D 02 02 FA 03 00 85 02 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 70 00 8A 04 0D 00 [08:58:39]Write to MH i2c: E2 02 01 7B 07 80 0D 02 02 FA 00 03 00 85 02 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 70 00 8A 04 0D 00 00 00 9F [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [08:58:39]RAPDU: 90 00 [08:58:39]wFMCommunicate OK [08:58:39]wFMCommunicate request_size=255 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 0D 02 02 FA 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 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 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 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 [08:58:39]Write to MH i2c: E2 02 01 7C 07 80 0D 02 02 FA 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 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 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 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 00 00 C2 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:39]Read from MH i2c: E2 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 [08:58:39]MH_I2C_Read... [08:58:39]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [08:58:39]RAPDU: 90 00 [08:58:39]wFMCommunicate OK [08:58:39]wFMCommunicate request_size=154 [08:58:39]MH_SAM_APDU [08:58:39]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C0 BA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C4 00 00 35 04 06 00 56 28 D0 14 A9 EB [08:58:39]Write to MH i2c: E2 9D 00 7D 07 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C0 BA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C4 00 00 35 04 06 00 56 28 D0 14 A9 EB 00 00 41 [08:58:39]Write i2c OK [08:58:39]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 03 02 [08:58:40]Write to MH i2c: E2 08 00 7E 07 80 0D 03 02 00 00 00 00 00 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 7E 07 00 59 4D 10 AC C3 B4 EF CF 90 00 98 [08:58:40]RAPDU: 59 4D 10 AC C3 B4 EF CF 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_SignData done [08:58:40]FM_MakeSignedData done [08:58:40]CreateOFDProtocolMessage [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 11 00 00 [08:58:40]Write to MH i2c: E2 08 00 7F 07 80 11 00 00 00 00 00 00 00 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 7F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 47 [08:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:58:40]wFMCommunicate OK [08:58:40]CreateOFDProtocolMessage done [08:58:40]OFDSenderStorePacket 50277 [08:58:40]StoreOFDPacket docnum=50277 [08:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 99 02 00 00 90 72 91 02 46 90 5A 03 01 00 03 00 85 02 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 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 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 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C0 BA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C4 00 00 35 04 06 00 56 28 D0 14 A9 EB 59 4D 10 AC C3 B4 EF CF [08:58:40]CheckFolder [08:58:40]dirname=/storage/ofd_packets [08:58:40]CheckFolder done [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00050277 [08:58:40]NVStorageSaveData ofd_packets/00050277 [08:58:40]File name is /storage/ofd_packets/00050277 [08:58:40]Write 695 bytes [08:58:40]NVStorageSaveData done [08:58:40]OFDSenderStorePacket done [08:58:40]KKMCreateOFDPacket done [08:58:40]NVStorageSaveData kkm_last_timestamp [08:58:40]File name is /storage/kkm_last_timestamp [08:58:40]Write 4 bytes [08:58:40]NVStorageSaveData done [08:58:40]ExternCall_PrintAddStr [08:58:40]wPrintStart [08:58:40]Write to MH i2c: 01 00 00 80 07 87 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [08:58:40]RasterBufferAndPrint [08:58:40]line Счет N : (3)164182 [08:58:40]line ИНН: 02508201610067 [08:58:40]line Контрольно-Кассовый Чек [08:58:40]line ПРОДАЖА [08:58:40]line Товар: 2000036220012 [08:58:40]line Кофе Капучино XL(GABB TRADE) [08:58:40]line 3.000 * 130.00 [08:58:40]line = 390.00 [08:58:40]line НДС 12% НСП 1% [08:58:40]line > о реализуемом товаре [08:58:40]line Товар: 4870002328398 [08:58:40]line Вода ASU пит н.газ мята ПЭТ 1л [08:58:40]line 1.000 * 100.00 [08:58:40]line = 100.00 [08:58:40]line НДС 12% НСП 1% [08:58:40]line > о реализуемом товаре [08:58:40]line Товар: 4700041420152 [08:58:40]line Салфетки влажн BEST GOLD 20шт [08:58:40]line 1.000 * 51.00 [08:58:40]line = 51.00 [08:58:40]line НДС 12% НСП 1% [08:58:40]line > о реализуемом товаре [08:58:40]line Товар: 4600080322137 [08:58:40]line Ваф Коровка с шок начинкой 150г [08:58:40]line 1.000 * 115.00 [08:58:40]line = 115.00 [08:58:40]line НДС 12% НСП 1% [08:58:40]line > о реализуемом товаре [08:58:40]line ИТОГО: 656.00 [08:58:40]line НСП 1% : 5.80 [08:58:40]line НДС 12% : 69.67 [08:58:40]line Наличными: 0.00 [08:58:40]line Безнал.: 656.00 [08:58:40]line Место: АЗС № 80 "Партнер Нефть" [08:58:40]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:58:40]line СНО: Общий режим [08:58:40]line Чек 22 23.10.2024 08:58 [08:58:40]line Смена: 491 ФФД: 1.0 [08:58:40]line ЗНМ: 0300000090 [08:58:40]line РНМ: 0000000000097022 [08:58:40]line Версия ККМ: 001 [08:58:40]line Платежная система: Mbank [08:58:40]line ФМ: 0000000000875000 [08:58:40]line ФД: 50277 [08:58:40]line ФПД: 94733289695723 [08:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085840&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50277&fm=94733289695723&tin=02508201610067®Number=0000000000097022&sum=65600 [08:58:40]line 0 [08:58:40]OFD Sender: Processing packet 50277 [packets to send 7, broken 6] [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00050277 [08:58:40]OFD Sender: To server: pG, [08:58:40]CommunicateWithHost lk.salyk.kg:30040 [08:58:40]ConnectInit lk.salyk.kg [08:58:40]written 0, free lines is 4095 [08:58:40]Connected sock=10 [08:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 99 02 00 00 90 72 91 02 46 90 5A 03 01 00 03 00 85 02 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 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 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 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C0 BA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C4 00 00 35 04 06 00 56 28 D0 14 A9 EB 59 4D 10 AC C3 B4 EF CF [08:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0A 22 47 00 E7 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C4 00 00 F4 03 04 00 58 66 18 67 B6 04 01 00 00 29 DC 51 EA 8C A1 FD 48 [08:58:40]CommunicateWithHost err = 0 [08:58:40]CheckOFDResponse [08:58:40]1017 (14) - 77093643461234 [08:58:40]1041 (16) - 0000000000875000 [08:58:40]1040 (4) - 50277 [08:58:40]1012 (4) - 23.10.2024 02:58 [08:58:40]1206 (1) - 0 [08:58:40]OFD Sender: Remove packet 50277 [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00050277 [08:58:40]NVStorageDeleteData [08:58:41]Write to MH i2c: 01 00 00 BF 07 C6 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 E7 0B BF [08:58:41]RasterBufferAndPrint [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]written 0, free lines is 3056 [08:58:41]process_action close_receipt done [08:58:41]requested_data is exist [08:58:41]produce_requested_data [08:58:41]requested_item fm.sn is exist - process it [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 11 00 00 [08:58:41]Write to MH i2c: E2 08 00 C6 07 80 11 00 00 00 00 00 00 47 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 17 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 17 00 C6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8E [08:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:58:41]wFMCommunicate OK [08:58:41]requested_item fd.num is exist - process it [08:58:41]SAM_PROTO_GetFieldsCounters [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 13 00 00 [08:58:41]Write to MH i2c: E2 08 00 C7 07 80 13 00 00 00 00 00 00 4A [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]OFD Sender: No OFD packet to send [08:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 62 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 62 00 C7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 65 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [08:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 65 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]SAM_PROTO_GetFieldsCounters done [08:58:41]requested_item shift.num is exist - process it [08:58:41]requested_item shift.opened is exist - process it [08:58:41]req_shift_opened [08:58:41]FM_GetShiftState [08:58:41]SAM_PROTO_GetShiftState [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 13 01 00 [08:58:41]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 98 [08:58:41]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]SAM_PROTO_GetShiftState done [08:58:41]FM_GetShiftState done [08:58:41]req_shift_opened done [08:58:41]requested_item shift.open_date is exist - process it [08:58:41]req_shift_open_date [08:58:41]req_shift_open_date done [08:58:41]produce_requested_data done [08:58:41]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50277,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [08:58:41]process_action_free close_receipt [08:58:41]json_value_free [08:58:41]json_value_free done [08:58:41]process_json_proto returns [08:58:41]Send response to host [08:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50277,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [08:58:41]free response buf [08:58:41]execute_script done [08:58:41]execute_script returns [08:58:41]free content buf [08:58:41]Sock 7.Close socket [08:58:41]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:13]accept exits with 9 [09:15:13]New connection [09:15:13]New thread 3067305316 created [09:15:13]Thread 3067161956 joined [09:15:13]Waiting for new connection... [09:15:13] Sock 9.Parse request [09:15:13]Sock 9.Check first char [09:15:13]Sock 9.First char is OK [09:15:13]request: POST /json_proto HTTP/1.0 [09:15:13]Method: POST [09:15:13]URL: /json_proto [09:15:13]Method is POST - this is cgi request [09:15:13]url: /json_proto [09:15:13]query_string will be loaded in cgi processing [09:15:13]execute_cgi json_proto POST (null) [09:15:13]execute_cgi path=json_proto method=POST [09:15:13]POST find Content-Length [09:15:13]Host: 172.17.49.196:8080 [09:15:13]Content-Length: 831 [09:15:13]Content-Type: application/json [09:15:13] [09:15:13]POST finish read [09:15:13]Found Content-Length = 831 [09:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164183", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 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" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:13]execute_script... [09:15:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164183", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 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" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:13]POST & json_proto [09:15:13]process_json_proto [09:15:13]json parsed OK: [09:15:13]protocol is kg_v1.0 [09:15:13]action value=close_receipt [09:15:13]process_action close_receipt [09:15:13]cmd_close_receipt [09:15:13]MH_GetDate [09:15:13]Write to MH i2c: F0 00 00 C9 07 BF [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 09 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 09 00 C9 07 00 A3 BE 18 67 BD 3B 11 67 18 [09:15:13]GetLastDocTimeStamp 1729673920 [09:15:13]current date 1729674915 [09:15:13]FM_GetShiftState [09:15:13]SAM_PROTO_GetShiftState [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 01 00 [09:15:13]Write to MH i2c: E2 08 00 CA 07 80 13 01 00 00 00 00 00 4E [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 CA 07 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 9A [09:15:13]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetShiftState done [09:15:13]FM_GetShiftState done [09:15:13]opened in 1729642370 [09:15:13]opened+sec_in_day 1729728770 [09:15:13]quantity*price = 14400 [09:15:13]sum+1 = 14401 [09:15:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 23 23.10.2024 09:15 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50278 ФПД: 122310296081702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091515&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50278&fm=122310296081702&tin=02508201610067®Number=0000000000097022&sum=18900 0 [09:15:14]StoreToDocumentArchive [09:15:14]shift 491 fd 50278 [09:15:14]save to /storage/0491/doc_00050278 [09:15:14]save last doc name /storage/0491/doc_00050278 to /storage/kkm_last_doc_name [09:15:14]save OK [09:15:14]Clear old archive folders... [09:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=371 [09:15:14]tlvbuf is 001001D0 [09:15:14]SAM_PROTO_ClearQueue [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 09 00 00 [09:15:14]Write to MH i2c: E2 08 00 D7 07 80 09 00 00 00 00 00 00 50 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]SAM_PROTO_ClearQueue done [09:15:14]KKMCreateOFDPacket [09:15:14]OFDProtocolAddRootSTLVToBuf [09:15:14]FM_MakeSignedData [09:15:14]FM_MakeSignedData [09:15:14]SAM_PROTO_SignData [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 01 02 [09:15:14]Write to MH i2c: E2 08 00 D8 07 80 0D 01 02 00 00 00 00 58 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]wFMCommunicate request_size=255 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 02 02 FA 03 00 73 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 [09:15:14]Write to MH i2c: E2 02 01 D9 07 80 0D 02 02 FA 00 03 00 73 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 6A [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]wFMCommunicate request_size=130 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A3 BE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C4 00 00 35 04 06 00 6F 3D 95 C0 15 26 [09:15:14]Write to MH i2c: E2 85 00 DA 07 80 0D 02 02 7D 00 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A3 BE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C4 00 00 35 04 06 00 6F 3D 95 C0 15 26 00 00 BF [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 03 02 [09:15:14]Write to MH i2c: E2 08 00 DB 07 80 0D 03 02 00 00 00 00 5D [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0B 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0B 00 DB 07 00 CA BC 1C 9D D7 B5 9F DE 90 00 A6 [09:15:15]RAPDU: CA BC 1C 9D D7 B5 9F DE 90 00 [09:15:15]wFMCommunicate OK [09:15:15]SAM_PROTO_SignData done [09:15:15]FM_MakeSignedData done [09:15:15]CreateOFDProtocolMessage [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 11 00 00 [09:15:15]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A4 [09:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:15:15]wFMCommunicate OK [09:15:15]CreateOFDProtocolMessage done [09:15:15]OFDSenderStorePacket 50278 [09:15:15]StoreOFDPacket docnum=50278 [09:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 87 01 00 00 D4 B7 7F 01 18 F6 5A 03 01 00 03 00 73 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A3 BE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C4 00 00 35 04 06 00 6F 3D 95 C0 15 26 CA BC 1C 9D D7 B5 9F DE [09:15:15]CheckFolder [09:15:15]dirname=/storage/ofd_packets [09:15:15]CheckFolder done [09:15:15]ProducePacketName [09:15:15]name=ofd_packets/00050278 [09:15:15]NVStorageSaveData ofd_packets/00050278 [09:15:15]File name is /storage/ofd_packets/00050278 [09:15:15]Write 421 bytes [09:15:15]NVStorageSaveData done [09:15:15]OFDSenderStorePacket done [09:15:15]KKMCreateOFDPacket done [09:15:15]NVStorageSaveData kkm_last_timestamp [09:15:15]File name is /storage/kkm_last_timestamp [09:15:15]Write 4 bytes [09:15:15]NVStorageSaveData done [09:15:15]ExternCall_PrintAddStr [09:15:15]wPrintStart [09:15:15]Write to MH i2c: 01 00 00 DD 07 E4 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 FF 0F F9 [09:15:15]RasterBufferAndPrint [09:15:15]line Счет N : (3)164183 [09:15:15]line ИНН: 02508201610067 [09:15:15]line Контрольно-Кассовый Чек [09:15:15]line ПРОДАЖА [09:15:15]line Товар: 48743587 [09:15:15]line Сигареты Winston XStyle Silver [09:15:15]line 1.000 * 144.00 [09:15:15]line = 144.00 [09:15:15]line НДС 12% НСП 1% [09:15:15]line > о реализуемом товаре [09:15:15]line Товар: 46141538 [09:15:15]line Р/ж Orbit Bubblemint 13,6г [09:15:15]line 1.000 * 45.00 [09:15:15]line = 45.00 [09:15:15]line НДС 12% НСП 1% [09:15:15]line > о реализуемом товаре [09:15:15]line ИТОГО: 189.00 [09:15:15]line НСП 1% : 1.67 [09:15:15]line НДС 12% : 20.07 [09:15:15]line Наличными: 189.00 [09:15:15]line Безнал.: 0.00 [09:15:15]line Место: АЗС № 80 "Партнер Нефть" [09:15:15]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:15:15]line СНО: Общий режим [09:15:15]line Чек 23 23.10.2024 09:15 [09:15:15]line Смена: 491 ФФД: 1.0 [09:15:15]line ЗНМ: 0300000090 [09:15:15]line РНМ: 0000000000097022 [09:15:15]line Версия ККМ: 001 [09:15:15]line ФМ: 0000000000875000 [09:15:15]line ФД: 50278 [09:15:15]line ФПД: 122310296081702 [09:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091515&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50278&fm=122310296081702&tin=02508201610067®Number=0000000000097022&sum=18900 [09:15:15]line 0 [09:15:15]OFD Sender: Processing packet 50278 [packets to send 7, broken 6] [09:15:15]ProducePacketName [09:15:15]name=ofd_packets/00050278 [09:15:15]OFD Sender: To server: pG, [09:15:15]CommunicateWithHost lk.salyk.kg:30040 [09:15:15]ConnectInit lk.salyk.kg [09:15:15]written 0, free lines is 4095 [09:15:15]Connected sock=10 [09:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 87 01 00 00 D4 B7 7F 01 18 F6 5A 03 01 00 03 00 73 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A3 BE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C4 00 00 35 04 06 00 6F 3D 95 C0 15 26 CA BC 1C 9D D7 B5 9F DE [09:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 9D 5D 47 00 64 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C4 00 00 F4 03 04 00 3B 6A 18 67 B6 04 01 00 00 11 83 20 CF 80 23 3E C0 [09:15:15]CommunicateWithHost err = 0 [09:15:15]CheckOFDResponse [09:15:15]1017 (14) - 77093643461234 [09:15:15]1041 (16) - 0000000000875000 [09:15:15]1040 (4) - 50278 [09:15:15]1012 (4) - 23.10.2024 03:15 [09:15:15]1206 (1) - 0 [09:15:15]OFD Sender: Remove packet 50278 [09:15:15]ProducePacketName [09:15:15]name=ofd_packets/00050278 [09:15:15]NVStorageDeleteData [09:15:15]Write to MH i2c: 01 00 00 0C 08 14 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 C3 0C EA [09:15:15]RasterBufferAndPrint [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]written 0, free lines is 3273 [09:15:15]process_action close_receipt done [09:15:15]requested_data is exist [09:15:15]produce_requested_data [09:15:15]requested_item fm.sn is exist - process it [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 11 00 00 [09:15:15]Write to MH i2c: E2 08 00 13 08 80 11 00 00 00 00 00 00 95 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 17 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 17 00 13 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DC [09:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:15:16]wFMCommunicate OK [09:15:16]requested_item fd.num is exist - process it [09:15:16]SAM_PROTO_GetFieldsCounters [09:15:16]wFMCommunicate request_size=4 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 13 00 00 [09:15:16]Write to MH i2c: E2 08 00 14 08 80 13 00 00 00 00 00 00 98 [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 62 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 62 00 14 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 66 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:15:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 66 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:16]wFMCommunicate OK [09:15:16]SAM_PROTO_GetFieldsCounters done [09:15:16]requested_item shift.num is exist - process it [09:15:16]requested_item shift.opened is exist - process it [09:15:16]req_shift_opened [09:15:16]FM_GetShiftState [09:15:16]SAM_PROTO_GetShiftState [09:15:16]wFMCommunicate request_size=4 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 13 01 00 [09:15:16]Write to MH i2c: E2 08 00 15 08 80 13 01 00 00 00 00 00 9A [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 0E 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 0E 00 15 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 E6 [09:15:16]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:15:16]wFMCommunicate OK [09:15:16]SAM_PROTO_GetShiftState done [09:15:16]FM_GetShiftState done [09:15:16]req_shift_opened done [09:15:16]requested_item shift.open_date is exist - process it [09:15:16]req_shift_open_date [09:15:16]req_shift_open_date done [09:15:16]produce_requested_data done [09:15:16]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50278,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [09:15:16]process_action_free close_receipt [09:15:16]json_value_free [09:15:16]json_value_free done [09:15:16]process_json_proto returns [09:15:16]Send response to host [09:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50278,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [09:15:16]free response buf [09:15:16]execute_script done [09:15:16]execute_script returns [09:15:16]free content buf [09:15:16]Sock 9.Close socket [09:15:16]Sock 9.Thread stoped [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:31]accept exits with 7 [09:22:31]New connection [09:22:31]New thread 3067161956 created [09:22:31]Thread 3067305316 joined [09:22:31]Waiting for new connection... [09:22:31] Sock 7.Parse request [09:22:31]Sock 7.Check first char [09:22:31]Sock 7.First char is OK [09:22:31]request: POST /json_proto HTTP/1.0 [09:22:31]Method: POST [09:22:31]URL: /json_proto [09:22:31]Method is POST - this is cgi request [09:22:31]url: /json_proto [09:22:31]query_string will be loaded in cgi processing [09:22:31]execute_cgi json_proto POST (null) [09:22:31]execute_cgi path=json_proto method=POST [09:22:31]POST find Content-Length [09:22:31]Host: 172.17.49.196:8080 [09:22:31]Content-Length: 623 [09:22:31]Content-Type: application/json [09:22:31] [09:22:31]POST finish read [09:22:31]Found Content-Length = 623 [09:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164184", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]execute_script... [09:22: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)164184", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]POST & json_proto [09:22:31]process_json_proto [09:22:31]json parsed OK: [09:22:31]protocol is kg_v1.0 [09:22:31]action value=close_receipt [09:22:31]process_action close_receipt [09:22:31]cmd_close_receipt [09:22:31]MH_GetDate [09:22:31]Write to MH i2c: F0 00 00 16 08 0D [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 09 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 09 00 16 08 00 5A C0 18 67 BD 3B 11 67 1F [09:22:31]GetLastDocTimeStamp 1729674915 [09:22:31]current date 1729675354 [09:22:31]FM_GetShiftState [09:22:31]SAM_PROTO_GetShiftState [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 13 01 00 [09:22:31]Write to MH i2c: E2 08 00 17 08 80 13 01 00 00 00 00 00 9C [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:32]Read from MH i2c: E2 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 17 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 E8 [09:22:32]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:22:32]wFMCommunicate OK [09:22:32]SAM_PROTO_GetShiftState done [09:22:32]FM_GetShiftState done [09:22:32]opened in 1729642370 [09:22:32]opened+sec_in_day 1729728770 [09:22:32]quantity*price = 14400 [09:22:32]sum+1 = 14401 [09:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 24 23.10.2024 09:22 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50279 ФПД: 248172470738254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092234&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50279&fm=248172470738254&tin=02508201610067®Number=0000000000097022&sum=14400 0 [09:22:33]StoreToDocumentArchive [09:22:33]shift 491 fd 50279 [09:22:33]save to /storage/0491/doc_00050279 [09:22:33]save last doc name /storage/0491/doc_00050279 to /storage/kkm_last_doc_name [09:22:33]save OK [09:22:33]Clear old archive folders... [09:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:22:33]tlvbuf is 0020F1B0 [09:22:33]SAM_PROTO_ClearQueue [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 09 00 00 [09:22:33]Write to MH i2c: E2 08 00 24 08 80 09 00 00 00 00 00 00 9E [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_ClearQueue done [09:22:33]KKMCreateOFDPacket [09:22:33]OFDProtocolAddRootSTLVToBuf [09:22:33]FM_MakeSignedData [09:22:33]FM_MakeSignedData [09:22:33]SAM_PROTO_SignData [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 01 02 [09:22:33]Write to MH i2c: E2 08 00 25 08 80 0D 01 02 00 00 00 00 A6 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=255 [09:22:33]MH_SAM_APDU [09:22:33]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 18 00 00 00 F4 03 04 00 5A C0 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [09:22:33]Write to MH i2c: E2 02 01 26 08 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 18 00 00 00 F4 03 04 00 5A C0 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 43 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=34 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C4 00 00 35 04 06 00 E1 B6 27 F6 1D 4E [09:22:33]Write to MH i2c: E2 25 00 27 08 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C4 00 00 35 04 06 00 E1 B6 27 F6 1D 4E 00 00 A8 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 03 02 [09:22:33]Write to MH i2c: E2 08 00 28 08 80 0D 03 02 00 00 00 00 AB [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 28 08 00 43 9A 92 83 34 6E 0A 41 90 00 8B [09:22:33]RAPDU: 43 9A 92 83 34 6E 0A 41 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_SignData done [09:22:33]FM_MakeSignedData done [09:22:33]CreateOFDProtocolMessage [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 11 00 00 [09:22:33]Write to MH i2c: E2 08 00 29 08 80 11 00 00 00 00 00 00 AB [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 29 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F2 [09:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:22:33]wFMCommunicate OK [09:22:33]CreateOFDProtocolMessage done [09:22:33]OFDSenderStorePacket 50279 [09:22:33]StoreOFDPacket docnum=50279 [09:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 CF 87 1F 01 CF D4 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 18 00 00 00 F4 03 04 00 5A C0 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C4 00 00 35 04 06 00 E1 B6 27 F6 1D 4E 43 9A 92 83 34 6E 0A 41 [09:22:33]CheckFolder [09:22:33]dirname=/storage/ofd_packets [09:22:33]CheckFolder done [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00050279 [09:22:33]NVStorageSaveData ofd_packets/00050279 [09:22:33]File name is /storage/ofd_packets/00050279 [09:22:33]Write 325 bytes [09:22:33]NVStorageSaveData done [09:22:33]OFDSenderStorePacket done [09:22:33]KKMCreateOFDPacket done [09:22:33]NVStorageSaveData kkm_last_timestamp [09:22:33]File name is /storage/kkm_last_timestamp [09:22:33]Write 4 bytes [09:22:33]NVStorageSaveData done [09:22:33]ExternCall_PrintAddStr [09:22:33]wPrintStart [09:22:33]Write to MH i2c: 01 00 00 2A 08 32 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 FF 0F 47 [09:22:33]RasterBufferAndPrint [09:22:33]line Счет N : (3)164184 [09:22:33]line ИНН: 02508201610067 [09:22:33]line Контрольно-Кассовый Чек [09:22:33]line ПРОДАЖА [09:22:33]line Товар: 48743587 [09:22:33]line Сигареты Winston XStyle Silver [09:22:33]line 1.000 * 144.00 [09:22:33]line = 144.00 [09:22:33]line НДС 12% НСП 1% [09:22:33]line > о реализуемом товаре [09:22:33]line ИТОГО: 144.00 [09:22:33]line НСП 1% : 1.27 [09:22:33]line НДС 12% : 15.29 [09:22:33]line Наличными: 144.00 [09:22:33]line Безнал.: 0.00 [09:22:33]line Место: АЗС № 80 "Партнер Нефть" [09:22:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:22:33]line СНО: Общий режим [09:22:33]line Чек 24 23.10.2024 09:22 [09:22:33]line Смена: 491 ФФД: 1.0 [09:22:33]line ЗНМ: 0300000090 [09:22:33]line РНМ: 0000000000097022 [09:22:33]line Версия ККМ: 001 [09:22:33]line ФМ: 0000000000875000 [09:22:33]line ФД: 50279 [09:22:33]line ФПД: 248172470738254 [09:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092234&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50279&fm=248172470738254&tin=02508201610067®Number=0000000000097022&sum=14400 [09:22:33]OFD Sender: Processing packet 50279 [packets to send 7, broken 6] [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00050279 [09:22:34]OFD Sender: To server: pG, [09:22:34]CommunicateWithHost lk.salyk.kg:30040 [09:22:34]ConnectInit lk.salyk.kg [09:22:34]line 0 [09:22:34]written 0, free lines is 4095 [09:22:34]Connected sock=10 [09:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 CF 87 1F 01 CF D4 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 18 00 00 00 F4 03 04 00 5A C0 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C4 00 00 35 04 06 00 E1 B6 27 F6 1D 4E 43 9A 92 83 34 6E 0A 41 [09:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F4 6B 47 00 66 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C4 00 00 F4 03 04 00 F1 6B 18 67 B6 04 01 00 00 FB 80 69 53 D2 1B 39 13 [09:22:34]CommunicateWithHost err = 0 [09:22:34]CheckOFDResponse [09:22:34]1017 (14) - 77093643461234 [09:22:34]1041 (16) - 0000000000875000 [09:22:34]1040 (4) - 50279 [09:22:34]1012 (4) - 23.10.2024 03:22 [09:22:34]1206 (1) - 0 [09:22:34]OFD Sender: Remove packet 50279 [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00050279 [09:22:34]NVStorageDeleteData [09:22:34]Write to MH i2c: 01 00 00 53 08 5B [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 06 0D 75 [09:22:34]RasterBufferAndPrint [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]written 0, free lines is 3340 [09:22:34]process_action close_receipt done [09:22:34]requested_data is exist [09:22:34]produce_requested_data [09:22:34]requested_item fm.sn is exist - process it [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 11 00 00 [09:22:34]Write to MH i2c: E2 08 00 5A 08 80 11 00 00 00 00 00 00 DC [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 5A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 23 [09:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:22:34]wFMCommunicate OK [09:22:34]requested_item fd.num is exist - process it [09:22:34]SAM_PROTO_GetFieldsCounters [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 13 00 00 [09:22:34]Write to MH i2c: E2 08 00 5B 08 80 13 00 00 00 00 00 00 DF [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 62 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 62 00 5B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 67 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [09:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 67 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_GetFieldsCounters done [09:22:34]requested_item shift.num is exist - process it [09:22:34]requested_item shift.opened is exist - process it [09:22:34]req_shift_opened [09:22:34]FM_GetShiftState [09:22:34]SAM_PROTO_GetShiftState [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 13 01 00 [09:22:34]Write to MH i2c: E2 08 00 5C 08 80 13 01 00 00 00 00 00 E1 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0E 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0E 00 5C 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 2D [09:22:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_GetShiftState done [09:22:34]FM_GetShiftState done [09:22:34]req_shift_opened done [09:22:34]requested_item shift.open_date is exist - process it [09:22:34]req_shift_open_date [09:22:34]req_shift_open_date done [09:22:34]produce_requested_data done [09:22:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50279,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [09:22:34]process_action_free close_receipt [09:22:34]json_value_free [09:22:34]json_value_free done [09:22:34]process_json_proto returns [09:22:34]Send response to host [09:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50279,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [09:22:34]free response buf [09:22:34]execute_script done [09:22:34]execute_script returns [09:22:34]free content buf [09:22:34]Sock 7.Close socket [09:22:34]Sock 7.Thread stoped [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:02]accept exits with 9 [09:32:02]New connection [09:32:02]New thread 3067305316 created [09:32:02]Thread 3067161956 joined [09:32:02]Waiting for new connection... [09:32:02] Sock 9.Parse request [09:32:02]Sock 9.Check first char [09:32:02]Sock 9.First char is OK [09:32:02]request: POST /json_proto HTTP/1.0 [09:32:02]Method: POST [09:32:02]URL: /json_proto [09:32:02]Method is POST - this is cgi request [09:32:02]url: /json_proto [09:32:02]query_string will be loaded in cgi processing [09:32:02]execute_cgi json_proto POST (null) [09:32:02]execute_cgi path=json_proto method=POST [09:32:02]POST find Content-Length [09:32:02]Host: 172.17.49.196:8080 [09:32:02]Content-Length: 590 [09:32:02]Content-Type: application/json [09:32:02] [09:32:02]POST finish read [09:32:02]Found Content-Length = 590 [09:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164185", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:02]execute_script... [09:32: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)164185", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:02]POST & json_proto [09:32:02]process_json_proto [09:32:02]json parsed OK: [09:32:02]protocol is kg_v1.0 [09:32:02]action value=close_receipt [09:32:02]process_action close_receipt [09:32:02]cmd_close_receipt [09:32:02]MH_GetDate [09:32:02]Write to MH i2c: F0 00 00 5D 08 54 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: F0 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: F0 09 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: F0 09 00 5D 08 00 95 C2 18 67 BD 3B 11 67 A3 [09:32:02]GetLastDocTimeStamp 1729675354 [09:32:02]current date 1729675925 [09:32:02]FM_GetShiftState [09:32:02]SAM_PROTO_GetShiftState [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 13 01 00 [09:32:02]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0E 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 2F [09:32:02]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:32:02]wFMCommunicate OK [09:32:02]SAM_PROTO_GetShiftState done [09:32:02]FM_GetShiftState done [09:32:02]opened in 1729642370 [09:32:02]opened+sec_in_day 1729728770 [09:32:02]quantity*price = 4500 [09:32:02]sum+1 = 4501 [09:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 25 23.10.2024 09:32 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50280 ФПД: 213897319402391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093205&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50280&fm=213897319402391&tin=02508201610067®Number=0000000000097022&sum=4500 0 [09:32:04]StoreToDocumentArchive [09:32:04]shift 491 fd 50280 [09:32:04]save to /storage/0491/doc_00050280 [09:32:04]save last doc name /storage/0491/doc_00050280 to /storage/kkm_last_doc_name [09:32:04]save OK [09:32:04]Clear old archive folders... [09:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=265 [09:32:04]tlvbuf is 00252690 [09:32:04]SAM_PROTO_ClearQueue [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 09 00 00 [09:32:04]Write to MH i2c: E2 08 00 6B 08 80 09 00 00 00 00 00 00 E5 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 6B 08 00 90 00 E7 [09:32:04]RAPDU: 90 00 [09:32:04]wFMCommunicate OK [09:32:04]SAM_PROTO_ClearQueue done [09:32:04]KKMCreateOFDPacket [09:32:04]OFDProtocolAddRootSTLVToBuf [09:32:04]FM_MakeSignedData [09:32:04]FM_MakeSignedData [09:32:04]SAM_PROTO_SignData [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 0D 01 02 [09:32:04]Write to MH i2c: E2 08 00 6C 08 80 0D 01 02 00 00 00 00 ED [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [09:32:04]RAPDU: 90 00 [09:32:04]wFMCommunicate OK [09:32:04]wFMCommunicate request_size=255 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 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 19 00 00 00 F4 03 04 00 95 C2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 [09:32:04]Write to MH i2c: E2 02 01 6D 08 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 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 19 00 00 00 F4 03 04 00 95 C2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 00 00 94 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [09:32:04]RAPDU: 90 00 [09:32:04]wFMCommunicate OK [09:32:04]wFMCommunicate request_size=24 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 0D 02 02 13 30 10 04 04 00 68 C4 00 00 35 04 06 00 C2 89 D9 BD CB 97 [09:32:04]Write to MH i2c: E2 1B 00 6E 08 80 0D 02 02 13 00 30 10 04 04 00 68 C4 00 00 35 04 06 00 C2 89 D9 BD CB 97 00 00 0C [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [09:32:04]RAPDU: 90 00 [09:32:04]wFMCommunicate OK [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 0D 03 02 [09:32:04]Write to MH i2c: E2 08 00 6F 08 80 0D 03 02 00 00 00 00 F2 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 0B 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 0B 00 6F 08 00 4C 6B 87 7D 6F D8 90 22 90 00 A7 [09:32:04]RAPDU: 4C 6B 87 7D 6F D8 90 22 90 00 [09:32:04]wFMCommunicate OK [09:32:04]SAM_PROTO_SignData done [09:32:04]FM_MakeSignedData done [09:32:04]CreateOFDProtocolMessage [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 11 00 00 [09:32:04]Write to MH i2c: E2 08 00 70 08 80 11 00 00 00 00 00 00 F2 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 70 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 39 [09:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:32:04]wFMCommunicate OK [09:32:04]CreateOFDProtocolMessage done [09:32:04]OFDSenderStorePacket 50280 [09:32:04]StoreOFDPacket docnum=50280 [09:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 01 00 00 9A 99 15 01 83 29 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 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 19 00 00 00 F4 03 04 00 95 C2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C4 00 00 35 04 06 00 C2 89 D9 BD CB 97 4C 6B 87 7D 6F D8 90 22 [09:32:04]CheckFolder [09:32:04]dirname=/storage/ofd_packets [09:32:04]CheckFolder done [09:32:04]ProducePacketName [09:32:04]name=ofd_packets/00050280 [09:32:04]NVStorageSaveData ofd_packets/00050280 [09:32:04]File name is /storage/ofd_packets/00050280 [09:32:04]Write 315 bytes [09:32:04]NVStorageSaveData done [09:32:04]OFDSenderStorePacket done [09:32:04]KKMCreateOFDPacket done [09:32:04]NVStorageSaveData kkm_last_timestamp [09:32:04]File name is /storage/kkm_last_timestamp [09:32:04]Write 4 bytes [09:32:04]NVStorageSaveData done [09:32:04]ExternCall_PrintAddStr [09:32:04]wPrintStart [09:32:04]Write to MH i2c: 01 00 00 71 08 79 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [09:32:04]RasterBufferAndPrint [09:32:04]line Счет N : (3)164185 [09:32:04]line ИНН: 02508201610067 [09:32:04]line Контрольно-Кассовый Чек [09:32:04]line ПРОДАЖА [09:32:04]line Товар: 42113164 [09:32:04]line Жев Orbit White Spearmint [09:32:04]line 1.000 * 45.00 [09:32:04]line = 45.00 [09:32:04]line НДС 12% НСП 1% [09:32:04]line > о реализуемом товаре [09:32:04]line ИТОГО: 45.00 [09:32:04]line НСП 1% : 0.40 [09:32:04]line НДС 12% : 4.78 [09:32:04]line Наличными: 45.00 [09:32:04]line Безнал.: 0.00 [09:32:04]line Место: АЗС № 80 "Партнер Нефть" [09:32:04]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:32:04]line СНО: Общий режим [09:32:04]line Чек 25 23.10.2024 09:32 [09:32:04]line Смена: 491 ФФД: 1.0 [09:32:04]line ЗНМ: 0300000090 [09:32:04]line РНМ: 0000000000097022 [09:32:04]line Версия ККМ: 001 [09:32:04]line ФМ: 0000000000875000 [09:32:04]line ФД: 50280 [09:32:04]line ФПД: 213897319402391 [09:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093205&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50280&fm=213897319402391&tin=02508201610067®Number=0000000000097022&sum=4500 [09:32:04]line 0 [09:32:04]OFD Sender: Processing packet 50280 [packets to send 7, broken 6] [09:32:04]ProducePacketName [09:32:04]name=ofd_packets/00050280 [09:32:04]OFD Sender: To server: pG, [09:32:04]CommunicateWithHost lk.salyk.kg:30040 [09:32:04]ConnectInit lk.salyk.kg [09:32:04]written 0, free lines is 4095 [09:32:05]Connected sock=10 [09:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 01 00 00 9A 99 15 01 83 29 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 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 19 00 00 00 F4 03 04 00 95 C2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C4 00 00 35 04 06 00 C2 89 D9 BD CB 97 4C 6B 87 7D 6F D8 90 22 [09:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 19 10 47 00 7F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C4 00 00 F4 03 04 00 2C 6E 18 67 B6 04 01 00 00 7A EE 36 7C D9 EB EF B8 [09:32:05]CommunicateWithHost err = 0 [09:32:05]CheckOFDResponse [09:32:05]1017 (14) - 77093643461234 [09:32:05]1041 (16) - 0000000000875000 [09:32:05]1040 (4) - 50280 [09:32:05]1012 (4) - 23.10.2024 03:31 [09:32:05]1206 (1) - 0 [09:32:05]OFD Sender: Remove packet 50280 [09:32:05]ProducePacketName [09:32:05]name=ofd_packets/00050280 [09:32:05]NVStorageDeleteData [09:32:05]Write to MH i2c: 01 00 00 99 08 A1 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: 01 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: 01 07 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 23 0D D8 [09:32:05]RasterBufferAndPrint [09:32:05]line [09:32:05]line [09:32:05]line [09:32:05]line [09:32:05]line [09:32:05]written 0, free lines is 3369 [09:32:05]process_action close_receipt done [09:32:05]requested_data is exist [09:32:05]produce_requested_data [09:32:05]requested_item fm.sn is exist - process it [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 11 00 00 [09:32:05]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 17 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 69 [09:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:32:05]wFMCommunicate OK [09:32:05]requested_item fd.num is exist - process it [09:32:05]SAM_PROTO_GetFieldsCounters [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 13 00 00 [09:32:05]Write to MH i2c: E2 08 00 A1 08 80 13 00 00 00 00 00 00 25 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 62 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 62 00 A1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 68 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [09:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 68 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetFieldsCounters done [09:32:05]requested_item shift.num is exist - process it [09:32:05]requested_item shift.opened is exist - process it [09:32:05]req_shift_opened [09:32:05]FM_GetShiftState [09:32:05]SAM_PROTO_GetShiftState [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 13 01 00 [09:32:05]Write to MH i2c: E2 08 00 A2 08 80 13 01 00 00 00 00 00 27 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 A2 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 73 [09:32:05]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetShiftState done [09:32:05]FM_GetShiftState done [09:32:05]req_shift_opened done [09:32:05]requested_item shift.open_date is exist - process it [09:32:05]req_shift_open_date [09:32:05]req_shift_open_date done [09:32:05]produce_requested_data done [09:32:05]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50280,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [09:32:05]process_action_free close_receipt [09:32:05]json_value_free [09:32:05]json_value_free done [09:32:05]process_json_proto returns [09:32:05]Send response to host [09:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50280,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [09:32:05]free response buf [09:32:05]execute_script done [09:32:05]execute_script returns [09:32:05]free content buf [09:32:05]Sock 9.Close socket [09:32:05]Sock 9.Thread stoped [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:06]accept exits with 7 [09:44:06]New connection [09:44:06]New thread 3067161956 created [09:44:06]Thread 3067305316 joined [09:44:06]Waiting for new connection... [09:44:06] Sock 7.Parse request [09:44:06]Sock 7.Check first char [09:44:06]Sock 7.First char is OK [09:44:06]request: POST /json_proto HTTP/1.0 [09:44:06]Method: POST [09:44:06]URL: /json_proto [09:44:06]Method is POST - this is cgi request [09:44:06]url: /json_proto [09:44:06]query_string will be loaded in cgi processing [09:44:06]execute_cgi json_proto POST (null) [09:44:06]execute_cgi path=json_proto method=POST [09:44:06]POST find Content-Length [09:44:06]Host: 172.17.49.196:8080 [09:44:06]Content-Length: 777 [09:44:06]Content-Type: application/json [09:44:06] [09:44:06]POST finish read [09:44:06]Found Content-Length = 777 [09:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164186", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: Mbank", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:06]execute_script... [09:44: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)164186", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: Mbank", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:06]POST & json_proto [09:44:06]process_json_proto [09:44:06]json parsed OK: [09:44:06]protocol is kg_v1.0 [09:44:06]action value=close_receipt [09:44:06]process_action close_receipt [09:44:06]cmd_close_receipt [09:44:06]MH_GetDate [09:44:06]Write to MH i2c: F0 00 00 A3 08 9A [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: F0 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: F0 09 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: F0 09 00 A3 08 00 69 C5 18 67 BD 3B 11 67 C0 [09:44:06]GetLastDocTimeStamp 1729675925 [09:44:06]current date 1729676649 [09:44:06]FM_GetShiftState [09:44:06]SAM_PROTO_GetShiftState [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 13 01 00 [09:44:06]Write to MH i2c: E2 08 00 A4 08 80 13 01 00 00 00 00 00 29 [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 A4 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 75 [09:44:07]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:44:07]wFMCommunicate OK [09:44:07]SAM_PROTO_GetShiftState done [09:44:07]FM_GetShiftState done [09:44:07]opened in 1729642370 [09:44:07]opened+sec_in_day 1729728770 [09:44:07]quantity*price = 14100 [09:44:07]sum+1 = 14101 [09:44:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 0.00 Безнал.: 141.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 26 23.10.2024 09:44 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50281 ФПД: 97584991954148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094409&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50281&fm=97584991954148&tin=02508201610067®Number=0000000000097022&sum=14100 0 [09:44:08]StoreToDocumentArchive [09:44:08]shift 491 fd 50281 [09:44:08]save to /storage/0491/doc_00050281 [09:44:08]save last doc name /storage/0491/doc_00050281 to /storage/kkm_last_doc_name [09:44:08]save OK [09:44:08]Clear old archive folders... [09:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=286 [09:44:08]tlvbuf is 002323A0 [09:44:08]SAM_PROTO_ClearQueue [09:44:08]wFMCommunicate request_size=4 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 09 00 00 [09:44:08]Write to MH i2c: E2 08 00 B1 08 80 09 00 00 00 00 00 00 2B [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [09:44:08]RAPDU: 90 00 [09:44:08]wFMCommunicate OK [09:44:08]SAM_PROTO_ClearQueue done [09:44:08]KKMCreateOFDPacket [09:44:08]OFDProtocolAddRootSTLVToBuf [09:44:08]FM_MakeSignedData [09:44:08]FM_MakeSignedData [09:44:08]SAM_PROTO_SignData [09:44:08]wFMCommunicate request_size=4 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 0D 01 02 [09:44:08]Write to MH i2c: E2 08 00 B2 08 80 0D 01 02 00 00 00 00 33 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [09:44:08]RAPDU: 90 00 [09:44:08]wFMCommunicate OK [09:44:08]wFMCommunicate request_size=255 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 69 C5 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 [09:44:08]Write to MH i2c: E2 02 01 B3 08 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 69 C5 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 00 00 83 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 B3 08 00 90 00 2F [09:44:08]RAPDU: 90 00 [09:44:08]wFMCommunicate OK [09:44:08]wFMCommunicate request_size=45 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 0D 02 02 28 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C4 00 00 35 04 06 00 58 C0 C6 C7 E4 E4 [09:44:08]Write to MH i2c: E2 30 00 B4 08 80 0D 02 02 28 00 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C4 00 00 35 04 06 00 58 C0 C6 C7 E4 E4 00 00 14 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 03 00 B4 08 00 90 00 30 [09:44:08]RAPDU: 90 00 [09:44:08]wFMCommunicate OK [09:44:08]wFMCommunicate request_size=4 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 0D 03 02 [09:44:08]Write to MH i2c: E2 08 00 B5 08 80 0D 03 02 00 00 00 00 38 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 0B 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 0B 00 B5 08 00 B8 41 94 F0 7D 2D FD A9 90 00 06 [09:44:08]RAPDU: B8 41 94 F0 7D 2D FD A9 90 00 [09:44:08]wFMCommunicate OK [09:44:08]SAM_PROTO_SignData done [09:44:08]FM_MakeSignedData done [09:44:08]CreateOFDProtocolMessage [09:44:08]wFMCommunicate request_size=4 [09:44:08]MH_SAM_APDU [09:44:08]CAPDU: 80 11 00 00 [09:44:08]Write to MH i2c: E2 08 00 B6 08 80 11 00 00 00 00 00 00 38 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:08]Read from MH i2c: E2 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 17 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: E2 17 00 B6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7F [09:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:44:08]wFMCommunicate OK [09:44:08]CreateOFDProtocolMessage done [09:44:08]OFDSenderStorePacket 50281 [09:44:08]StoreOFDPacket docnum=50281 [09:44:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 C2 4B 2A 01 F9 23 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 69 C5 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C4 00 00 35 04 06 00 58 C0 C6 C7 E4 E4 B8 41 94 F0 7D 2D FD A9 [09:44:08]CheckFolder [09:44:08]dirname=/storage/ofd_packets [09:44:08]CheckFolder done [09:44:08]ProducePacketName [09:44:08]name=ofd_packets/00050281 [09:44:08]NVStorageSaveData ofd_packets/00050281 [09:44:08]File name is /storage/ofd_packets/00050281 [09:44:08]Write 336 bytes [09:44:08]NVStorageSaveData done [09:44:08]OFDSenderStorePacket done [09:44:08]KKMCreateOFDPacket done [09:44:08]NVStorageSaveData kkm_last_timestamp [09:44:08]File name is /storage/kkm_last_timestamp [09:44:08]Write 4 bytes [09:44:08]NVStorageSaveData done [09:44:08]ExternCall_PrintAddStr [09:44:08]wPrintStart [09:44:08]Write to MH i2c: 01 00 00 B7 08 BF [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [09:44:08]RasterBufferAndPrint [09:44:08]line Счет N : (3)164186 [09:44:08]line ИНН: 02508201610067 [09:44:08]line Контрольно-Кассовый Чек [09:44:08]line ПРОДАЖА [09:44:08]line Товар: 4870216765057 [09:44:08]line Нагр.Таб.Палоч. HEETS Green Zing [09:44:08]line 1.000 * 141.00 [09:44:08]line = 141.00 [09:44:08]line НДС 12% НСП 1% [09:44:08]line > о реализуемом товаре [09:44:08]line ИТОГО: 141.00 [09:44:08]line НСП 1% : 1.25 [09:44:08]line НДС 12% : 14.97 [09:44:08]line Наличными: 0.00 [09:44:08]line Безнал.: 141.00 [09:44:08]line Место: АЗС № 80 "Партнер Нефть" [09:44:08]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:44:08]line СНО: Общий режим [09:44:08]line Чек 26 23.10.2024 09:44 [09:44:08]line Смена: 491 ФФД: 1.0 [09:44:08]line ЗНМ: 0300000090 [09:44:08]line РНМ: 0000000000097022 [09:44:08]line Версия ККМ: 001 [09:44:08]line Платежная система: Mbank [09:44:08]line ФМ: 0000000000875000 [09:44:08]line ФД: 50281 [09:44:08]line ФПД: 97584991954148 [09:44:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094409&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50281&fm=97584991954148&tin=02508201610067®Number=0000000000097022&sum=14100 [09:44:09]line 0 [09:44:09]OFD Sender: Processing packet 50281 [packets to send 7, broken 6] [09:44:09]ProducePacketName [09:44:09]name=ofd_packets/00050281 [09:44:09]OFD Sender: To server: pG, [09:44:09]CommunicateWithHost lk.salyk.kg:30040 [09:44:09]ConnectInit lk.salyk.kg [09:44:09]written 0, free lines is 4095 [09:44:09]Connected sock=10 [09:44:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 C2 4B 2A 01 F9 23 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 69 C5 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C4 00 00 35 04 06 00 58 C0 C6 C7 E4 E4 B8 41 94 F0 7D 2D FD A9 [09:44:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D0 F1 47 00 D2 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C4 00 00 F4 03 04 00 00 71 18 67 B6 04 01 00 00 C3 2B 4B EA A8 9C C6 76 [09:44:09]CommunicateWithHost err = 0 [09:44:09]CheckOFDResponse [09:44:09]1017 (14) - 77093643461234 [09:44:09]1041 (16) - 0000000000875000 [09:44:09]1040 (4) - 50281 [09:44:09]1012 (4) - 23.10.2024 03:44 [09:44:09]1206 (1) - 0 [09:44:09]OFD Sender: Remove packet 50281 [09:44:09]ProducePacketName [09:44:09]name=ofd_packets/00050281 [09:44:09]NVStorageDeleteData [09:44:09]Write to MH i2c: 01 00 00 E1 08 E9 [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: 01 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: 01 07 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 02 0D FF [09:44:09]RasterBufferAndPrint [09:44:09]line [09:44:09]line [09:44:09]line [09:44:09]line [09:44:09]line [09:44:09]written 0, free lines is 3336 [09:44:09]process_action close_receipt done [09:44:09]requested_data is exist [09:44:09]produce_requested_data [09:44:09]requested_item fm.sn is exist - process it [09:44:09]wFMCommunicate request_size=4 [09:44:09]MH_SAM_APDU [09:44:09]CAPDU: 80 11 00 00 [09:44:09]Write to MH i2c: E2 08 00 E8 08 80 11 00 00 00 00 00 00 6A [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:09]Read from MH i2c: E2 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 17 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 17 00 E8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B1 [09:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:44:09]wFMCommunicate OK [09:44:09]requested_item fd.num is exist - process it [09:44:09]SAM_PROTO_GetFieldsCounters [09:44:09]wFMCommunicate request_size=4 [09:44:09]MH_SAM_APDU [09:44:09]CAPDU: 80 13 00 00 [09:44:09]Write to MH i2c: E2 08 00 E9 08 80 13 00 00 00 00 00 00 6D [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:09]Read from MH i2c: E2 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 62 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 62 00 E9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 69 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [09:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 69 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:09]wFMCommunicate OK [09:44:09]SAM_PROTO_GetFieldsCounters done [09:44:09]requested_item shift.num is exist - process it [09:44:09]requested_item shift.opened is exist - process it [09:44:09]req_shift_opened [09:44:09]FM_GetShiftState [09:44:09]SAM_PROTO_GetShiftState [09:44:09]wFMCommunicate request_size=4 [09:44:09]MH_SAM_APDU [09:44:09]CAPDU: 80 13 01 00 [09:44:09]Write to MH i2c: E2 08 00 EA 08 80 13 01 00 00 00 00 00 6F [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:09]Read from MH i2c: E2 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 EA 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 BB [09:44:09]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:44:09]wFMCommunicate OK [09:44:09]SAM_PROTO_GetShiftState done [09:44:09]FM_GetShiftState done [09:44:09]req_shift_opened done [09:44:09]requested_item shift.open_date is exist - process it [09:44:09]req_shift_open_date [09:44:09]req_shift_open_date done [09:44:09]produce_requested_data done [09:44:09]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50281,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [09:44:09]process_action_free close_receipt [09:44:09]json_value_free [09:44:09]json_value_free done [09:44:09]process_json_proto returns [09:44:09]Send response to host [09:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50281,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [09:44:09]free response buf [09:44:09]execute_script done [09:44:09]execute_script returns [09:44:09]free content buf [09:44:09]Sock 7.Close socket [09:44:09]Sock 7.Thread stoped [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47: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:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:49]accept exits with 9 [09:51:49]New connection [09:51:49]New thread 3067305316 created [09:51:49]Thread 3067161956 joined [09:51:49]Waiting for new connection... [09:51:49] Sock 9.Parse request [09:51:49]Sock 9.Check first char [09:51:49]Sock 9.First char is OK [09:51:49]request: POST /json_proto HTTP/1.0 [09:51:49]Method: POST [09:51:49]URL: /json_proto [09:51:49]Method is POST - this is cgi request [09:51:49]url: /json_proto [09:51:49]query_string will be loaded in cgi processing [09:51:49]execute_cgi json_proto POST (null) [09:51:49]execute_cgi path=json_proto method=POST [09:51:49]POST find Content-Length [09:51:49]Host: 172.17.49.196:8080 [09:51:49]Content-Length: 906 [09:51:49]Content-Type: application/json [09:51:49] [09:51:49]POST finish read [09:51:49]Found Content-Length = 906 [09:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164187", "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 }]} ,{ "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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:49]execute_script... [09:51: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)164187", "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 }]} ,{ "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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:49]POST & json_proto [09:51:49]process_json_proto [09:51:49]json parsed OK: [09:51:49]protocol is kg_v1.0 [09:51:49]action value=close_receipt [09:51:49]process_action close_receipt [09:51:49]cmd_close_receipt [09:51:49]MH_GetDate [09:51:49]Write to MH i2c: F0 00 00 EB 08 E2 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 09 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 09 00 EB 08 00 37 C7 18 67 BD 3B 11 67 D8 [09:51:49]GetLastDocTimeStamp 1729676649 [09:51:49]current date 1729677111 [09:51:49]FM_GetShiftState [09:51:49]SAM_PROTO_GetShiftState [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 13 01 00 [09:51:49]Write to MH i2c: E2 08 00 EC 08 80 13 01 00 00 00 00 00 71 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0E 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0E 00 EC 08 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 BD [09:51:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:51:49]wFMCommunicate OK [09:51:49]SAM_PROTO_GetShiftState done [09:51:49]FM_GetShiftState done [09:51:49]opened in 1729642370 [09:51:49]opened+sec_in_day 1729728770 [09:51:49]quantity*price = 11500 [09:51:49]sum+1 = 11501 [09:51:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 27 23.10.2024 09:51 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50282 ФПД: 63811037305395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095151&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50282&fm=63811037305395&tin=02508201610067®Number=0000000000097022&sum=24500 0 [09:51:50]StoreToDocumentArchive [09:51:50]shift 491 fd 50282 [09:51:50]save to /storage/0491/doc_00050282 [09:51:50]save last doc name /storage/0491/doc_00050282 to /storage/kkm_last_doc_name [09:51:50]save OK [09:51:50]Clear old archive folders... [09:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=392 [09:51:50]tlvbuf is 00100730 [09:51:50]SAM_PROTO_ClearQueue [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 09 00 00 [09:51:50]Write to MH i2c: E2 08 00 F9 08 80 09 00 00 00 00 00 00 73 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_ClearQueue done [09:51:50]KKMCreateOFDPacket [09:51:50]OFDProtocolAddRootSTLVToBuf [09:51:50]FM_MakeSignedData [09:51:50]FM_MakeSignedData [09:51:50]SAM_PROTO_SignData [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 01 02 [09:51:50]Write to MH i2c: E2 08 00 FA 08 80 0D 01 02 00 00 00 00 7B [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]wFMCommunicate request_size=255 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 02 02 FA 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [09:51:50]Write to MH i2c: E2 02 01 FB 08 80 0D 02 02 FA 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 6F [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]wFMCommunicate request_size=151 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 37 C7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C4 00 00 35 04 06 00 3A 09 2A 36 1A 33 [09:51:50]Write to MH i2c: E2 9A 00 FC 08 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 37 C7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C4 00 00 35 04 06 00 3A 09 2A 36 1A 33 00 00 84 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 03 02 [09:51:50]Write to MH i2c: E2 08 00 FD 08 80 0D 03 02 00 00 00 00 80 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0B 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0B 00 FD 08 00 52 5C F1 0E 2E B5 7A 48 90 00 D3 [09:51:50]RAPDU: 52 5C F1 0E 2E B5 7A 48 90 00 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_SignData done [09:51:50]FM_MakeSignedData done [09:51:50]CreateOFDProtocolMessage [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 11 00 00 [09:51:50]Write to MH i2c: E2 08 00 FE 08 80 11 00 00 00 00 00 00 80 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 FE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C7 [09:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:51:50]wFMCommunicate OK [09:51:50]CreateOFDProtocolMessage done [09:51:50]OFDSenderStorePacket 50282 [09:51:50]StoreOFDPacket docnum=50282 [09:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9C 01 00 00 43 62 94 01 A9 C7 5A 03 01 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 37 C7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C4 00 00 35 04 06 00 3A 09 2A 36 1A 33 52 5C F1 0E 2E B5 7A 48 [09:51:50]CheckFolder [09:51:50]dirname=/storage/ofd_packets [09:51:50]CheckFolder done [09:51:50]ProducePacketName [09:51:50]name=ofd_packets/00050282 [09:51:50]NVStorageSaveData ofd_packets/00050282 [09:51:50]File name is /storage/ofd_packets/00050282 [09:51:50]Write 442 bytes [09:51:50]NVStorageSaveData done [09:51:50]OFDSenderStorePacket done [09:51:50]KKMCreateOFDPacket done [09:51:50]NVStorageSaveData kkm_last_timestamp [09:51:50]File name is /storage/kkm_last_timestamp [09:51:50]Write 4 bytes [09:51:50]NVStorageSaveData done [09:51:50]ExternCall_PrintAddStr [09:51:50]wPrintStart [09:51:50]Write to MH i2c: 01 00 00 FF 08 07 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 FF 0F 1C [09:51:50]RasterBufferAndPrint [09:51:50]line Счет N : (3)164187 [09:51:50]line ИНН: 02508201610067 [09:51:50]line Контрольно-Кассовый Чек [09:51:50]line ПРОДАЖА [09:51:50]line Товар: 2000036210013 [09:51:50]line Кофе Капучино (GABB TRADE) [09:51:50]line 1.000 * 115.00 [09:51:50]line = 115.00 [09:51:50]line НДС 12% НСП 1% [09:51:51]line > о реализуемом товаре [09:51:51]line Товар: 2000036220012 [09:51:51]line Кофе Капучино XL(GABB TRADE) [09:51:51]line 1.000 * 130.00 [09:51:51]line = 130.00 [09:51:51]line НДС 12% НСП 1% [09:51:51]line > о реализуемом товаре [09:51:51]line ИТОГО: 245.00 [09:51:51]line НСП 1% : 2.17 [09:51:51]line НДС 12% : 26.01 [09:51:51]line Наличными: 245.00 [09:51:51]line Безнал.: 0.00 [09:51:51]line Место: АЗС № 80 "Партнер Нефть" [09:51:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:51:51]line СНО: Общий режим [09:51:51]line Чек 27 23.10.2024 09:51 [09:51:51]line Смена: 491 ФФД: 1.0 [09:51:51]line ЗНМ: 0300000090 [09:51:51]line РНМ: 0000000000097022 [09:51:51]line Версия ККМ: 001 [09:51:51]line ФМ: 0000000000875000 [09:51:51]line ФД: 50282 [09:51:51]line ФПД: 63811037305395 [09:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095151&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50282&fm=63811037305395&tin=02508201610067®Number=0000000000097022&sum=24500 [09:51:51]line 0 [09:51:51]OFD Sender: Processing packet 50282 [packets to send 7, broken 6] [09:51:51]ProducePacketName [09:51:51]name=ofd_packets/00050282 [09:51:51]OFD Sender: To server: pG, [09:51:51]CommunicateWithHost lk.salyk.kg:30040 [09:51:51]ConnectInit lk.salyk.kg [09:51:51]written 0, free lines is 4095 [09:51:51]Connected sock=10 [09:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9C 01 00 00 43 62 94 01 A9 C7 5A 03 01 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 37 C7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C4 00 00 35 04 06 00 3A 09 2A 36 1A 33 52 5C F1 0E 2E B5 7A 48 [09:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 30 F9 47 00 12 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C4 00 00 F4 03 04 00 CF 72 18 67 B6 04 01 00 00 D7 5C E2 7F D8 F5 0F 5F [09:51:51]CommunicateWithHost err = 0 [09:51:51]CheckOFDResponse [09:51:51]1017 (14) - 77093643461234 [09:51:51]1041 (16) - 0000000000875000 [09:51:51]1040 (4) - 50282 [09:51:51]1012 (4) - 23.10.2024 03:51 [09:51:51]1206 (1) - 0 [09:51:51]OFD Sender: Remove packet 50282 [09:51:51]ProducePacketName [09:51:51]name=ofd_packets/00050282 [09:51:51]NVStorageDeleteData [09:51:51]Write to MH i2c: 01 00 00 2E 09 37 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 D3 0C 1D [09:51:51]RasterBufferAndPrint [09:51:51]line [09:51:51]line [09:51:51]line [09:51:51]line [09:51:51]line [09:51:51]written 0, free lines is 3290 [09:51:51]process_action close_receipt done [09:51:51]requested_data is exist [09:51:51]produce_requested_data [09:51:51]requested_item fm.sn is exist - process it [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 11 00 00 [09:51:51]Write to MH i2c: E2 08 00 35 09 80 11 00 00 00 00 00 00 B8 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 35 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FF [09:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:51:51]wFMCommunicate OK [09:51:51]requested_item fd.num is exist - process it [09:51:51]SAM_PROTO_GetFieldsCounters [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 00 00 [09:51:51]Write to MH i2c: E2 08 00 36 09 80 13 00 00 00 00 00 00 BB [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:52]Read from MH i2c: E2 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 62 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 62 00 36 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [09:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:52]wFMCommunicate OK [09:51:52]SAM_PROTO_GetFieldsCounters done [09:51:52]requested_item shift.num is exist - process it [09:51:52]requested_item shift.opened is exist - process it [09:51:52]req_shift_opened [09:51:52]FM_GetShiftState [09:51:52]SAM_PROTO_GetShiftState [09:51:52]wFMCommunicate request_size=4 [09:51:52]MH_SAM_APDU [09:51:52]CAPDU: 80 13 01 00 [09:51:52]Write to MH i2c: E2 08 00 37 09 80 13 01 00 00 00 00 00 BD [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:52]Read from MH i2c: E2 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 0E 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 0E 00 37 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 09 [09:51:52]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [09:51:52]wFMCommunicate OK [09:51:52]SAM_PROTO_GetShiftState done [09:51:52]FM_GetShiftState done [09:51:52]req_shift_opened done [09:51:52]requested_item shift.open_date is exist - process it [09:51:52]req_shift_open_date [09:51:52]req_shift_open_date done [09:51:52]produce_requested_data done [09:51:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50282,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [09:51:52]process_action_free close_receipt [09:51:52]json_value_free [09:51:52]json_value_free done [09:51:52]process_json_proto returns [09:51:52]Send response to host [09:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50282,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [09:51:52]free response buf [09:51:52]execute_script done [09:51:52]execute_script returns [09:51:52]free content buf [09:51:52]Sock 9.Close socket [09:51:52]Sock 9.Thread stoped [09:51:52]OFD Sender: No OFD packet to send [09:51:52]int [09:51:52]Write to MH i2c: 01 00 00 38 09 41 [09:51:52]*** FLAG_PRN_KEY set [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 07 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 07 00 38 09 00 08 00 00 00 FF 0F 5E [09:51:52]state=0 [09:51:52]Key pressed [09:51:52]Feed [09:51:52]Write to MH i2c: D8 00 00 39 09 19 [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D8 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D8 01 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D8 01 00 39 09 00 1A [09:51:52]int [09:51:52]Write to MH i2c: 01 00 00 3A 09 43 [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 07 00 [09:51:52]MH_I2C_Read... [09:51:53]Read from MH i2c: 01 07 00 3A 09 00 48 00 00 00 3C 00 CE [09:51:53]state=2 [09:51:53]Key pressed [09:51:53]int [09:51:53]Write to MH i2c: 01 00 00 3B 09 44 [09:51:53]*** FLAG_PRN_KEY reset [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: 01 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: 01 07 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [09:51:53]state=2 [09:51:53]Stop feed [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55: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:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:18]accept exits with 7 [10:03:18]New connection [10:03:18]New thread 3067161956 created [10:03:18]Thread 3067305316 joined [10:03:18]Waiting for new connection... [10:03:18] Sock 7.Parse request [10:03:18]Sock 7.Check first char [10:03:18]Sock 7.First char is OK [10:03:18]request: POST /json_proto HTTP/1.0 [10:03:18]Method: POST [10:03:18]URL: /json_proto [10:03:18]Method is POST - this is cgi request [10:03:18]url: /json_proto [10:03:18]query_string will be loaded in cgi processing [10:03:18]execute_cgi json_proto POST (null) [10:03:18]execute_cgi path=json_proto method=POST [10:03:18]POST find Content-Length [10:03:18]Host: 172.17.49.196:8080 [10:03:18]Content-Length: 771 [10:03:18]Content-Type: application/json [10:03:18] [10:03:18]POST finish read [10:03:18]Found Content-Length = 771 [10:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164188", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "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: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:18]execute_script... [10:03: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)164188", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "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: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:18]POST & json_proto [10:03:18]process_json_proto [10:03:18]json parsed OK: [10:03:18]protocol is kg_v1.0 [10:03:18]action value=close_receipt [10:03:18]process_action close_receipt [10:03:18]cmd_close_receipt [10:03:18]MH_GetDate [10:03:18]Write to MH i2c: F0 00 00 3C 09 34 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 09 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 09 00 3C 09 00 E9 C9 18 67 BD 3B 11 67 DE [10:03:18]GetLastDocTimeStamp 1729677111 [10:03:18]current date 1729677801 [10:03:18]FM_GetShiftState [10:03:18]SAM_PROTO_GetShiftState [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 13 01 00 [10:03:18]Write to MH i2c: E2 08 00 3D 09 80 13 01 00 00 00 00 00 C3 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0E 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0E 00 3D 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 0F [10:03:19]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_GetShiftState done [10:03:19]FM_GetShiftState done [10:03:19]opened in 1729642370 [10:03:19]opened+sec_in_day 1729728770 [10:03:19]quantity*price = 5000 [10:03:19]sum+1 = 5001 [10:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 28 23.10.2024 10:03 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50283 ФПД: 138196138941133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100321&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50283&fm=138196138941133&tin=02508201610067®Number=0000000000097022&sum=5000 0 [10:03:20]StoreToDocumentArchive [10:03:20]shift 491 fd 50283 [10:03:20]save to /storage/0491/doc_00050283 [10:03:20]save last doc name /storage/0491/doc_00050283 to /storage/kkm_last_doc_name [10:03:20]save OK [10:03:20]Clear old archive folders... [10:03:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:03:20]tlvbuf is 00233B50 [10:03:20]SAM_PROTO_ClearQueue [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 09 00 00 [10:03:20]Write to MH i2c: E2 08 00 4A 09 80 09 00 00 00 00 00 00 C5 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [10:03:20]RAPDU: 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_ClearQueue done [10:03:20]KKMCreateOFDPacket [10:03:20]OFDProtocolAddRootSTLVToBuf [10:03:20]FM_MakeSignedData [10:03:20]FM_MakeSignedData [10:03:20]SAM_PROTO_SignData [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 0D 01 02 [10:03:20]Write to MH i2c: E2 08 00 4B 09 80 0D 01 02 00 00 00 00 CD [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [10:03:20]RAPDU: 90 00 [10:03:20]wFMCommunicate OK [10:03:20]wFMCommunicate request_size=255 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1C 00 00 00 F4 03 04 00 E9 C9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [10:03:20]Write to MH i2c: E2 02 01 4C 09 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1C 00 00 00 F4 03 04 00 E9 C9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 62 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [10:03:20]RAPDU: 90 00 [10:03:20]wFMCommunicate OK [10:03:20]wFMCommunicate request_size=34 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C4 00 00 35 04 06 00 7D B0 4B C5 5A CD [10:03:20]Write to MH i2c: E2 25 00 4D 09 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C4 00 00 35 04 06 00 7D B0 4B C5 5A CD 00 00 18 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [10:03:20]RAPDU: 90 00 [10:03:20]wFMCommunicate OK [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 0D 03 02 [10:03:20]Write to MH i2c: E2 08 00 4E 09 80 0D 03 02 00 00 00 00 D2 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0B 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0B 00 4E 09 00 DF 54 F7 A4 EF DB A4 66 90 00 75 [10:03:20]RAPDU: DF 54 F7 A4 EF DB A4 66 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_SignData done [10:03:20]FM_MakeSignedData done [10:03:20]CreateOFDProtocolMessage [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 11 00 00 [10:03:20]Write to MH i2c: E2 08 00 4F 09 80 11 00 00 00 00 00 00 D2 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 4F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 19 [10:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:03:20]wFMCommunicate OK [10:03:20]CreateOFDProtocolMessage done [10:03:20]OFDSenderStorePacket 50283 [10:03:20]StoreOFDPacket docnum=50283 [10:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 EE CA 1F 01 57 AF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1C 00 00 00 F4 03 04 00 E9 C9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C4 00 00 35 04 06 00 7D B0 4B C5 5A CD DF 54 F7 A4 EF DB A4 66 [10:03:20]CheckFolder [10:03:20]dirname=/storage/ofd_packets [10:03:20]CheckFolder done [10:03:20]ProducePacketName [10:03:20]name=ofd_packets/00050283 [10:03:20]NVStorageSaveData ofd_packets/00050283 [10:03:20]File name is /storage/ofd_packets/00050283 [10:03:20]Write 325 bytes [10:03:20]NVStorageSaveData done [10:03:20]OFDSenderStorePacket done [10:03:20]KKMCreateOFDPacket done [10:03:20]NVStorageSaveData kkm_last_timestamp [10:03:20]File name is /storage/kkm_last_timestamp [10:03:20]Write 4 bytes [10:03:20]NVStorageSaveData done [10:03:20]ExternCall_PrintAddStr [10:03:20]wPrintStart [10:03:20]Write to MH i2c: 01 00 00 50 09 59 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 FF 0F 6E [10:03:20]RasterBufferAndPrint [10:03:20]line Счет N : (3)164188 [10:03:20]line ИНН: 02508201610067 [10:03:20]line Контрольно-Кассовый Чек [10:03:20]line ПРОДАЖА [10:03:20]line Товар: 5449000005489 [10:03:20]line Вода Бонаква 1л б/г [10:03:20]line 1.000 * 50.00 [10:03:20]line = 50.00 [10:03:20]line НДС 12% НСП 1% [10:03:20]line > о реализуемом товаре [10:03:20]line ИТОГО: 50.00 [10:03:20]line НСП 1% : 0.44 [10:03:20]line НДС 12% : 5.31 [10:03:20]line Наличными: 0.00 [10:03:20]line Безнал.: 50.00 [10:03:20]line Место: АЗС № 80 "Партнер Нефть" [10:03:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:03:20]line СНО: Общий режим [10:03:20]line Чек 28 23.10.2024 10:03 [10:03:20]line Смена: 491 ФФД: 1.0 [10:03:20]line ЗНМ: 0300000090 [10:03:20]line РНМ: 0000000000097022 [10:03:20]line Версия ККМ: 001 [10:03:20]line Платежная система: Mbank [10:03:20]line ФМ: 0000000000875000 [10:03:20]line ФД: 50283 [10:03:20]line ФПД: 138196138941133 [10:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100321&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50283&fm=138196138941133&tin=02508201610067®Number=0000000000097022&sum=5000 [10:03:20]line 0 [10:03:20]written 0, free lines is 4095 [10:03:20]OFD Sender: Processing packet 50283 [packets to send 7, broken 6] [10:03:20]ProducePacketName [10:03:20]name=ofd_packets/00050283 [10:03:20]OFD Sender: To server: pG, [10:03:20]CommunicateWithHost lk.salyk.kg:30040 [10:03:20]ConnectInit lk.salyk.kg [10:03:20]Connected sock=10 [10:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 EE CA 1F 01 57 AF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1C 00 00 00 F4 03 04 00 E9 C9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C4 00 00 35 04 06 00 7D B0 4B C5 5A CD DF 54 F7 A4 EF DB A4 66 [10:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D8 E4 47 00 91 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C4 00 00 F4 03 04 00 80 75 18 67 B6 04 01 00 00 CA BE 98 1B C8 22 6F BE [10:03:21]CommunicateWithHost err = 0 [10:03:21]CheckOFDResponse [10:03:21]1017 (14) - 77093643461234 [10:03:21]1041 (16) - 0000000000875000 [10:03:21]1040 (4) - 50283 [10:03:21]1012 (4) - 23.10.2024 04:03 [10:03:21]1206 (1) - 0 [10:03:21]OFD Sender: Remove packet 50283 [10:03:21]ProducePacketName [10:03:21]name=ofd_packets/00050283 [10:03:21]NVStorageDeleteData [10:03:21]Write to MH i2c: 01 00 00 79 09 82 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: 01 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: 01 07 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 14 0D AA [10:03:21]RasterBufferAndPrint [10:03:21]line [10:03:21]line [10:03:21]line [10:03:21]line [10:03:21]line [10:03:21]written 0, free lines is 3354 [10:03:21]process_action close_receipt done [10:03:21]requested_data is exist [10:03:21]produce_requested_data [10:03:21]requested_item fm.sn is exist - process it [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 11 00 00 [10:03:21]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 17 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4A [10:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:03:21]wFMCommunicate OK [10:03:21]requested_item fd.num is exist - process it [10:03:21]SAM_PROTO_GetFieldsCounters [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 13 00 00 [10:03:21]Write to MH i2c: E2 08 00 81 09 80 13 00 00 00 00 00 00 06 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 62 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 62 00 81 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_GetFieldsCounters done [10:03:21]requested_item shift.num is exist - process it [10:03:21]requested_item shift.opened is exist - process it [10:03:21]req_shift_opened [10:03:21]FM_GetShiftState [10:03:21]SAM_PROTO_GetShiftState [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 13 01 00 [10:03:21]Write to MH i2c: E2 08 00 82 09 80 13 01 00 00 00 00 00 08 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 82 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 54 [10:03:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_GetShiftState done [10:03:21]FM_GetShiftState done [10:03:21]req_shift_opened done [10:03:21]requested_item shift.open_date is exist - process it [10:03:21]req_shift_open_date [10:03:21]req_shift_open_date done [10:03:21]produce_requested_data done [10:03:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50283,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [10:03:21]process_action_free close_receipt [10:03:21]json_value_free [10:03:21]json_value_free done [10:03:21]process_json_proto returns [10:03:21]Send response to host [10:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50283,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [10:03:21]free response buf [10:03:21]execute_script done [10:03:21]execute_script returns [10:03:21]free content buf [10:03:21]Sock 7.Close socket [10:03:21]Sock 7.Thread stoped [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:37]accept exits with 9 [10:05:37]New connection [10:05:37]New thread 3067305316 created [10:05:37]Thread 3067161956 joined [10:05:37]Waiting for new connection... [10:05:37] Sock 9.Parse request [10:05:37]Sock 9.Check first char [10:05:37]Sock 9.First char is OK [10:05:37]request: POST /json_proto HTTP/1.0 [10:05:37]Method: POST [10:05:37]URL: /json_proto [10:05:37]Method is POST - this is cgi request [10:05:37]url: /json_proto [10:05:37]query_string will be loaded in cgi processing [10:05:37]execute_cgi json_proto POST (null) [10:05:37]execute_cgi path=json_proto method=POST [10:05:37]POST find Content-Length [10:05:37]Host: 172.17.49.196:8080 [10:05:37]Content-Length: 633 [10:05:37]Content-Type: application/json [10:05:37] [10:05:37]POST finish read [10:05:37]Found Content-Length = 633 [10:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164189", "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" ] } } [10:05:37]execute_script... [10:05: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)164189", "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" ] } } [10:05:37]POST & json_proto [10:05:37]process_json_proto [10:05:37]json parsed OK: [10:05:37]protocol is kg_v1.0 [10:05:37]action value=close_receipt [10:05:37]process_action close_receipt [10:05:37]cmd_close_receipt [10:05:37]MH_GetDate [10:05:37]Write to MH i2c: F0 00 00 83 09 7B [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 83 09 00 74 CA 18 67 BD 3B 11 67 B1 [10:05:37]GetLastDocTimeStamp 1729677801 [10:05:37]current date 1729677940 [10:05:37]FM_GetShiftState [10:05:37]SAM_PROTO_GetShiftState [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 13 01 00 [10:05:37]Write to MH i2c: E2 08 00 84 09 80 13 01 00 00 00 00 00 0A [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0E 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0E 00 84 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 56 [10:05:38]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:05:38]wFMCommunicate OK [10:05:38]SAM_PROTO_GetShiftState done [10:05:38]FM_GetShiftState done [10:05:38]opened in 1729642370 [10:05:38]opened+sec_in_day 1729728770 [10:05:38]quantity*price = 7500 [10:05:38]sum+1 = 7501 [10:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 29 23.10.2024 10:05 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50284 ФПД: 39001598756626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100540&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50284&fm=39001598756626&tin=02508201610067®Number=0000000000097022&sum=7500 0 [10:05:39]StoreToDocumentArchive [10:05:39]shift 491 fd 50284 [10:05:39]save to /storage/0491/doc_00050284 [10:05:39]save last doc name /storage/0491/doc_00050284 to /storage/kkm_last_doc_name [10:05:39]save OK [10:05:39]Clear old archive folders... [10:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:05:39]tlvbuf is 000E3AA0 [10:05:39]SAM_PROTO_ClearQueue [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 09 00 00 [10:05:39]Write to MH i2c: E2 08 00 91 09 80 09 00 00 00 00 00 00 0C [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_ClearQueue done [10:05:39]KKMCreateOFDPacket [10:05:39]OFDProtocolAddRootSTLVToBuf [10:05:39]FM_MakeSignedData [10:05:39]FM_MakeSignedData [10:05:39]SAM_PROTO_SignData [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 01 02 [10:05:39]Write to MH i2c: E2 08 00 92 09 80 0D 01 02 00 00 00 00 14 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=255 [10:05:39]MH_SAM_APDU [10:05:39]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 1D 00 00 00 F4 03 04 00 74 CA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:05:39]Write to MH i2c: E2 02 01 93 09 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 1D 00 00 00 F4 03 04 00 74 CA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 30 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 93 09 00 90 00 10 [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=27 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 02 02 16 35 30 30 30 10 04 04 00 6C C4 00 00 35 04 06 00 23 78 C4 70 87 12 [10:05:39]Write to MH i2c: E2 1E 00 94 09 80 0D 02 02 16 00 35 30 30 30 10 04 04 00 6C C4 00 00 35 04 06 00 23 78 C4 70 87 12 00 00 F7 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 94 09 00 90 00 11 [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 03 02 [10:05:39]Write to MH i2c: E2 08 00 95 09 80 0D 03 02 00 00 00 00 19 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0B 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0B 00 95 09 00 55 6F 23 1D 32 A8 45 6B 90 00 A8 [10:05:39]RAPDU: 55 6F 23 1D 32 A8 45 6B 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_SignData done [10:05:39]FM_MakeSignedData done [10:05:39]CreateOFDProtocolMessage [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 11 00 00 [10:05:39]Write to MH i2c: E2 08 00 96 09 80 11 00 00 00 00 00 00 19 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 96 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 60 [10:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:05:39]wFMCommunicate OK [10:05:39]CreateOFDProtocolMessage done [10:05:39]OFDSenderStorePacket 50284 [10:05:39]StoreOFDPacket docnum=50284 [10:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 C2 E8 18 01 E8 39 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 1D 00 00 00 F4 03 04 00 74 CA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6C C4 00 00 35 04 06 00 23 78 C4 70 87 12 55 6F 23 1D 32 A8 45 6B [10:05:39]CheckFolder [10:05:39]dirname=/storage/ofd_packets [10:05:39]CheckFolder done [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00050284 [10:05:39]NVStorageSaveData ofd_packets/00050284 [10:05:39]File name is /storage/ofd_packets/00050284 [10:05:39]Write 318 bytes [10:05:39]NVStorageSaveData done [10:05:39]OFDSenderStorePacket done [10:05:39]KKMCreateOFDPacket done [10:05:39]NVStorageSaveData kkm_last_timestamp [10:05:39]File name is /storage/kkm_last_timestamp [10:05:39]Write 4 bytes [10:05:39]NVStorageSaveData done [10:05:39]ExternCall_PrintAddStr [10:05:39]wPrintStart [10:05:39]Write to MH i2c: 01 00 00 97 09 A0 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 FF 0F B5 [10:05:39]RasterBufferAndPrint [10:05:39]line Счет N : (3)164189 [10:05:39]line ИНН: 02508201610067 [10:05:39]line Контрольно-Кассовый Чек [10:05:39]line ПРОДАЖА [10:05:39]line Товар: 40822938 [10:05:39]line Напиток Фанта 0,5л [10:05:39]line 1.000 * 75.00 [10:05:39]line = 75.00 [10:05:39]line НДС 12% НСП 1% [10:05:39]line > о реализуемом товаре [10:05:39]line ИТОГО: 75.00 [10:05:39]line НСП 1% : 0.66 [10:05:39]line НДС 12% : 7.96 [10:05:39]line Наличными: 75.00 [10:05:39]line Безнал.: 0.00 [10:05:39]line Место: АЗС № 80 "Партнер Нефть" [10:05:39]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:05:39]line СНО: Общий режим [10:05:39]line Чек 29 23.10.2024 10:05 [10:05:39]line Смена: 491 ФФД: 1.0 [10:05:39]line ЗНМ: 0300000090 [10:05:39]line РНМ: 0000000000097022 [10:05:39]line Версия ККМ: 001 [10:05:39]line ФМ: 0000000000875000 [10:05:39]line ФД: 50284 [10:05:39]line ФПД: 39001598756626 [10:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100540&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50284&fm=39001598756626&tin=02508201610067®Number=0000000000097022&sum=7500 [10:05:39]line 0 [10:05:39]written 0, free lines is 4095 [10:05:39]OFD Sender: Processing packet 50284 [packets to send 7, broken 6] [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00050284 [10:05:39]OFD Sender: To server: pG, [10:05:39]CommunicateWithHost lk.salyk.kg:30040 [10:05:39]ConnectInit lk.salyk.kg [10:05:39]Connected sock=7 [10:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 C2 E8 18 01 E8 39 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 1D 00 00 00 F4 03 04 00 74 CA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6C C4 00 00 35 04 06 00 23 78 C4 70 87 12 55 6F 23 1D 32 A8 45 6B [10:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DC D0 47 00 58 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6C C4 00 00 F4 03 04 00 0B 76 18 67 B6 04 01 00 00 5A 28 4A 85 96 35 B1 F3 [10:05:40]CommunicateWithHost err = 0 [10:05:40]CheckOFDResponse [10:05:40]1017 (14) - 77093643461234 [10:05:40]1041 (16) - 0000000000875000 [10:05:40]1040 (4) - 50284 [10:05:40]1012 (4) - 23.10.2024 04:05 [10:05:40]1206 (1) - 0 [10:05:40]OFD Sender: Remove packet 50284 [10:05:40]ProducePacketName [10:05:40]name=ofd_packets/00050284 [10:05:40]NVStorageDeleteData [10:05:40]Write to MH i2c: 01 00 00 BF 09 C8 [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 07 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 0E 0D EA [10:05:40]RasterBufferAndPrint [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]written 0, free lines is 3349 [10:05:40]process_action close_receipt done [10:05:40]requested_data is exist [10:05:40]produce_requested_data [10:05:40]requested_item fm.sn is exist - process it [10:05:40]wFMCommunicate request_size=4 [10:05:40]MH_SAM_APDU [10:05:40]CAPDU: 80 11 00 00 [10:05:40]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:40]Read from MH i2c: E2 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 17 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 90 [10:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:05:40]wFMCommunicate OK [10:05:40]requested_item fd.num is exist - process it [10:05:40]SAM_PROTO_GetFieldsCounters [10:05:40]wFMCommunicate request_size=4 [10:05:40]MH_SAM_APDU [10:05:40]CAPDU: 80 13 00 00 [10:05:40]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:40]Read from MH i2c: E2 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 62 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:40]wFMCommunicate OK [10:05:40]SAM_PROTO_GetFieldsCounters done [10:05:40]requested_item shift.num is exist - process it [10:05:40]requested_item shift.opened is exist - process it [10:05:40]req_shift_opened [10:05:40]FM_GetShiftState [10:05:40]SAM_PROTO_GetShiftState [10:05:40]wFMCommunicate request_size=4 [10:05:40]MH_SAM_APDU [10:05:40]CAPDU: 80 13 01 00 [10:05:40]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:40]Read from MH i2c: E2 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 0E 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 9A [10:05:40]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:05:40]wFMCommunicate OK [10:05:40]SAM_PROTO_GetShiftState done [10:05:40]FM_GetShiftState done [10:05:40]req_shift_opened done [10:05:40]requested_item shift.open_date is exist - process it [10:05:40]req_shift_open_date [10:05:40]req_shift_open_date done [10:05:40]produce_requested_data done [10:05:40]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50284,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [10:05:40]process_action_free close_receipt [10:05:40]json_value_free [10:05:40]json_value_free done [10:05:40]process_json_proto returns [10:05:40]Send response to host [10:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50284,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [10:05:40]free response buf [10:05:40]execute_script done [10:05:40]execute_script returns [10:05:40]free content buf [10:05:40]Sock 9.Close socket [10:05:40]Sock 9.Thread stoped [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]accept exits with 10 [10:34:56]New connection [10:34:56]New thread 3067161956 created [10:34:56]Thread 3067305316 joined [10:34:56]Waiting for new connection... [10:34:56] Sock 10.Parse request [10:34:56]Sock 10.Check first char [10:34:56]Sock 10.First char is OK [10:34:56]request: POST /json_proto HTTP/1.0 [10:34:56]Method: POST [10:34:56]URL: /json_proto [10:34:56]Method is POST - this is cgi request [10:34:56]url: /json_proto [10:34:56]query_string will be loaded in cgi processing [10:34:56]execute_cgi json_proto POST (null) [10:34:56]execute_cgi path=json_proto method=POST [10:34:56]POST find Content-Length [10:34:56]Host: 172.17.49.196:8080 [10:34:56]Content-Length: 1334 [10:34:56]Content-Type: application/json [10:34:56] [10:34:56]POST finish read [10:34:56]Found Content-Length = 1334 [10:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164190", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: Mbank", "payments": [ { "type": 1, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:56]execute_script... [10:34: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)164190", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: Mbank", "payments": [ { "type": 1, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:56]POST & json_proto [10:34:56]process_json_proto [10:34:56]json parsed OK: [10:34:56]protocol is kg_v1.0 [10:34:56]action value=close_receipt [10:34:56]process_action close_receipt [10:34:56]cmd_close_receipt [10:34:56]MH_GetDate [10:34:56]Write to MH i2c: F0 00 00 C9 09 C1 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 09 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 09 00 C9 09 00 52 D1 18 67 BD 3B 11 67 DC [10:34:56]GetLastDocTimeStamp 1729677940 [10:34:56]current date 1729679698 [10:34:56]FM_GetShiftState [10:34:56]SAM_PROTO_GetShiftState [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 01 00 [10:34:56]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 9C [10:34:56]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetShiftState done [10:34:56]FM_GetShiftState done [10:34:56]opened in 1729642370 [10:34:56]opened+sec_in_day 1729728770 [10:34:56]quantity*price = 13900 [10:34:56]sum+1 = 13901 [10:34:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 359.00 НСП 1% : 3.18 НДС 12% : 38.12 Наличными: 0.00 Безнал.: 359.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 30 23.10.2024 10:34 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50285 ФПД: 198243285363869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103459&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50285&fm=198243285363869&tin=02508201610067®Number=0000000000097022&sum=35900 0 [10:34:57]StoreToDocumentArchive [10:34:57]shift 491 fd 50285 [10:34:57]save to /storage/0491/doc_00050285 [10:34:57]save last doc name /storage/0491/doc_00050285 to /storage/kkm_last_doc_name [10:34:57]save OK [10:34:57]Clear old archive folders... [10:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=513 [10:34:57]tlvbuf is 0022DAA0 [10:34:57]SAM_PROTO_ClearQueue [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 09 00 00 [10:34:57]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [10:34:57]RAPDU: 90 00 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_ClearQueue done [10:34:57]KKMCreateOFDPacket [10:34:57]OFDProtocolAddRootSTLVToBuf [10:34:57]FM_MakeSignedData [10:34:57]FM_MakeSignedData [10:34:57]SAM_PROTO_SignData [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 0D 01 02 [10:34:57]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [10:34:57]RAPDU: 90 00 [10:34:57]wFMCommunicate OK [10:34:57]wFMCommunicate request_size=255 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 0D 02 02 FA 03 00 01 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 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 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 [10:34:57]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 01 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 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 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 00 00 D1 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=255 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 02 02 FA D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 53 D1 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 [10:34:58]Write to MH i2c: E2 02 01 DA 09 80 0D 02 02 FA 00 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 53 D1 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 00 00 66 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=22 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 02 02 11 04 04 00 6D C4 00 00 35 04 06 00 B4 4D 1C 9A 6C 9D [10:34:58]Write to MH i2c: E2 19 00 DB 09 80 0D 02 02 11 00 04 04 00 6D C4 00 00 35 04 06 00 B4 4D 1C 9A 6C 9D 00 00 B8 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 03 02 [10:34:58]Write to MH i2c: E2 08 00 DC 09 80 0D 03 02 00 00 00 00 60 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 DC 09 00 B0 10 E0 45 08 87 C7 9C 90 00 38 [10:34:58]RAPDU: B0 10 E0 45 08 87 C7 9C 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_SignData done [10:34:58]FM_MakeSignedData done [10:34:58]CreateOFDProtocolMessage [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 11 00 00 [10:34:58]Write to MH i2c: E2 08 00 DD 09 80 11 00 00 00 00 00 00 60 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 DD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A7 [10:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:34:58]wFMCommunicate OK [10:34:58]CreateOFDProtocolMessage done [10:34:58]OFDSenderStorePacket 50285 [10:34:58]StoreOFDPacket docnum=50285 [10:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 02 00 00 00 C8 0D 02 55 AA 5A 03 01 00 03 00 01 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 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 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 53 D1 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C4 00 00 35 04 06 00 B4 4D 1C 9A 6C 9D B0 10 E0 45 08 87 C7 9C [10:34:58]CheckFolder [10:34:58]dirname=/storage/ofd_packets [10:34:58]CheckFolder done [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00050285 [10:34:58]NVStorageSaveData ofd_packets/00050285 [10:34:58]File name is /storage/ofd_packets/00050285 [10:34:58]Write 563 bytes [10:34:58]NVStorageSaveData done [10:34:58]OFDSenderStorePacket done [10:34:58]KKMCreateOFDPacket done [10:34:58]NVStorageSaveData kkm_last_timestamp [10:34:58]File name is /storage/kkm_last_timestamp [10:34:58]Write 4 bytes [10:34:58]NVStorageSaveData done [10:34:58]ExternCall_PrintAddStr [10:34:58]wPrintStart [10:34:58]Write to MH i2c: 01 00 00 DE 09 E7 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 DE 09 00 00 00 00 00 FF 0F FC [10:34:58]RasterBufferAndPrint [10:34:58]line Счет N : (3)164190 [10:34:58]line ИНН: 02508201610067 [10:34:58]line Контрольно-Кассовый Чек [10:34:58]line ПРОДАЖА [10:34:58]line Товар: 48745000 [10:34:58]line Сигареты Winston Purple Mix [10:34:58]line 1.000 * 139.00 [10:34:58]line = 139.00 [10:34:58]line НДС 12% НСП 1% [10:34:58]line > о реализуемом товаре [10:34:58]line Товар: 2000036220012 [10:34:58]line Кофе Капучино XL(GABB TRADE) [10:34:58]line 1.000 * 130.00 [10:34:58]line = 130.00 [10:34:58]line НДС 12% НСП 1% [10:34:58]line > о реализуемом товаре [10:34:58]line Товар: 4660085515163 [10:34:58]line Шок Батончик Сникерс супер 95/80г [10:34:58]line 1.000 * 90.00 [10:34:58]line = 90.00 [10:34:58]line НДС 12% НСП 1% [10:34:58]line > о реализуемом товаре [10:34:58]line ИТОГО: 359.00 [10:34:58]line НСП 1% : 3.18 [10:34:58]line НДС 12% : 38.12 [10:34:58]line Наличными: 0.00 [10:34:58]line Безнал.: 359.00 [10:34:58]line Место: АЗС № 80 "Партнер Нефть" [10:34:58]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:34:58]line СНО: Общий режим [10:34:58]line Чек 30 23.10.2024 10:34 [10:34:58]line Смена: 491 ФФД: 1.0 [10:34:58]line ЗНМ: 0300000090 [10:34:58]line РНМ: 0000000000097022 [10:34:58]line Версия ККМ: 001 [10:34:58]line Платежная система: Mbank [10:34:58]line ФМ: 0000000000875000 [10:34:58]line ФД: 50285 [10:34:58]line ФПД: 198243285363869 [10:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103459&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50285&fm=198243285363869&tin=02508201610067®Number=0000000000097022&sum=35900 [10:34:58]line 0 [10:34:58]OFD Sender: Processing packet 50285 [packets to send 7, broken 6] [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00050285 [10:34:58]OFD Sender: To server: pG, [10:34:58]CommunicateWithHost lk.salyk.kg:30040 [10:34:58]ConnectInit lk.salyk.kg [10:34:58]written 0, free lines is 4095 [10:34:59]Connected sock=9 [10:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 02 00 00 00 C8 0D 02 55 AA 5A 03 01 00 03 00 01 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 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 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 53 D1 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C4 00 00 35 04 06 00 B4 4D 1C 9A 6C 9D B0 10 E0 45 08 87 C7 9C [10:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A3 82 47 00 51 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C4 00 00 F4 03 04 00 EA 7C 18 67 B6 04 01 00 00 84 41 88 8A 2C A2 5D AC [10:34:59]CommunicateWithHost err = 0 [10:34:59]CheckOFDResponse [10:34:59]1017 (14) - 77093643461234 [10:34:59]1041 (16) - 0000000000875000 [10:34:59]1040 (4) - 50285 [10:34:59]1012 (4) - 23.10.2024 04:34 [10:34:59]1206 (1) - 0 [10:34:59]OFD Sender: Remove packet 50285 [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00050285 [10:34:59]NVStorageDeleteData [10:34:59]Write to MH i2c: 01 00 00 15 0A 1F [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 15 0A 00 00 00 00 00 6C 0C 9E [10:34:59]RasterBufferAndPrint [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]written 0, free lines is 3190 [10:34:59]process_action close_receipt done [10:34:59]requested_data is exist [10:34:59]produce_requested_data [10:34:59]requested_item fm.sn is exist - process it [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 11 00 00 [10:34:59]Write to MH i2c: E2 08 00 1C 0A 80 11 00 00 00 00 00 00 A0 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 1C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E7 [10:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:34:59]wFMCommunicate OK [10:34:59]requested_item fd.num is exist - process it [10:34:59]SAM_PROTO_GetFieldsCounters [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 00 00 [10:34:59]Write to MH i2c: E2 08 00 1D 0A 80 13 00 00 00 00 00 00 A3 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 1D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetFieldsCounters done [10:34:59]requested_item shift.num is exist - process it [10:34:59]requested_item shift.opened is exist - process it [10:34:59]req_shift_opened [10:34:59]FM_GetShiftState [10:34:59]SAM_PROTO_GetShiftState [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 01 00 [10:34:59]Write to MH i2c: E2 08 00 1E 0A 80 13 01 00 00 00 00 00 A5 [10:34:59]OFD Sender: No OFD packet to send [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 1E 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F1 [10:34:59]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetShiftState done [10:34:59]FM_GetShiftState done [10:34:59]req_shift_opened done [10:34:59]requested_item shift.open_date is exist - process it [10:34:59]req_shift_open_date [10:34:59]req_shift_open_date done [10:34:59]produce_requested_data done [10:34:59]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50285,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [10:34:59]process_action_free close_receipt [10:34:59]json_value_free [10:34:59]json_value_free done [10:34:59]process_json_proto returns [10:34:59]Send response to host [10:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50285,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [10:34:59]free response buf [10:34:59]execute_script done [10:34:59]execute_script returns [10:34:59]free content buf [10:34:59]Sock 10.Close socket [10:34:59]Sock 10.Thread stoped [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]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:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:42]accept exits with 7 [10:40:42]New connection [10:40:42]New thread 3067305316 created [10:40:42]Thread 3067161956 joined [10:40:42]Waiting for new connection... [10:40:42] Sock 7.Parse request [10:40:42]Sock 7.Check first char [10:40:42]Sock 7.First char is OK [10:40:42]request: POST /json_proto HTTP/1.0 [10:40:42]Method: POST [10:40:42]URL: /json_proto [10:40:42]Method is POST - this is cgi request [10:40:42]url: /json_proto [10:40:42]query_string will be loaded in cgi processing [10:40:42]execute_cgi json_proto POST (null) [10:40:42]execute_cgi path=json_proto method=POST [10:40:42]POST find Content-Length [10:40:42]Host: 172.17.49.196:8080 [10:40:42]Content-Length: 646 [10:40:42]Content-Type: application/json [10:40:42] [10:40:42]POST finish read [10:40:42]Found Content-Length = 646 [10:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164191", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:42]execute_script... [10:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164191", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:42]POST & json_proto [10:40:42]process_json_proto [10:40:42]json parsed OK: [10:40:42]protocol is kg_v1.0 [10:40:42]action value=close_receipt [10:40:42]process_action close_receipt [10:40:42]cmd_close_receipt [10:40:42]MH_GetDate [10:40:42]Write to MH i2c: F0 00 00 1F 0A 18 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 09 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 09 00 1F 0A 00 AD D2 18 67 BD 3B 11 67 8F [10:40:42]GetLastDocTimeStamp 1729679699 [10:40:42]current date 1729680045 [10:40:42]FM_GetShiftState [10:40:42]SAM_PROTO_GetShiftState [10:40:42]wFMCommunicate request_size=4 [10:40:42]MH_SAM_APDU [10:40:42]CAPDU: 80 13 01 00 [10:40:42]Write to MH i2c: E2 08 00 20 0A 80 13 01 00 00 00 00 00 A7 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:42]Read from MH i2c: E2 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0E 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0E 00 20 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F3 [10:40:42]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:40:42]wFMCommunicate OK [10:40:42]SAM_PROTO_GetShiftState done [10:40:42]FM_GetShiftState done [10:40:42]opened in 1729642370 [10:40:42]opened+sec_in_day 1729728770 [10:40:42]quantity*price = 6100 [10:40:42]sum+1 = 6101 [10:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 61.00 НСП 1% : 0.54 НДС 12% : 6.48 Наличными: 61.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 31 23.10.2024 10:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50286 ФПД: 272933754282165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104045&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50286&fm=272933754282165&tin=02508201610067®Number=0000000000097022&sum=6100 0 [10:40:44]StoreToDocumentArchive [10:40:44]shift 491 fd 50286 [10:40:44]save to /storage/0491/doc_00050286 [10:40:44]save last doc name /storage/0491/doc_00050286 to /storage/kkm_last_doc_name [10:40:44]save OK [10:40:44]Clear old archive folders... [10:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=285 [10:40:44]tlvbuf is 00100320 [10:40:44]SAM_PROTO_ClearQueue [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 09 00 00 [10:40:44]Write to MH i2c: E2 08 00 2D 0A 80 09 00 00 00 00 00 00 A9 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]SAM_PROTO_ClearQueue done [10:40:44]KKMCreateOFDPacket [10:40:44]OFDProtocolAddRootSTLVToBuf [10:40:44]FM_MakeSignedData [10:40:44]FM_MakeSignedData [10:40:44]SAM_PROTO_SignData [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 01 02 [10:40:44]Write to MH i2c: E2 08 00 2E 0A 80 0D 01 02 00 00 00 00 B1 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]wFMCommunicate request_size=255 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 AD D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [10:40:44]Write to MH i2c: E2 02 01 2F 0A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 AD D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 3A [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]wFMCommunicate request_size=44 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6E C4 00 00 35 04 06 00 F8 3B 57 78 A0 B5 [10:40:44]Write to MH i2c: E2 2F 00 30 0A 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6E C4 00 00 35 04 06 00 F8 3B 57 78 A0 B5 00 00 4D [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 03 02 [10:40:44]Write to MH i2c: E2 08 00 31 0A 80 0D 03 02 00 00 00 00 B6 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0B 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0B 00 31 0A 00 12 7A 91 1C F6 13 3D EF 90 00 25 [10:40:44]RAPDU: 12 7A 91 1C F6 13 3D EF 90 00 [10:40:44]wFMCommunicate OK [10:40:44]SAM_PROTO_SignData done [10:40:44]FM_MakeSignedData done [10:40:44]CreateOFDProtocolMessage [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 11 00 00 [10:40:44]Write to MH i2c: E2 08 00 32 0A 80 11 00 00 00 00 00 00 B6 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 32 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FD [10:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:40:44]wFMCommunicate OK [10:40:44]CreateOFDProtocolMessage done [10:40:44]OFDSenderStorePacket 50286 [10:40:44]StoreOFDPacket docnum=50286 [10:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 68 4D 29 01 F8 6A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 AD D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6E C4 00 00 35 04 06 00 F8 3B 57 78 A0 B5 12 7A 91 1C F6 13 3D EF [10:40:44]CheckFolder [10:40:44]dirname=/storage/ofd_packets [10:40:44]CheckFolder done [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00050286 [10:40:44]NVStorageSaveData ofd_packets/00050286 [10:40:44]File name is /storage/ofd_packets/00050286 [10:40:44]Write 335 bytes [10:40:44]NVStorageSaveData done [10:40:44]OFDSenderStorePacket done [10:40:44]KKMCreateOFDPacket done [10:40:44]NVStorageSaveData kkm_last_timestamp [10:40:44]File name is /storage/kkm_last_timestamp [10:40:44]Write 4 bytes [10:40:44]NVStorageSaveData done [10:40:44]ExternCall_PrintAddStr [10:40:44]wPrintStart [10:40:44]Write to MH i2c: 01 00 00 33 0A 3D [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 FF 0F 52 [10:40:44]RasterBufferAndPrint [10:40:44]line Счет N : (3)164191 [10:40:44]line ИНН: 02508201610067 [10:40:44]line Контрольно-Кассовый Чек [10:40:44]line ПРОДАЖА [10:40:44]line Товар: 4870001154035 [10:40:44]line Напиток Lipton IceTea 0,5л перс [10:40:44]line 1.000 * 61.00 [10:40:44]line = 61.00 [10:40:44]line НДС 12% НСП 1% [10:40:44]line > о реализуемом товаре [10:40:44]line ИТОГО: 61.00 [10:40:44]line НСП 1% : 0.54 [10:40:44]line НДС 12% : 6.48 [10:40:44]line Наличными: 61.00 [10:40:44]line Безнал.: 0.00 [10:40:44]line Место: АЗС № 80 "Партнер Нефть" [10:40:44]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:40:44]line СНО: Общий режим [10:40:44]line Чек 31 23.10.2024 10:40 [10:40:44]line Смена: 491 ФФД: 1.0 [10:40:44]line ЗНМ: 0300000090 [10:40:44]line РНМ: 0000000000097022 [10:40:44]line Версия ККМ: 001 [10:40:44]line ФМ: 0000000000875000 [10:40:44]line ФД: 50286 [10:40:44]line ФПД: 272933754282165 [10:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104045&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50286&fm=272933754282165&tin=02508201610067®Number=0000000000097022&sum=6100 [10:40:45]line 0 [10:40:45]OFD Sender: Processing packet 50286 [packets to send 7, broken 6] [10:40:45]ProducePacketName [10:40:45]name=ofd_packets/00050286 [10:40:45]OFD Sender: To server: pG, [10:40:45]CommunicateWithHost lk.salyk.kg:30040 [10:40:45]ConnectInit lk.salyk.kg [10:40:45]written 0, free lines is 4095 [10:40:45]Connected sock=10 [10:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 68 4D 29 01 F8 6A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 AD D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6E C4 00 00 35 04 06 00 F8 3B 57 78 A0 B5 12 7A 91 1C F6 13 3D EF [10:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 39 60 47 00 4F 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6E C4 00 00 F4 03 04 00 45 7E 18 67 B6 04 01 00 00 69 6A 10 E8 A1 76 11 E1 [10:40:45]CommunicateWithHost err = 0 [10:40:45]CheckOFDResponse [10:40:45]1017 (14) - 77093643461234 [10:40:45]1041 (16) - 0000000000875000 [10:40:45]1040 (4) - 50286 [10:40:45]1012 (4) - 23.10.2024 04:40 [10:40:45]1206 (1) - 0 [10:40:45]OFD Sender: Remove packet 50286 [10:40:45]ProducePacketName [10:40:45]name=ofd_packets/00050286 [10:40:45]NVStorageDeleteData [10:40:45]Write to MH i2c: 01 00 00 5C 0A 66 [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 07 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FE 0C 77 [10:40:45]RasterBufferAndPrint [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]written 0, free lines is 3332 [10:40:45]process_action close_receipt done [10:40:45]requested_data is exist [10:40:45]produce_requested_data [10:40:45]requested_item fm.sn is exist - process it [10:40:45]wFMCommunicate request_size=4 [10:40:45]MH_SAM_APDU [10:40:45]CAPDU: 80 11 00 00 [10:40:45]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:45]Read from MH i2c: E2 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 17 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2E [10:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:40:45]wFMCommunicate OK [10:40:45]requested_item fd.num is exist - process it [10:40:45]SAM_PROTO_GetFieldsCounters [10:40:45]wFMCommunicate request_size=4 [10:40:45]MH_SAM_APDU [10:40:45]CAPDU: 80 13 00 00 [10:40:45]Write to MH i2c: E2 08 00 64 0A 80 13 00 00 00 00 00 00 EA [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:45]Read from MH i2c: E2 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 62 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 62 00 64 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:45]wFMCommunicate OK [10:40:45]SAM_PROTO_GetFieldsCounters done [10:40:45]requested_item shift.num is exist - process it [10:40:45]requested_item shift.opened is exist - process it [10:40:45]req_shift_opened [10:40:45]FM_GetShiftState [10:40:45]SAM_PROTO_GetShiftState [10:40:45]wFMCommunicate request_size=4 [10:40:45]MH_SAM_APDU [10:40:45]CAPDU: 80 13 01 00 [10:40:45]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:45]Read from MH i2c: E2 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 0E 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 38 [10:40:45]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:40:45]wFMCommunicate OK [10:40:45]SAM_PROTO_GetShiftState done [10:40:45]FM_GetShiftState done [10:40:45]req_shift_opened done [10:40:45]requested_item shift.open_date is exist - process it [10:40:45]req_shift_open_date [10:40:45]req_shift_open_date done [10:40:45]produce_requested_data done [10:40:45]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50286,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [10:40:45]process_action_free close_receipt [10:40:45]json_value_free [10:40:45]json_value_free done [10:40:45]process_json_proto returns [10:40:45]Send response to host [10:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50286,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [10:40:45]free response buf [10:40:45]execute_script done [10:40:45]execute_script returns [10:40:45]free content buf [10:40:45]Sock 7.Close socket [10:40:45]Sock 7.Thread stoped [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:04]accept exits with 9 [10:42:04]New connection [10:42:04]New thread 3067161956 created [10:42:04]Thread 3067305316 joined [10:42:04]Waiting for new connection... [10:42:04] Sock 9.Parse request [10:42:04]Sock 9.Check first char [10:42:04]Sock 9.First char is OK [10:42:04]request: POST /json_proto HTTP/1.0 [10:42:04]Method: POST [10:42:04]URL: /json_proto [10:42:04]Method is POST - this is cgi request [10:42:04]url: /json_proto [10:42:04]query_string will be loaded in cgi processing [10:42:04]execute_cgi json_proto POST (null) [10:42:04]execute_cgi path=json_proto method=POST [10:42:04]POST find Content-Length [10:42:04]Host: 172.17.49.196:8080 [10:42:04]Content-Length: 621 [10:42:04]Content-Type: application/json [10:42:04] [10:42:04]POST finish read [10:42:04]Found Content-Length = 621 [10:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164192", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:04]execute_script... [10:42: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)164192", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:04]POST & json_proto [10:42:04]process_json_proto [10:42:04]json parsed OK: [10:42:04]protocol is kg_v1.0 [10:42:04]action value=close_receipt [10:42:04]process_action close_receipt [10:42:04]cmd_close_receipt [10:42:04]MH_GetDate [10:42:04]Write to MH i2c: F0 00 00 66 0A 5F [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 09 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 09 00 66 0A 00 FE D2 18 67 BD 3B 11 67 27 [10:42:04]GetLastDocTimeStamp 1729680045 [10:42:04]current date 1729680126 [10:42:04]FM_GetShiftState [10:42:04]SAM_PROTO_GetShiftState [10:42:04]wFMCommunicate request_size=4 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 13 01 00 [10:42:04]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:04]Read from MH i2c: E2 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 0E 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3A [10:42:04]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:42:04]wFMCommunicate OK [10:42:04]SAM_PROTO_GetShiftState done [10:42:04]FM_GetShiftState done [10:42:04]opened in 1729642370 [10:42:04]opened+sec_in_day 1729728770 [10:42:04]quantity*price = 14400 [10:42:04]sum+1 = 14401 [10:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 32 23.10.2024 10:42 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50287 ФПД: 247148090539862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104206&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50287&fm=247148090539862&tin=02508201610067®Number=0000000000097022&sum=14400 0 [10:42:05]StoreToDocumentArchive [10:42:05]shift 491 fd 50287 [10:42:05]save to /storage/0491/doc_00050287 [10:42:05]save last doc name /storage/0491/doc_00050287 to /storage/kkm_last_doc_name [10:42:05]save OK [10:42:05]Clear old archive folders... [10:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:42:05]tlvbuf is 002165B0 [10:42:05]SAM_PROTO_ClearQueue [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 09 00 00 [10:42:05]Write to MH i2c: E2 08 00 74 0A 80 09 00 00 00 00 00 00 F0 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_ClearQueue done [10:42:05]KKMCreateOFDPacket [10:42:05]OFDProtocolAddRootSTLVToBuf [10:42:05]FM_MakeSignedData [10:42:05]FM_MakeSignedData [10:42:05]SAM_PROTO_SignData [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 01 02 [10:42:05]Write to MH i2c: E2 08 00 75 0A 80 0D 01 02 00 00 00 00 F8 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=255 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 20 00 00 00 F4 03 04 00 FE D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [10:42:05]Write to MH i2c: E2 02 01 76 0A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 20 00 00 00 F4 03 04 00 FE D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 A4 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=32 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C4 00 00 35 04 06 00 E0 C7 A6 24 BF 56 [10:42:05]Write to MH i2c: E2 23 00 77 0A 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C4 00 00 35 04 06 00 E0 C7 A6 24 BF 56 00 00 05 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 03 02 [10:42:05]Write to MH i2c: E2 08 00 78 0A 80 0D 03 02 00 00 00 00 FD [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 78 0A 00 82 D4 F3 B4 D3 C6 4F FC 90 00 DF [10:42:05]RAPDU: 82 D4 F3 B4 D3 C6 4F FC 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_SignData done [10:42:05]FM_MakeSignedData done [10:42:05]CreateOFDProtocolMessage [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 11 00 00 [10:42:05]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 44 [10:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:42:05]wFMCommunicate OK [10:42:05]CreateOFDProtocolMessage done [10:42:05]OFDSenderStorePacket 50287 [10:42:05]StoreOFDPacket docnum=50287 [10:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 F9 0D 1D 01 DB 63 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 20 00 00 00 F4 03 04 00 FE D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C4 00 00 35 04 06 00 E0 C7 A6 24 BF 56 82 D4 F3 B4 D3 C6 4F FC [10:42:05]CheckFolder [10:42:05]dirname=/storage/ofd_packets [10:42:05]CheckFolder done [10:42:05]ProducePacketName [10:42:05]name=ofd_packets/00050287 [10:42:05]NVStorageSaveData ofd_packets/00050287 [10:42:05]File name is /storage/ofd_packets/00050287 [10:42:05]Write 323 bytes [10:42:05]NVStorageSaveData done [10:42:05]OFDSenderStorePacket done [10:42:05]KKMCreateOFDPacket done [10:42:05]NVStorageSaveData kkm_last_timestamp [10:42:05]File name is /storage/kkm_last_timestamp [10:42:05]Write 4 bytes [10:42:05]NVStorageSaveData done [10:42:05]ExternCall_PrintAddStr [10:42:05]wPrintStart [10:42:05]Write to MH i2c: 01 00 00 7A 0A 84 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [10:42:05]RasterBufferAndPrint [10:42:05]line Счет N : (3)164192 [10:42:05]line ИНН: 02508201610067 [10:42:05]line Контрольно-Кассовый Чек [10:42:05]line ПРОДАЖА [10:42:05]line Товар: 48747059 [10:42:05]line Сигареты Winston Legend Blue [10:42:05]line 1.000 * 144.00 [10:42:05]line = 144.00 [10:42:05]line НДС 12% НСП 1% [10:42:05]line > о реализуемом товаре [10:42:05]line ИТОГО: 144.00 [10:42:05]line НСП 1% : 1.27 [10:42:05]line НДС 12% : 15.29 [10:42:05]line Наличными: 144.00 [10:42:05]line Безнал.: 0.00 [10:42:05]line Место: АЗС № 80 "Партнер Нефть" [10:42:05]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:42:05]line СНО: Общий режим [10:42:05]line Чек 32 23.10.2024 10:42 [10:42:05]line Смена: 491 ФФД: 1.0 [10:42:05]line ЗНМ: 0300000090 [10:42:05]line РНМ: 0000000000097022 [10:42:05]line Версия ККМ: 001 [10:42:05]line ФМ: 0000000000875000 [10:42:05]line ФД: 50287 [10:42:05]line ФПД: 247148090539862 [10:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104206&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50287&fm=247148090539862&tin=02508201610067®Number=0000000000097022&sum=14400 [10:42:06]OFD Sender: Processing packet 50287 [packets to send 7, broken 6] [10:42:06]ProducePacketName [10:42:06]name=ofd_packets/00050287 [10:42:06]OFD Sender: To server: pG, [10:42:06]CommunicateWithHost lk.salyk.kg:30040 [10:42:06]ConnectInit lk.salyk.kg [10:42:06]line 0 [10:42:06]written 0, free lines is 4095 [10:42:06]Write to MH i2c: 01 00 00 A3 0A AD [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 F0 0C B0 [10:42:06]RasterBufferAndPrint [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]written 0, free lines is 3318 [10:42:06]process_action close_receipt done [10:42:06]requested_data is exist [10:42:06]produce_requested_data [10:42:06]requested_item fm.sn is exist - process it [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 11 00 00 [10:42:06]Write to MH i2c: E2 08 00 AA 0A 80 11 00 00 00 00 00 00 2E [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 17 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 17 00 AA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 75 [10:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:42:06]wFMCommunicate OK [10:42:06]requested_item fd.num is exist - process it [10:42:06]SAM_PROTO_GetFieldsCounters [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 13 00 00 [10:42:06]Write to MH i2c: E2 08 00 AB 0A 80 13 00 00 00 00 00 00 31 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 62 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 62 00 AB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:06]wFMCommunicate OK [10:42:06]SAM_PROTO_GetFieldsCounters done [10:42:06]requested_item shift.num is exist - process it [10:42:06]requested_item shift.opened is exist - process it [10:42:06]req_shift_opened [10:42:06]FM_GetShiftState [10:42:06]SAM_PROTO_GetShiftState [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 13 01 00 [10:42:06]Write to MH i2c: E2 08 00 AC 0A 80 13 01 00 00 00 00 00 33 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 0E 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 0E 00 AC 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7F [10:42:06]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [10:42:06]wFMCommunicate OK [10:42:06]SAM_PROTO_GetShiftState done [10:42:06]FM_GetShiftState done [10:42:06]req_shift_opened done [10:42:06]requested_item shift.open_date is exist - process it [10:42:06]req_shift_open_date [10:42:06]req_shift_open_date done [10:42:06]produce_requested_data done [10:42:06]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50287,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [10:42:06]process_action_free close_receipt [10:42:06]json_value_free [10:42:06]json_value_free done [10:42:06]process_json_proto returns [10:42:06]Send response to host [10:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50287,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [10:42:06]free response buf [10:42:06]execute_script done [10:42:06]execute_script returns [10:42:06]free content buf [10:42:06]Sock 9.Close socket [10:42:06]Sock 9.Thread stoped [10:44:18]ConnectInit Can't connect to host [10:44:18]CommunicateWithHost connect error [10:44:18]CommunicateWithHost err = -1 [10:44:18]OFD Sender: Server communicate error [10:44:23]OFD Sender: Processing packet 50287 [packets to send 7, broken 6] [10:44:23]ProducePacketName [10:44:23]name=ofd_packets/00050287 [10:44:23]OFD Sender: To server: pG, [10:44:23]CommunicateWithHost lk.salyk.kg:30040 [10:44:23]ConnectInit lk.salyk.kg [10:44:23]Connected sock=9 [10:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 F9 0D 1D 01 DB 63 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 20 00 00 00 F4 03 04 00 FE D2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C4 00 00 35 04 06 00 E0 C7 A6 24 BF 56 82 D4 F3 B4 D3 C6 4F FC [10:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E2 A5 47 00 D5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C4 00 00 F4 03 04 00 1F 7F 18 67 B6 04 01 00 00 75 D9 87 4D A9 F4 A7 05 [10:44:23]CommunicateWithHost err = 0 [10:44:23]CheckOFDResponse [10:44:23]1017 (14) - 77093643461234 [10:44:23]1041 (16) - 0000000000875000 [10:44:23]1040 (4) - 50287 [10:44:23]1012 (4) - 23.10.2024 04:44 [10:44:23]1206 (1) - 0 [10:44:23]OFD Sender: Remove packet 50287 [10:44:23]ProducePacketName [10:44:23]name=ofd_packets/00050287 [10:44:23]NVStorageDeleteData [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [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:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]accept exits with 7 [11:11:30]New connection [11:11:30]New thread 3067305316 created [11:11:30]Thread 3067161956 joined [11:11:30]Waiting for new connection... [11:11:30] Sock 7.Parse request [11:11:30]Sock 7.Check first char [11:11:30]Sock 7.First char is OK [11:11:30]request: POST /json_proto HTTP/1.0 [11:11:30]Method: POST [11:11:30]URL: /json_proto [11:11:30]Method is POST - this is cgi request [11:11:30]url: /json_proto [11:11:30]query_string will be loaded in cgi processing [11:11:30]execute_cgi json_proto POST (null) [11:11:30]execute_cgi path=json_proto method=POST [11:11:30]POST find Content-Length [11:11:30]Host: 172.17.49.196:8080 [11:11:30]Content-Length: 684 [11:11:30]Content-Type: application/json [11:11:30] [11:11:30]POST finish read [11:11:30]Found Content-Length = 684 [11:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:30]execute_script... [11:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:30]POST & json_proto [11:11:30]process_json_proto [11:11:30]json parsed OK: [11:11:30]protocol is kg_v1.0 [11:11:30]action value=close_receipt [11:11:30]process_action close_receipt [11:11:30]cmd_close_receipt [11:11:30]MH_GetDate [11:11:30]Write to MH i2c: F0 00 00 AD 0A A6 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 09 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 09 00 AD 0A 00 E4 D9 18 67 BD 3B 11 67 5B [11:11:30]GetLastDocTimeStamp 1729680126 [11:11:30]current date 1729681892 [11:11:30]FM_GetShiftState [11:11:30]SAM_PROTO_GetShiftState [11:11:30]wFMCommunicate request_size=4 [11:11:30]MH_SAM_APDU [11:11:30]CAPDU: 80 13 01 00 [11:11:30]Write to MH i2c: E2 08 00 AE 0A 80 13 01 00 00 00 00 00 35 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:30]Read from MH i2c: E2 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: E2 0E 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: E2 0E 00 AE 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 81 [11:11:30]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:11:30]wFMCommunicate OK [11:11:30]SAM_PROTO_GetShiftState done [11:11:30]FM_GetShiftState done [11:11:30]opened in 1729642370 [11:11:30]opened+sec_in_day 1729728770 [11:11:30]quantity*price = 150056 [11:11:30]sum+1 = 150058 [11:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 33 23.10.2024 11:11 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50288 ФПД: 85254588196113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111132&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50288&fm=85254588196113&tin=02508201610067®Number=0000000000097022&sum=150000 [11:11:31]StoreToDocumentArchive [11:11:31]shift 491 fd 50288 [11:11:31]save to /storage/0491/doc_00050288 [11:11:31]save last doc name /storage/0491/doc_00050288 to /storage/kkm_last_doc_name [11:11:31]save OK [11:11:31]Clear old archive folders... [11:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:31]tlvbuf is 002259A0 [11:11:31]SAM_PROTO_ClearQueue [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 09 00 00 [11:11:31]Write to MH i2c: E2 08 00 BB 0A 80 09 00 00 00 00 00 00 37 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]SAM_PROTO_ClearQueue done [11:11:31]KKMCreateOFDPacket [11:11:31]OFDProtocolAddRootSTLVToBuf [11:11:31]FM_MakeSignedData [11:11:31]FM_MakeSignedData [11:11:31]SAM_PROTO_SignData [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 01 02 [11:11:31]Write to MH i2c: E2 08 00 BC 0A 80 0D 01 02 00 00 00 00 3F [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=255 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E4 D9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C4 00 00 35 04 06 00 4D [11:11:31]Write to MH i2c: E2 02 01 BD 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E4 D9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C4 00 00 35 04 06 00 4D 00 00 CF [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=10 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 02 02 05 89 E1 71 E5 11 [11:11:31]Write to MH i2c: E2 0D 00 BE 0A 80 0D 02 02 05 00 89 E1 71 E5 11 00 00 1D [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 03 02 [11:11:31]Write to MH i2c: E2 08 00 BF 0A 80 0D 03 02 00 00 00 00 44 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0B 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0B 00 BF 0A 00 7B A9 CF ED 44 E3 78 8C 90 00 50 [11:11:31]RAPDU: 7B A9 CF ED 44 E3 78 8C 90 00 [11:11:31]wFMCommunicate OK [11:11:31]SAM_PROTO_SignData done [11:11:31]FM_MakeSignedData done [11:11:31]CreateOFDProtocolMessage [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 11 00 00 [11:11:31]Write to MH i2c: E2 08 00 C0 0A 80 11 00 00 00 00 00 00 44 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 17 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 17 00 C0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8B [11:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:11:31]wFMCommunicate OK [11:11:31]CreateOFDProtocolMessage done [11:11:31]OFDSenderStorePacket 50288 [11:11:31]StoreOFDPacket docnum=50288 [11:11:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 16 92 07 01 E8 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E4 D9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C4 00 00 35 04 06 00 4D 89 E1 71 E5 11 7B A9 CF ED 44 E3 78 8C [11:11:31]CheckFolder [11:11:31]dirname=/storage/ofd_packets [11:11:31]CheckFolder done [11:11:31]ProducePacketName [11:11:31]name=ofd_packets/00050288 [11:11:31]NVStorageSaveData ofd_packets/00050288 [11:11:31]File name is /storage/ofd_packets/00050288 [11:11:31]Write 301 bytes [11:11:31]NVStorageSaveData done [11:11:31]OFDSenderStorePacket done [11:11:31]KKMCreateOFDPacket done [11:11:31]NVStorageSaveData kkm_last_timestamp [11:11:31]File name is /storage/kkm_last_timestamp [11:11:31]Write 4 bytes [11:11:31]NVStorageSaveData done [11:11:31]ExternCall_PrintAddStr [11:11:31]wPrintStart [11:11:31]Write to MH i2c: 01 00 00 C1 0A CB [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [11:11:31]RasterBufferAndPrint [11:11:31]line Счет N : (1)15441026 [11:11:31]line ИНН: 02508201610067 [11:11:31]line Контрольно-Кассовый Чек [11:11:31]line ПРОДАЖА [11:11:31]line ТРК (МРК, ГНК) : 33 [11:11:31]line Товар: 2710124130 [11:11:31]line Аи-92-К-4 [11:11:31]line 22.430 * 66.90 [11:11:31]line = 1500.57 [11:11:31]line НДС 12% НСП 1% [11:11:31]line > о реализуемом товаре [11:11:31]line ОКРУГЛЕНИЕ: -0.57 [11:11:31]line ИТОГО: 1500.00 [11:11:31]line Внесено: 1500.00 [11:11:31]line СДАЧА: 0.00 [11:11:31]line НСП 1% : 13.28 [11:11:31]line НДС 12% : 159.35 [11:11:31]line Наличными: 1500.00 [11:11:31]line Безнал.: 0.00 [11:11:31]line Место: АЗС № 80 "Партнер Нефть" [11:11:31]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:11:31]line СНО: Общий режим [11:11:31]line Чек 33 23.10.2024 11:11 [11:11:31]line Смена: 491 ФФД: 1.0 [11:11:31]line ЗНМ: 0300000090 [11:11:31]line РНМ: 0000000000097022 [11:11:31]line Версия ККМ: 001 [11:11:31]line ФМ: 0000000000875000 [11:11:31]line ФД: 50288 [11:11:31]line ФПД: 85254588196113 [11:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111132&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50288&fm=85254588196113&tin=02508201610067®Number=0000000000097022&sum=150000 [11:11:32]OFD Sender: Processing packet 50288 [packets to send 7, broken 6] [11:11:32]ProducePacketName [11:11:32]name=ofd_packets/00050288 [11:11:32]OFD Sender: To server: pG, [11:11:32]CommunicateWithHost lk.salyk.kg:30040 [11:11:32]ConnectInit lk.salyk.kg [11:11:32]written 0, free lines is 4095 [11:11:32]Connected sock=10 [11:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 16 92 07 01 E8 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E4 D9 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C4 00 00 35 04 06 00 4D 89 E1 71 E5 11 7B A9 CF ED 44 E3 78 8C [11:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 6A 99 47 00 95 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C4 00 00 F4 03 04 00 7C 85 18 67 B6 04 01 00 00 63 38 72 0F 06 0A E6 F7 [11:11:32]CommunicateWithHost err = 0 [11:11:32]CheckOFDResponse [11:11:32]1017 (14) - 77093643461234 [11:11:32]1041 (16) - 0000000000875000 [11:11:32]1040 (4) - 50288 [11:11:32]1012 (4) - 23.10.2024 05:11 [11:11:32]1206 (1) - 0 [11:11:32]OFD Sender: Remove packet 50288 [11:11:32]ProducePacketName [11:11:32]name=ofd_packets/00050288 [11:11:32]NVStorageDeleteData [11:11:32]Write to MH i2c: 01 00 00 EC 0A F6 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 F3 0C FC [11:11:32]RasterBufferAndPrint [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]written 0, free lines is 3321 [11:11:32]process_action close_receipt done [11:11:32]requested_data is exist [11:11:32]produce_requested_data [11:11:32]requested_item fm.sn is exist - process it [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 11 00 00 [11:11:32]Write to MH i2c: E2 08 00 F3 0A 80 11 00 00 00 00 00 00 77 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 F3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BE [11:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:11:32]wFMCommunicate OK [11:11:32]requested_item fd.num is exist - process it [11:11:32]SAM_PROTO_GetFieldsCounters [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 13 00 00 [11:11:32]Write to MH i2c: E2 08 00 F4 0A 80 13 00 00 00 00 00 00 7A [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 62 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 62 00 F4 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 70 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 70 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_GetFieldsCounters done [11:11:32]requested_item shift.num is exist - process it [11:11:32]requested_item shift.opened is exist - process it [11:11:32]req_shift_opened [11:11:32]FM_GetShiftState [11:11:32]SAM_PROTO_GetShiftState [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 13 01 00 [11:11:32]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0E 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C8 [11:11:32]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_GetShiftState done [11:11:32]FM_GetShiftState done [11:11:32]req_shift_opened done [11:11:32]requested_item shift.open_date is exist - process it [11:11:32]req_shift_open_date [11:11:32]req_shift_open_date done [11:11:32]produce_requested_data done [11:11:32]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50288,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [11:11:32]process_action_free close_receipt [11:11:32]json_value_free [11:11:32]json_value_free done [11:11:32]process_json_proto returns [11:11:32]Send response to host [11:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50288,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [11:11:32]free response buf [11:11:32]execute_script done [11:11:32]execute_script returns [11:11:32]free content buf [11:11:32]Sock 7.Close socket [11:11:32]Sock 7.Thread stoped [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:26]accept exits with 9 [11:36:26]New connection [11:36:26]New thread 3067161956 created [11:36:26]Thread 3067305316 joined [11:36:26]Waiting for new connection... [11:36:26] Sock 9.Parse request [11:36:26]Sock 9.Check first char [11:36:26]Sock 9.First char is OK [11:36:26]request: POST /json_proto HTTP/1.0 [11:36:26]Method: POST [11:36:26]URL: /json_proto [11:36:26]Method is POST - this is cgi request [11:36:26]url: /json_proto [11:36:26]query_string will be loaded in cgi processing [11:36:26]execute_cgi json_proto POST (null) [11:36:26]execute_cgi path=json_proto method=POST [11:36:26]POST find Content-Length [11:36:26]Host: 172.17.49.196:8080 [11:36:26]Content-Length: 629 [11:36:26]Content-Type: application/json [11:36:26] [11:36:26]POST finish read [11:36:26]Found Content-Length = 629 [11:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164193", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\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" ] } } [11:36:26]execute_script... [11:36:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164193", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\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" ] } } [11:36:26]POST & json_proto [11:36:26]process_json_proto [11:36:26]json parsed OK: [11:36:26]protocol is kg_v1.0 [11:36:26]action value=close_receipt [11:36:26]process_action close_receipt [11:36:26]cmd_close_receipt [11:36:26]MH_GetDate [11:36:26]Write to MH i2c: F0 00 00 F6 0A EF [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 09 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 09 00 F6 0A 00 BD DF 18 67 BD 3B 11 67 83 [11:36:26]GetLastDocTimeStamp 1729681892 [11:36:26]current date 1729683389 [11:36:26]FM_GetShiftState [11:36:26]SAM_PROTO_GetShiftState [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 13 01 00 [11:36:26]Write to MH i2c: E2 08 00 F7 0A 80 13 01 00 00 00 00 00 7E [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0E 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0E 00 F7 0A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CA [11:36:26]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:36:26]wFMCommunicate OK [11:36:26]SAM_PROTO_GetShiftState done [11:36:26]FM_GetShiftState done [11:36:26]opened in 1729642370 [11:36:26]opened+sec_in_day 1729728770 [11:36:26]quantity*price = 4900 [11:36:26]sum+1 = 4901 [11:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 34 23.10.2024 11:36 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50289 ФПД: 117996779616432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113629&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50289&fm=117996779616432&tin=02508201610067®Number=0000000000097022&sum=4900 0 [11:36:27]StoreToDocumentArchive [11:36:27]shift 491 fd 50289 [11:36:27]save to /storage/0491/doc_00050289 [11:36:27]save last doc name /storage/0491/doc_00050289 to /storage/kkm_last_doc_name [11:36:27]save OK [11:36:27]Clear old archive folders... [11:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:36:27]tlvbuf is 000E3C20 [11:36:27]SAM_PROTO_ClearQueue [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 09 00 00 [11:36:27]Write to MH i2c: E2 08 00 04 0B 80 09 00 00 00 00 00 00 81 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [11:36:27]RAPDU: 90 00 [11:36:27]wFMCommunicate OK [11:36:27]SAM_PROTO_ClearQueue done [11:36:27]KKMCreateOFDPacket [11:36:27]OFDProtocolAddRootSTLVToBuf [11:36:27]FM_MakeSignedData [11:36:27]FM_MakeSignedData [11:36:27]SAM_PROTO_SignData [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 0D 01 02 [11:36:27]Write to MH i2c: E2 08 00 05 0B 80 0D 01 02 00 00 00 00 89 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=255 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 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 22 00 00 00 F4 03 04 00 BD DF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [11:36:28]Write to MH i2c: E2 02 01 06 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 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 22 00 00 00 F4 03 04 00 BD DF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 0D [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=31 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 71 C4 00 00 35 04 06 00 6B 51 44 22 38 B0 [11:36:28]Write to MH i2c: E2 22 00 07 0B 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 71 C4 00 00 35 04 06 00 6B 51 44 22 38 B0 00 00 EA [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 03 02 [11:36:28]Write to MH i2c: E2 08 00 08 0B 80 0D 03 02 00 00 00 00 8E [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 0B 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 0B 00 08 0B 00 F5 34 F5 16 81 E9 5E DC 90 00 67 [11:36:28]RAPDU: F5 34 F5 16 81 E9 5E DC 90 00 [11:36:28]wFMCommunicate OK [11:36:28]SAM_PROTO_SignData done [11:36:28]FM_MakeSignedData done [11:36:28]CreateOFDProtocolMessage [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 11 00 00 [11:36:28]Write to MH i2c: E2 08 00 09 0B 80 11 00 00 00 00 00 00 8E [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 17 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 17 00 09 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D5 [11:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:36:28]wFMCommunicate OK [11:36:28]CreateOFDProtocolMessage done [11:36:28]OFDSenderStorePacket 50289 [11:36:28]StoreOFDPacket docnum=50289 [11:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 C9 55 1C 01 5C D6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 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 22 00 00 00 F4 03 04 00 BD DF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C4 00 00 35 04 06 00 6B 51 44 22 38 B0 F5 34 F5 16 81 E9 5E DC [11:36:28]CheckFolder [11:36:28]dirname=/storage/ofd_packets [11:36:28]CheckFolder done [11:36:28]ProducePacketName [11:36:28]name=ofd_packets/00050289 [11:36:28]NVStorageSaveData ofd_packets/00050289 [11:36:28]File name is /storage/ofd_packets/00050289 [11:36:28]Write 322 bytes [11:36:28]NVStorageSaveData done [11:36:28]OFDSenderStorePacket done [11:36:28]KKMCreateOFDPacket done [11:36:28]NVStorageSaveData kkm_last_timestamp [11:36:28]File name is /storage/kkm_last_timestamp [11:36:28]Write 4 bytes [11:36:28]NVStorageSaveData done [11:36:28]ExternCall_PrintAddStr [11:36:28]wPrintStart [11:36:28]Write to MH i2c: 01 00 00 0A 0B 15 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 07 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 FF 0F 2A [11:36:28]RasterBufferAndPrint [11:36:28]line Счет N : (3)164193 [11:36:28]line ИНН: 02508201610067 [11:36:28]line Контрольно-Кассовый Чек [11:36:28]line ПРОДАЖА [11:36:28]line Товар: 80942726 [11:36:28]line Р/ж mentos мята ролл 16г [11:36:28]line 1.000 * 49.00 [11:36:28]line = 49.00 [11:36:28]line НДС 12% НСП 1% [11:36:28]line > о реализуемом товаре [11:36:28]line ИТОГО: 49.00 [11:36:28]line НСП 1% : 0.43 [11:36:28]line НДС 12% : 5.20 [11:36:28]line Наличными: 49.00 [11:36:28]line Безнал.: 0.00 [11:36:28]line Место: АЗС № 80 "Партнер Нефть" [11:36:28]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:36:28]line СНО: Общий режим [11:36:28]line Чек 34 23.10.2024 11:36 [11:36:28]line Смена: 491 ФФД: 1.0 [11:36:28]line ЗНМ: 0300000090 [11:36:28]line РНМ: 0000000000097022 [11:36:28]line Версия ККМ: 001 [11:36:28]line ФМ: 0000000000875000 [11:36:28]line ФД: 50289 [11:36:28]line ФПД: 117996779616432 [11:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113629&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50289&fm=117996779616432&tin=02508201610067®Number=0000000000097022&sum=4900 [11:36:28]OFD Sender: Processing packet 50289 [packets to send 7, broken 6] [11:36:28]ProducePacketName [11:36:28]name=ofd_packets/00050289 [11:36:28]OFD Sender: To server: pG, [11:36:28]CommunicateWithHost lk.salyk.kg:30040 [11:36:28]ConnectInit lk.salyk.kg [11:36:28]line 0 [11:36:28]written 0, free lines is 4095 [11:36:28]Connected sock=10 [11:36:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 C9 55 1C 01 5C D6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 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 22 00 00 00 F4 03 04 00 BD DF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C4 00 00 35 04 06 00 6B 51 44 22 38 B0 F5 34 F5 16 81 E9 5E DC [11:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 97 76 47 00 30 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C4 00 00 F4 03 04 00 54 8B 18 67 B6 04 01 00 00 A4 16 F3 32 C4 CF 0E F9 [11:36:29]CommunicateWithHost err = 0 [11:36:29]CheckOFDResponse [11:36:29]1017 (14) - 77093643461234 [11:36:29]1041 (16) - 0000000000875000 [11:36:29]1040 (4) - 50289 [11:36:29]1012 (4) - 23.10.2024 05:36 [11:36:29]1206 (1) - 0 [11:36:29]OFD Sender: Remove packet 50289 [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00050289 [11:36:29]NVStorageDeleteData [11:36:29]Write to MH i2c: 01 00 00 32 0B 3D [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 19 0D 6A [11:36:29]RasterBufferAndPrint [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]written 0, free lines is 3359 [11:36:29]process_action close_receipt done [11:36:29]requested_data is exist [11:36:29]produce_requested_data [11:36:29]requested_item fm.sn is exist - process it [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 39 0B 80 11 00 00 00 00 00 00 BE [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 39 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 05 [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:36:29]wFMCommunicate OK [11:36:29]requested_item fd.num is exist - process it [11:36:29]SAM_PROTO_GetFieldsCounters [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 00 00 [11:36:29]Write to MH i2c: E2 08 00 3A 0B 80 13 00 00 00 00 00 00 C1 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 3A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 71 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:36:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 71 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetFieldsCounters done [11:36:29]requested_item shift.num is exist - process it [11:36:29]requested_item shift.opened is exist - process it [11:36:29]req_shift_opened [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 3B 0B 80 13 01 00 00 00 00 00 C3 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 3B 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 0F [11:36:29]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]req_shift_opened done [11:36:29]requested_item shift.open_date is exist - process it [11:36:29]req_shift_open_date [11:36:29]req_shift_open_date done [11:36:29]produce_requested_data done [11:36:29]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50289,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [11:36:29]process_action_free close_receipt [11:36:29]json_value_free [11:36:29]json_value_free done [11:36:29]process_json_proto returns [11:36:29]Send response to host [11:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50289,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [11:36:29]free response buf [11:36:29]execute_script done [11:36:29]execute_script returns [11:36:29]free content buf [11:36:29]Sock 9.Close socket [11:36:29]Sock 9.Thread stoped [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:03]accept exits with 7 [11:48:03]New connection [11:48:03]New thread 3067305316 created [11:48:03]Thread 3067161956 joined [11:48:03]Waiting for new connection... [11:48:03] Sock 7.Parse request [11:48:03]Sock 7.Check first char [11:48:03]Sock 7.First char is OK [11:48:03]request: POST /json_proto HTTP/1.0 [11:48:03]Method: POST [11:48:03]URL: /json_proto [11:48:03]Method is POST - this is cgi request [11:48:03]url: /json_proto [11:48:03]query_string will be loaded in cgi processing [11:48:03]execute_cgi json_proto POST (null) [11:48:03]execute_cgi path=json_proto method=POST [11:48:03]POST find Content-Length [11:48:03]Host: 172.17.49.196:8080 [11:48:03]Content-Length: 656 [11:48:03]Content-Type: application/json [11:48:03] [11:48:03]POST finish read [11:48:03]Found Content-Length = 656 [11:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164194", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:03]execute_script... [11:48:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164194", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:03]POST & json_proto [11:48:03]process_json_proto [11:48:03]json parsed OK: [11:48:03]protocol is kg_v1.0 [11:48:03]action value=close_receipt [11:48:03]process_action close_receipt [11:48:03]cmd_close_receipt [11:48:03]MH_GetDate [11:48:03]Write to MH i2c: F0 00 00 3C 0B 36 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 09 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 09 00 3C 0B 00 76 E2 18 67 BD 3B 11 67 86 [11:48:03]GetLastDocTimeStamp 1729683389 [11:48:03]current date 1729684086 [11:48:03]FM_GetShiftState [11:48:03]SAM_PROTO_GetShiftState [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 13 01 00 [11:48:03]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [11:48:03]Write i2c OK [11:48:03]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 3D 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 11 [11:48:03]RAPDU: 09 00 01 82 3F 18 67 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 1729642370 [11:48:03]opened+sec_in_day 1729728770 [11:48:03]quantity*price = 36000 [11:48:03]sum+1 = 36001 [11:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.19 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 35 23.10.2024 11:48 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50290 ФПД: 16302425047024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114806&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50290&fm=16302425047024&tin=02508201610067®Number=0000000000097022&sum=36000 0 [11:48:04]StoreToDocumentArchive [11:48:04]shift 491 fd 50290 [11:48:04]save to /storage/0491/doc_00050290 [11:48:04]save last doc name /storage/0491/doc_00050290 to /storage/kkm_last_doc_name [11:48:04]save OK [11:48:04]Clear old archive folders... [11:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:48:04]tlvbuf is 002603A0 [11:48:04]SAM_PROTO_ClearQueue [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 09 00 00 [11:48:04]Write to MH i2c: E2 08 00 4A 0B 80 09 00 00 00 00 00 00 C7 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 09 00 00... 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 4A 0B 00 90 00 C9 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_ClearQueue done [11:48:04]KKMCreateOFDPacket [11:48:04]OFDProtocolAddRootSTLVToBuf [11:48:04]FM_MakeSignedData [11:48:04]FM_MakeSignedData [11:48:04]SAM_PROTO_SignData [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 01 02 [11:48:04]Write to MH i2c: E2 08 00 4B 0B 80 0D 01 02 00 00 00 00 CF [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [11:48:05]RAPDU: 90 00 [11:48:05]wFMCommunicate OK [11:48:05]wFMCommunicate request_size=255 [11:48:05]MH_SAM_APDU [11:48:05]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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 76 E2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [11:48:05]Write to MH i2c: E2 02 01 4C 0B 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 76 E2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 8E [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]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [11:48:05]RAPDU: 90 00 [11:48:05]wFMCommunicate OK [11:48:05]wFMCommunicate request_size=43 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C4 00 00 35 04 06 00 0E D3 B4 40 FF F0 [11:48:05]Write to MH i2c: E2 2E 00 4D 0B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C4 00 00 35 04 06 00 0E D3 B4 40 FF F0 00 00 A8 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [11:48:05]RAPDU: 90 00 [11:48:05]wFMCommunicate OK [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 0D 03 02 [11:48:05]Write to MH i2c: E2 08 00 4E 0B 80 0D 03 02 00 00 00 00 D4 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0B 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0B 00 4E 0B 00 04 29 47 59 2C F3 0E A6 90 00 75 [11:48:05]RAPDU: 04 29 47 59 2C F3 0E A6 90 00 [11:48:05]wFMCommunicate OK [11:48:05]SAM_PROTO_SignData done [11:48:05]FM_MakeSignedData done [11:48:05]CreateOFDProtocolMessage [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 11 00 00 [11:48:05]Write to MH i2c: E2 08 00 4F 0B 80 11 00 00 00 00 00 00 D4 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 4F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1B [11:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:48:05]wFMCommunicate OK [11:48:05]CreateOFDProtocolMessage done [11:48:05]OFDSenderStorePacket 50290 [11:48:05]StoreOFDPacket docnum=50290 [11:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 EE B7 28 01 BB E0 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 76 E2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C4 00 00 35 04 06 00 0E D3 B4 40 FF F0 04 29 47 59 2C F3 0E A6 [11:48:05]CheckFolder [11:48:05]dirname=/storage/ofd_packets [11:48:05]CheckFolder done [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00050290 [11:48:05]NVStorageSaveData ofd_packets/00050290 [11:48:05]File name is /storage/ofd_packets/00050290 [11:48:05]Write 334 bytes [11:48:05]NVStorageSaveData done [11:48:05]OFDSenderStorePacket done [11:48:05]KKMCreateOFDPacket done [11:48:05]NVStorageSaveData kkm_last_timestamp [11:48:05]File name is /storage/kkm_last_timestamp [11:48:05]Write 4 bytes [11:48:05]NVStorageSaveData done [11:48:05]ExternCall_PrintAddStr [11:48:05]wPrintStart [11:48:05]Write to MH i2c: 01 00 00 50 0B 5B [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 50 0B 00 00 00 00 00 FF 0F 70 [11:48:05]RasterBufferAndPrint [11:48:05]line Счет N : (3)164194 [11:48:05]line ИНН: 02508201610067 [11:48:05]line Контрольно-Кассовый Чек [11:48:05]line ПРОДАЖА [11:48:05]line Товар: 2000034250011 [11:48:05]line Горячий шоколад (GABB trade) [11:48:05]line 3.000 * 120.00 [11:48:05]line = 360.00 [11:48:05]line НДС 12% НСП 1% [11:48:05]line > о реализуемом товаре [11:48:05]line ИТОГО: 360.00 [11:48:05]line НСП 1% : 3.19 [11:48:05]line НДС 12% : 38.23 [11:48:05]line Наличными: 360.00 [11:48:05]line Безнал.: 0.00 [11:48:05]line Место: АЗС № 80 "Партнер Нефть" [11:48:05]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:48:05]line СНО: Общий режим [11:48:05]line Чек 35 23.10.2024 11:48 [11:48:05]line Смена: 491 ФФД: 1.0 [11:48:05]line ЗНМ: 0300000090 [11:48:05]line РНМ: 0000000000097022 [11:48:05]line Версия ККМ: 001 [11:48:05]line ФМ: 0000000000875000 [11:48:05]line ФД: 50290 [11:48:05]line ФПД: 16302425047024 [11:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114806&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50290&fm=16302425047024&tin=02508201610067®Number=0000000000097022&sum=36000 [11:48:05]line 0 [11:48:05]OFD Sender: Processing packet 50290 [packets to send 7, broken 6] [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00050290 [11:48:05]OFD Sender: To server: pG, [11:48:05]CommunicateWithHost lk.salyk.kg:30040 [11:48:05]ConnectInit lk.salyk.kg [11:48:05]written 0, free lines is 4095 [11:48:05]Connected sock=10 [11:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 EE B7 28 01 BB E0 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 76 E2 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C4 00 00 35 04 06 00 0E D3 B4 40 FF F0 04 29 47 59 2C F3 0E A6 [11:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 90 65 47 00 AE DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C4 00 00 F4 03 04 00 0D 8E 18 67 B6 04 01 00 00 AC 51 94 B2 4A 51 6A 7D [11:48:06]CommunicateWithHost err = 0 [11:48:06]CheckOFDResponse [11:48:06]1017 (14) - 77093643461234 [11:48:06]1041 (16) - 0000000000875000 [11:48:06]1040 (4) - 50290 [11:48:06]1012 (4) - 23.10.2024 05:47 [11:48:06]1206 (1) - 0 [11:48:06]OFD Sender: Remove packet 50290 [11:48:06]ProducePacketName [11:48:06]name=ofd_packets/00050290 [11:48:06]NVStorageDeleteData [11:48:06]Write to MH i2c: 01 00 00 79 0B 84 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: 01 [11:48:06]MH_I2C_Read... [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 79 0B 00 00 00 00 00 01 0D 99 [11:48:06]RasterBufferAndPrint [11:48:06]line [11:48:06]line [11:48:06]line [11:48:06]line [11:48:06]line [11:48:06]written 0, free lines is 3335 [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 80 0B 80 11 00 00 00 00 00 00 05 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 [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 17 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4C [11:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 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 81 0B 80 13 00 00 00 00 00 00 08 [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 81 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 72 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 72 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 82 0B 80 13 01 00 00 00 00 00 0A [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 82 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 56 [11:48:06]RAPDU: 09 00 01 82 3F 18 67 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":"0000000000875000","fd.num":50290,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [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":"0000000000875000","fd.num":50290,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [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:06]OFD Sender: No OFD packet to send [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 83 0B 8E [11:48:07]*** FLAG_PRN_KEY set [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 83 0B 00 08 00 00 00 FF 0F AB [11:48:07]state=0 [11:48:07]Key pressed [11:48:07]Feed [11:48:07]Write to MH i2c: D8 00 00 84 0B 66 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 01 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 01 00 84 0B 00 67 [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 85 0B 90 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 85 0B 00 48 00 00 00 3D 00 1C [11:48:07]state=2 [11:48:07]Key pressed [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 86 0B 91 [11:48:07]*** FLAG_PRN_KEY reset [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 F5 0F 9C [11:48:07]state=2 [11:48:07]Stop feed [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 87 0B 92 [11:48:07]*** FLAG_PRN_KEY set [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 87 0B 00 08 00 00 00 FF 0F AF [11:48:07]state=0 [11:48:07]Key pressed [11:48:07]Feed [11:48:07]Write to MH i2c: D8 00 00 88 0B 6A [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 01 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: D8 01 00 88 0B 00 6B [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 89 0B 94 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 89 0B 00 48 00 00 00 3C 00 1F [11:48:07]state=2 [11:48:07]Key pressed [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 8A 0B 95 [11:48:07]*** FLAG_PRN_KEY reset [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 8A 0B 00 00 00 00 00 F6 0F A1 [11:48:07]state=2 [11:48:07]Stop feed [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:54]accept exits with 9 [11:56:54]New connection [11:56:54]New thread 3067161956 created [11:56:54] Sock 9.Parse request [11:56:54]Thread 3067305316 joined [11:56:54]Sock 9.Check first char [11:56:54]Waiting for new connection... [11:56:54]Sock 9.First char is OK [11:56:54]request: POST /json_proto HTTP/1.0 [11:56:54]Method: POST [11:56:54]URL: /json_proto [11:56:54]Method is POST - this is cgi request [11:56:54]url: /json_proto [11:56:54]query_string will be loaded in cgi processing [11:56:54]execute_cgi json_proto POST (null) [11:56:54]execute_cgi path=json_proto method=POST [11:56:54]POST find Content-Length [11:56:54]Host: 172.17.49.196:8080 [11:56:54]Content-Length: 624 [11:56:54]Content-Type: application/json [11:56:54] [11:56:54]POST finish read [11:56:54]Found Content-Length = 624 [11:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164195", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:54]execute_script... [11:56: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)164195", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:54]POST & json_proto [11:56:54]process_json_proto [11:56:54]json parsed OK: [11:56:54]protocol is kg_v1.0 [11:56:54]action value=close_receipt [11:56:54]process_action close_receipt [11:56:54]cmd_close_receipt [11:56:54]MH_GetDate [11:56:54]Write to MH i2c: F0 00 00 8B 0B 85 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: F0 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: F0 09 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: F0 09 00 8B 0B 00 89 E4 18 67 BD 3B 11 67 EA [11:56:54]GetLastDocTimeStamp 1729684086 [11:56:54]current date 1729684617 [11:56:54]FM_GetShiftState [11:56:54]SAM_PROTO_GetShiftState [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 13 01 00 [11:56:54]Write to MH i2c: E2 08 00 8C 0B 80 13 01 00 00 00 00 00 14 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0E 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0E 00 8C 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 60 [11:56:54]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_GetShiftState done [11:56:54]FM_GetShiftState done [11:56:54]opened in 1729642370 [11:56:54]opened+sec_in_day 1729728770 [11:56:54]quantity*price = 16000 [11:56:54]sum+1 = 16001 [11:56:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 36 23.10.2024 11:56 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50291 ФПД: 210192694846479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115657&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50291&fm=210192694846479&tin=02508201610067®Number=0000000000097022&sum=16000 0 [11:56:56]StoreToDocumentArchive [11:56:56]shift 491 fd 50291 [11:56:56]save to /storage/0491/doc_00050291 [11:56:56]save last doc name /storage/0491/doc_00050291 to /storage/kkm_last_doc_name [11:56:56]save OK [11:56:56]Clear old archive folders... [11:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:56:56]tlvbuf is 00215D70 [11:56:56]SAM_PROTO_ClearQueue [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 09 00 00 [11:56:56]Write to MH i2c: E2 08 00 99 0B 80 09 00 00 00 00 00 00 16 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [11:56:56]RAPDU: 90 00 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_ClearQueue done [11:56:56]KKMCreateOFDPacket [11:56:56]OFDProtocolAddRootSTLVToBuf [11:56:56]FM_MakeSignedData [11:56:56]FM_MakeSignedData [11:56:56]SAM_PROTO_SignData [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 0D 01 02 [11:56:56]Write to MH i2c: E2 08 00 9A 0B 80 0D 01 02 00 00 00 00 1E [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [11:56:56]RAPDU: 90 00 [11:56:56]wFMCommunicate OK [11:56:56]wFMCommunicate request_size=255 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 89 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [11:56:56]Write to MH i2c: E2 02 01 9B 0B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 89 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 EF [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [11:56:56]RAPDU: 90 00 [11:56:56]wFMCommunicate OK [11:56:56]wFMCommunicate request_size=35 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C4 00 00 35 04 06 00 BF 2B 4C E9 24 0F [11:56:56]Write to MH i2c: E2 26 00 9C 0B 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C4 00 00 35 04 06 00 BF 2B 4C E9 24 0F 00 00 91 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [11:56:56]RAPDU: 90 00 [11:56:56]wFMCommunicate OK [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 0D 03 02 [11:56:56]Write to MH i2c: E2 08 00 9D 0B 80 0D 03 02 00 00 00 00 23 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0B 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0B 00 9D 0B 00 0C 1D 0B DE 99 13 84 97 90 00 FD [11:56:56]RAPDU: 0C 1D 0B DE 99 13 84 97 90 00 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_SignData done [11:56:56]FM_MakeSignedData done [11:56:56]CreateOFDProtocolMessage [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 11 00 00 [11:56:56]Write to MH i2c: E2 08 00 9E 0B 80 11 00 00 00 00 00 00 23 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 9E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6A [11:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:56:56]wFMCommunicate OK [11:56:56]CreateOFDProtocolMessage done [11:56:56]OFDSenderStorePacket 50291 [11:56:56]StoreOFDPacket docnum=50291 [11:56:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 56 4D 20 01 62 57 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 89 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C4 00 00 35 04 06 00 BF 2B 4C E9 24 0F 0C 1D 0B DE 99 13 84 97 [11:56:56]CheckFolder [11:56:56]dirname=/storage/ofd_packets [11:56:56]CheckFolder done [11:56:56]ProducePacketName [11:56:56]name=ofd_packets/00050291 [11:56:56]NVStorageSaveData ofd_packets/00050291 [11:56:56]File name is /storage/ofd_packets/00050291 [11:56:56]Write 326 bytes [11:56:56]NVStorageSaveData done [11:56:56]OFDSenderStorePacket done [11:56:56]KKMCreateOFDPacket done [11:56:56]NVStorageSaveData kkm_last_timestamp [11:56:56]File name is /storage/kkm_last_timestamp [11:56:56]Write 4 bytes [11:56:56]NVStorageSaveData done [11:56:56]ExternCall_PrintAddStr [11:56:56]wPrintStart [11:56:56]Write to MH i2c: 01 00 00 9F 0B AA [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 07 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FF 0F BF [11:56:56]RasterBufferAndPrint [11:56:56]line Счет N : (3)164195 [11:56:56]line ИНН: 02508201610067 [11:56:56]line Контрольно-Кассовый Чек [11:56:56]line ПРОДАЖА [11:56:56]line Товар: 48742245 [11:56:56]line Сигареты Parliament Silver Blue [11:56:56]line 1.000 * 160.00 [11:56:56]line = 160.00 [11:56:56]line НДС 12% НСП 1% [11:56:56]line > о реализуемом товаре [11:56:56]line ИТОГО: 160.00 [11:56:56]line НСП 1% : 1.42 [11:56:56]line НДС 12% : 16.99 [11:56:56]line Наличными: 160.00 [11:56:56]line Безнал.: 0.00 [11:56:56]line Место: АЗС № 80 "Партнер Нефть" [11:56:56]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:56:56]line СНО: Общий режим [11:56:56]line Чек 36 23.10.2024 11:56 [11:56:56]line Смена: 491 ФФД: 1.0 [11:56:56]line ЗНМ: 0300000090 [11:56:56]line РНМ: 0000000000097022 [11:56:56]line Версия ККМ: 001 [11:56:56]line ФМ: 0000000000875000 [11:56:56]line ФД: 50291 [11:56:56]line ФПД: 210192694846479 [11:56:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115657&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50291&fm=210192694846479&tin=02508201610067®Number=0000000000097022&sum=16000 [11:56:56]line 0 [11:56:56]OFD Sender: Processing packet 50291 [packets to send 7, broken 6] [11:56:56]ProducePacketName [11:56:56]name=ofd_packets/00050291 [11:56:56]OFD Sender: To server: pG, [11:56:56]CommunicateWithHost lk.salyk.kg:30040 [11:56:56]ConnectInit lk.salyk.kg [11:56:56]written 0, free lines is 4095 [11:56:56]Connected sock=10 [11:56:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 56 4D 20 01 62 57 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 89 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C4 00 00 35 04 06 00 BF 2B 4C E9 24 0F 0C 1D 0B DE 99 13 84 97 [11:56:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 02 04 47 00 1F 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C4 00 00 F4 03 04 00 21 90 18 67 B6 04 01 00 00 44 4B 07 C2 BC 8C D6 73 [11:56:57]CommunicateWithHost err = 0 [11:56:57]CheckOFDResponse [11:56:57]1017 (14) - 77093643461234 [11:56:57]1041 (16) - 0000000000875000 [11:56:57]1040 (4) - 50291 [11:56:57]1012 (4) - 23.10.2024 05:56 [11:56:57]1206 (1) - 0 [11:56:57]OFD Sender: Remove packet 50291 [11:56:57]ProducePacketName [11:56:57]name=ofd_packets/00050291 [11:56:57]NVStorageDeleteData [11:56:57]Write to MH i2c: 01 00 00 C8 0B D3 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: 01 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: 01 07 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 F8 0C DE [11:56:57]RasterBufferAndPrint [11:56:57]line [11:56:57]line [11:56:57]line [11:56:57]line [11:56:57]line [11:56:57]written 0, free lines is 3326 [11:56:57]process_action close_receipt done [11:56:57]requested_data is exist [11:56:57]produce_requested_data [11:56:57]requested_item fm.sn is exist - process it [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 11 00 00 [11:56:57]Write to MH i2c: E2 08 00 CF 0B 80 11 00 00 00 00 00 00 54 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 17 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 17 00 CF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9B [11:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:56:57]wFMCommunicate OK [11:56:57]requested_item fd.num is exist - process it [11:56:57]SAM_PROTO_GetFieldsCounters [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 13 00 00 [11:56:57]Write to MH i2c: E2 08 00 D0 0B 80 13 00 00 00 00 00 00 57 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 62 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 62 00 D0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 73 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:56:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 73 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:57]wFMCommunicate OK [11:56:57]SAM_PROTO_GetFieldsCounters done [11:56:57]requested_item shift.num is exist - process it [11:56:57]requested_item shift.opened is exist - process it [11:56:57]req_shift_opened [11:56:57]FM_GetShiftState [11:56:57]SAM_PROTO_GetShiftState [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 13 01 00 [11:56:57]Write to MH i2c: E2 08 00 D1 0B 80 13 01 00 00 00 00 00 59 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 D1 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A5 [11:56:57]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:56:57]wFMCommunicate OK [11:56:57]SAM_PROTO_GetShiftState done [11:56:57]FM_GetShiftState done [11:56:57]req_shift_opened done [11:56:57]requested_item shift.open_date is exist - process it [11:56:57]req_shift_open_date [11:56:57]req_shift_open_date done [11:56:57]produce_requested_data done [11:56:57]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50291,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [11:56:57]process_action_free close_receipt [11:56:57]json_value_free [11:56:57]json_value_free done [11:56:57]process_json_proto returns [11:56:57]Send response to host [11:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50291,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [11:56:57]free response buf [11:56:57]execute_script done [11:56:57]execute_script returns [11:56:57]free content buf [11:56:57]Sock 9.Close socket [11:56:57]Sock 9.Thread stoped [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:23]accept exits with 7 [11:57:23]New connection [11:57:23]New thread 3067305316 created [11:57:23]Thread 3067161956 joined [11:57:23]Waiting for new connection... [11:57:23] Sock 7.Parse request [11:57:23]Sock 7.Check first char [11:57:23]Sock 7.First char is OK [11:57:23]request: POST /json_proto HTTP/1.0 [11:57:23]Method: POST [11:57:23]URL: /json_proto [11:57:23]Method is POST - this is cgi request [11:57:23]url: /json_proto [11:57:23]query_string will be loaded in cgi processing [11:57:23]execute_cgi json_proto POST (null) [11:57:23]execute_cgi path=json_proto method=POST [11:57:23]POST find Content-Length [11:57:23]Host: 172.17.49.196:8080 [11:57:23]Content-Length: 666 [11:57:23]Content-Type: application/json [11:57:23] [11:57:23]POST finish read [11:57:23]Found Content-Length = 666 [11:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164196", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:23]execute_script... [11:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164196", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:23]POST & json_proto [11:57:23]process_json_proto [11:57:23]json parsed OK: [11:57:23]protocol is kg_v1.0 [11:57:23]action value=close_receipt [11:57:23]process_action close_receipt [11:57:23]cmd_close_receipt [11:57:23]MH_GetDate [11:57:23]Write to MH i2c: F0 00 00 D2 0B CC [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: F0 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: F0 09 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: F0 09 00 D2 0B 00 A6 E4 18 67 BD 3B 11 67 4E [11:57:23]GetLastDocTimeStamp 1729684617 [11:57:23]current date 1729684646 [11:57:23]FM_GetShiftState [11:57:23]SAM_PROTO_GetShiftState [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 13 01 00 [11:57:23]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A7 [11:57:23]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:57:23]wFMCommunicate OK [11:57:23]SAM_PROTO_GetShiftState done [11:57:23]FM_GetShiftState done [11:57:23]opened in 1729642370 [11:57:23]opened+sec_in_day 1729728770 [11:57:23]quantity*price = 9900 [11:57:23]sum+1 = 9901 [11:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 37 23.10.2024 11:57 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50292 ФПД: 194388214620943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115726&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50292&fm=194388214620943&tin=02508201610067®Number=0000000000097022&sum=9900 0 [11:57:24]StoreToDocumentArchive [11:57:24]shift 491 fd 50292 [11:57:24]save to /storage/0491/doc_00050292 [11:57:24]save last doc name /storage/0491/doc_00050292 to /storage/kkm_last_doc_name [11:57:24]save OK [11:57:24]Clear old archive folders... [11:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:57:25]tlvbuf is 00215C40 [11:57:25]SAM_PROTO_ClearQueue [11:57:25]wFMCommunicate request_size=4 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 09 00 00 [11:57:25]Write to MH i2c: E2 08 00 E0 0B 80 09 00 00 00 00 00 00 5D [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [11:57:25]RAPDU: 90 00 [11:57:25]wFMCommunicate OK [11:57:25]SAM_PROTO_ClearQueue done [11:57:25]KKMCreateOFDPacket [11:57:25]OFDProtocolAddRootSTLVToBuf [11:57:25]FM_MakeSignedData [11:57:25]FM_MakeSignedData [11:57:25]SAM_PROTO_SignData [11:57:25]wFMCommunicate request_size=4 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 0D 01 02 [11:57:25]Write to MH i2c: E2 08 00 E1 0B 80 0D 01 02 00 00 00 00 65 [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [11:57:25]RAPDU: 90 00 [11:57:25]wFMCommunicate OK [11:57:25]wFMCommunicate request_size=255 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 A6 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:57:25]Write to MH i2c: E2 02 01 E2 0B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 A6 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 DB [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [11:57:25]RAPDU: 90 00 [11:57:25]wFMCommunicate OK [11:57:25]wFMCommunicate request_size=52 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C4 00 00 35 04 06 00 B0 CB 88 7B 23 0F [11:57:25]Write to MH i2c: E2 37 00 E3 0B 80 0D 02 02 2F 00 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C4 00 00 35 04 06 00 B0 CB 88 7B 23 0F 00 00 02 [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [11:57:25]RAPDU: 90 00 [11:57:25]wFMCommunicate OK [11:57:25]wFMCommunicate request_size=4 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 0D 03 02 [11:57:25]Write to MH i2c: E2 08 00 E4 0B 80 0D 03 02 00 00 00 00 6A [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 0B 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 0B 00 E4 0B 00 FC 05 4C 7C A4 C3 F9 65 90 00 F9 [11:57:25]RAPDU: FC 05 4C 7C A4 C3 F9 65 90 00 [11:57:25]wFMCommunicate OK [11:57:25]SAM_PROTO_SignData done [11:57:25]FM_MakeSignedData done [11:57:25]CreateOFDProtocolMessage [11:57:25]wFMCommunicate request_size=4 [11:57:25]MH_SAM_APDU [11:57:25]CAPDU: 80 11 00 00 [11:57:25]Write to MH i2c: E2 08 00 E5 0B 80 11 00 00 00 00 00 00 6A [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:25]Read from MH i2c: E2 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 17 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: E2 17 00 E5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B1 [11:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:57:25]wFMCommunicate OK [11:57:25]CreateOFDProtocolMessage done [11:57:25]OFDSenderStorePacket 50292 [11:57:25]StoreOFDPacket docnum=50292 [11:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 30 21 31 01 2B 7E 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 A6 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C4 00 00 35 04 06 00 B0 CB 88 7B 23 0F FC 05 4C 7C A4 C3 F9 65 [11:57:25]CheckFolder [11:57:25]dirname=/storage/ofd_packets [11:57:25]CheckFolder done [11:57:25]ProducePacketName [11:57:25]name=ofd_packets/00050292 [11:57:25]NVStorageSaveData ofd_packets/00050292 [11:57:25]File name is /storage/ofd_packets/00050292 [11:57:25]Write 343 bytes [11:57:25]NVStorageSaveData done [11:57:25]OFDSenderStorePacket done [11:57:25]KKMCreateOFDPacket done [11:57:25]NVStorageSaveData kkm_last_timestamp [11:57:25]File name is /storage/kkm_last_timestamp [11:57:25]Write 4 bytes [11:57:25]NVStorageSaveData done [11:57:25]ExternCall_PrintAddStr [11:57:25]wPrintStart [11:57:25]Write to MH i2c: 01 00 00 E6 0B F1 [11:57:25]OFD Sender: Processing packet 50292 [packets to send 7, broken 6] [11:57:25]ProducePacketName [11:57:25]name=ofd_packets/00050292 [11:57:25]OFD Sender: To server: pG, [11:57:25]CommunicateWithHost lk.salyk.kg:30040 [11:57:25]ConnectInit lk.salyk.kg [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 E6 0B 00 00 00 00 00 FF 0F 06 [11:57:25]RasterBufferAndPrint [11:57:25]line Счет N : (3)164196 [11:57:25]line ИНН: 02508201610067 [11:57:25]line Контрольно-Кассовый Чек [11:57:25]line ПРОДАЖА [11:57:25]line Товар: 4870022003305 [11:57:25]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:57:25]line 1.000 * 99.00 [11:57:25]line = 99.00 [11:57:25]line НДС 12% НСП 1% [11:57:25]line > о реализуемом товаре [11:57:25]line ИТОГО: 99.00 [11:57:25]line НСП 1% : 0.88 [11:57:25]line НДС 12% : 10.51 [11:57:25]line Наличными: 99.00 [11:57:25]line Безнал.: 0.00 [11:57:25]line Место: АЗС № 80 "Партнер Нефть" [11:57:25]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:57:25]line СНО: Общий режим [11:57:25]line Чек 37 23.10.2024 11:57 [11:57:25]line Смена: 491 ФФД: 1.0 [11:57:25]line ЗНМ: 0300000090 [11:57:25]line РНМ: 0000000000097022 [11:57:25]line Версия ККМ: 001 [11:57:25]line ФМ: 0000000000875000 [11:57:25]line ФД: 50292 [11:57:25]line ФПД: 194388214620943 [11:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115726&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50292&fm=194388214620943&tin=02508201610067®Number=0000000000097022&sum=9900 [11:57:25]line 0 [11:57:25]Connected sock=10 [11:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 30 21 31 01 2B 7E 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 A6 E4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C4 00 00 35 04 06 00 B0 CB 88 7B 23 0F FC 05 4C 7C A4 C3 F9 65 [11:57:25]written 0, free lines is 4095 [11:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 70 8F 47 00 12 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C4 00 00 F4 03 04 00 3D 90 18 67 B6 04 01 00 00 12 29 38 E9 93 B0 41 25 [11:57:26]CommunicateWithHost err = 0 [11:57:26]CheckOFDResponse [11:57:26]1017 (14) - 77093643461234 [11:57:26]1041 (16) - 0000000000875000 [11:57:26]1040 (4) - 50292 [11:57:26]1012 (4) - 23.10.2024 05:57 [11:57:26]1206 (1) - 0 [11:57:26]OFD Sender: Remove packet 50292 [11:57:26]ProducePacketName [11:57:26]name=ofd_packets/00050292 [11:57:26]NVStorageDeleteData [11:57:26]Write to MH i2c: 01 00 00 0F 0C 1B [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: 01 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: 01 07 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 13 0D 42 [11:57:26]RasterBufferAndPrint [11:57:26]line [11:57:26]line [11:57:26]line [11:57:26]line [11:57:26]line [11:57:26]written 0, free lines is 3353 [11:57:26]process_action close_receipt done [11:57:26]requested_data is exist [11:57:26]produce_requested_data [11:57:26]requested_item fm.sn is exist - process it [11:57:26]wFMCommunicate request_size=4 [11:57:26]MH_SAM_APDU [11:57:26]CAPDU: 80 11 00 00 [11:57:26]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:26]Read from MH i2c: E2 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 17 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E3 [11:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:57:26]wFMCommunicate OK [11:57:26]requested_item fd.num is exist - process it [11:57:26]SAM_PROTO_GetFieldsCounters [11:57:26]wFMCommunicate request_size=4 [11:57:26]MH_SAM_APDU [11:57:26]CAPDU: 80 13 00 00 [11:57:26]Write to MH i2c: E2 08 00 17 0C 80 13 00 00 00 00 00 00 9F [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:26]Read from MH i2c: E2 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 62 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 62 00 17 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 74 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 74 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:26]wFMCommunicate OK [11:57:26]SAM_PROTO_GetFieldsCounters done [11:57:26]requested_item shift.num is exist - process it [11:57:26]requested_item shift.opened is exist - process it [11:57:26]req_shift_opened [11:57:26]FM_GetShiftState [11:57:26]SAM_PROTO_GetShiftState [11:57:26]wFMCommunicate request_size=4 [11:57:26]MH_SAM_APDU [11:57:26]CAPDU: 80 13 01 00 [11:57:26]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]OFD Sender: No OFD packet to send [11:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:26]Read from MH i2c: E2 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 0E 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 0E 00 18 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 ED [11:57:26]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [11:57:26]wFMCommunicate OK [11:57:26]SAM_PROTO_GetShiftState done [11:57:26]FM_GetShiftState done [11:57:26]req_shift_opened done [11:57:26]requested_item shift.open_date is exist - process it [11:57:26]req_shift_open_date [11:57:26]req_shift_open_date done [11:57:26]produce_requested_data done [11:57:26]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50292,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [11:57:26]process_action_free close_receipt [11:57:26]json_value_free [11:57:26]json_value_free done [11:57:26]process_json_proto returns [11:57:26]Send response to host [11:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50292,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [11:57:26]free response buf [11:57:26]execute_script done [11:57:26]execute_script returns [11:57:26]free content buf [11:57:26]Sock 7.Close socket [11:57:26]Sock 7.Thread stoped [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:27]accept exits with 9 [12:09:27]New connection [12:09:27]New thread 3067161956 created [12:09:27]Thread 3067305316 joined [12:09:27]Waiting for new connection... [12:09:27] Sock 9.Parse request [12:09:27]Sock 9.Check first char [12:09:27]Sock 9.First char is OK [12:09:27]request: POST /json_proto HTTP/1.0 [12:09:27]Method: POST [12:09:27]URL: /json_proto [12:09:27]Method is POST - this is cgi request [12:09:27]url: /json_proto [12:09:27]query_string will be loaded in cgi processing [12:09:27]execute_cgi json_proto POST (null) [12:09:27]execute_cgi path=json_proto method=POST [12:09:27]POST find Content-Length [12:09:27]Host: 172.17.49.196:8080 [12:09:27]Content-Length: 771 [12:09:27]Content-Type: application/json [12:09:27] [12:09:27]POST finish read [12:09:27]Found Content-Length = 771 [12:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164197", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:27]execute_script... [12:09: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)164197", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:27]POST & json_proto [12:09:27]process_json_proto [12:09:27]json parsed OK: [12:09:27]protocol is kg_v1.0 [12:09:27]action value=close_receipt [12:09:27]process_action close_receipt [12:09:27]cmd_close_receipt [12:09:27]MH_GetDate [12:09:27]Write to MH i2c: F0 00 00 19 0C 14 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: F0 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: F0 09 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: F0 09 00 19 0C 00 7A E7 18 67 BD 3B 11 67 6D [12:09:27]GetLastDocTimeStamp 1729684646 [12:09:27]current date 1729685370 [12:09:27]FM_GetShiftState [12:09:27]SAM_PROTO_GetShiftState [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 01 00 [12:09:27]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 EF [12:09:27]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetShiftState done [12:09:27]FM_GetShiftState done [12:09:27]opened in 1729642370 [12:09:27]opened+sec_in_day 1729728770 [12:09:27]quantity*price = 11500 [12:09:27]sum+1 = 11501 [12:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 38 23.10.2024 12:09 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50293 ФПД: 116074457718515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120930&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50293&fm=116074457718515&tin=02508201610067®Number=0000000000097022&sum=11500 0 [12:09:28]StoreToDocumentArchive [12:09:28]shift 491 fd 50293 [12:09:28]save to /storage/0491/doc_00050293 [12:09:28]save last doc name /storage/0491/doc_00050293 to /storage/kkm_last_doc_name [12:09:28]save OK [12:09:28]Clear old archive folders... [12:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:09:28]tlvbuf is 000FF180 [12:09:28]SAM_PROTO_ClearQueue [12:09:28]wFMCommunicate request_size=4 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 09 00 00 [12:09:28]Write to MH i2c: E2 08 00 27 0C 80 09 00 00 00 00 00 00 A5 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [12:09:28]RAPDU: 90 00 [12:09:28]wFMCommunicate OK [12:09:28]SAM_PROTO_ClearQueue done [12:09:28]KKMCreateOFDPacket [12:09:28]OFDProtocolAddRootSTLVToBuf [12:09:28]FM_MakeSignedData [12:09:28]FM_MakeSignedData [12:09:28]SAM_PROTO_SignData [12:09:28]wFMCommunicate request_size=4 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 0D 01 02 [12:09:28]Write to MH i2c: E2 08 00 28 0C 80 0D 01 02 00 00 00 00 AD [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [12:09:28]RAPDU: 90 00 [12:09:28]wFMCommunicate OK [12:09:28]wFMCommunicate request_size=255 [12:09:28]MH_SAM_APDU [12:09:28]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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7A E7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [12:09:28]Write to MH i2c: E2 02 01 29 0C 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7A E7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 DA [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:29]Read from MH i2c: E2 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 03 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [12:09:29]RAPDU: 90 00 [12:09:29]wFMCommunicate OK [12:09:29]wFMCommunicate request_size=39 [12:09:29]MH_SAM_APDU [12:09:29]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C4 00 00 35 04 06 00 69 91 B0 D1 DE F3 [12:09:29]Write to MH i2c: E2 2A 00 2A 0C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C4 00 00 35 04 06 00 69 91 B0 D1 DE F3 00 00 E4 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:29]Read from MH i2c: E2 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 03 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [12:09:29]RAPDU: 90 00 [12:09:29]wFMCommunicate OK [12:09:29]wFMCommunicate request_size=4 [12:09:29]MH_SAM_APDU [12:09:29]CAPDU: 80 0D 03 02 [12:09:29]Write to MH i2c: E2 08 00 2B 0C 80 0D 03 02 00 00 00 00 B2 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:29]Read from MH i2c: E2 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 0B 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 0B 00 2B 0C 00 C2 09 79 BC CE D5 BA 27 90 00 37 [12:09:29]RAPDU: C2 09 79 BC CE D5 BA 27 90 00 [12:09:29]wFMCommunicate OK [12:09:29]SAM_PROTO_SignData done [12:09:29]FM_MakeSignedData done [12:09:29]CreateOFDProtocolMessage [12:09:29]wFMCommunicate request_size=4 [12:09:29]MH_SAM_APDU [12:09:29]CAPDU: 80 11 00 00 [12:09:29]Write to MH i2c: E2 08 00 2C 0C 80 11 00 00 00 00 00 00 B2 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:29]Read from MH i2c: E2 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 17 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: E2 17 00 2C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F9 [12:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:09:29]wFMCommunicate OK [12:09:29]CreateOFDProtocolMessage done [12:09:29]OFDSenderStorePacket 50293 [12:09:29]StoreOFDPacket docnum=50293 [12:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 6C B5 24 01 4D 2D 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7A E7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C4 00 00 35 04 06 00 69 91 B0 D1 DE F3 C2 09 79 BC CE D5 BA 27 [12:09:29]CheckFolder [12:09:29]dirname=/storage/ofd_packets [12:09:29]CheckFolder done [12:09:29]ProducePacketName [12:09:29]name=ofd_packets/00050293 [12:09:29]NVStorageSaveData ofd_packets/00050293 [12:09:29]File name is /storage/ofd_packets/00050293 [12:09:29]Write 330 bytes [12:09:29]NVStorageSaveData done [12:09:29]OFDSenderStorePacket done [12:09:29]KKMCreateOFDPacket done [12:09:29]NVStorageSaveData kkm_last_timestamp [12:09:29]File name is /storage/kkm_last_timestamp [12:09:29]Write 4 bytes [12:09:29]NVStorageSaveData done [12:09:29]ExternCall_PrintAddStr [12:09:29]wPrintStart [12:09:29]Write to MH i2c: 01 00 00 2D 0C 39 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 07 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FF 0F 4E [12:09:29]RasterBufferAndPrint [12:09:29]line Счет N : (3)164197 [12:09:29]line ИНН: 02508201610067 [12:09:29]line Контрольно-Кассовый Чек [12:09:29]line ПРОДАЖА [12:09:29]line Товар: 2000036210013 [12:09:29]line Кофе Капучино (GABB TRADE) [12:09:29]line 1.000 * 115.00 [12:09:29]line = 115.00 [12:09:29]line НДС 12% НСП 1% [12:09:29]line > о реализуемом товаре [12:09:29]line ИТОГО: 115.00 [12:09:29]line НСП 1% : 1.02 [12:09:29]line НДС 12% : 12.21 [12:09:29]line Наличными: 0.00 [12:09:29]line Безнал.: 115.00 [12:09:29]line Место: АЗС № 80 "Партнер Нефть" [12:09:29]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:09:29]line СНО: Общий режим [12:09:29]line Чек 38 23.10.2024 12:09 [12:09:29]line Смена: 491 ФФД: 1.0 [12:09:29]line ЗНМ: 0300000090 [12:09:29]line РНМ: 0000000000097022 [12:09:29]line Версия ККМ: 001 [12:09:29]line Платежная система: Mbank [12:09:29]line ФМ: 0000000000875000 [12:09:29]line ФД: 50293 [12:09:29]line ФПД: 116074457718515 [12:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120930&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50293&fm=116074457718515&tin=02508201610067®Number=0000000000097022&sum=11500 [12:09:29]line 0 [12:09:29]OFD Sender: Processing packet 50293 [packets to send 7, broken 6] [12:09:29]ProducePacketName [12:09:29]name=ofd_packets/00050293 [12:09:29]OFD Sender: To server: pG, [12:09:29]CommunicateWithHost lk.salyk.kg:30040 [12:09:29]ConnectInit lk.salyk.kg [12:09:29]written 0, free lines is 4095 [12:09:29]Connected sock=10 [12:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 6C B5 24 01 4D 2D 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7A E7 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C4 00 00 35 04 06 00 69 91 B0 D1 DE F3 C2 09 79 BC CE D5 BA 27 [12:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C4 DC 47 00 AA 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C4 00 00 F4 03 04 00 11 93 18 67 B6 04 01 00 00 C3 2E 7C 5D 86 58 9E 0C [12:09:30]CommunicateWithHost err = 0 [12:09:30]CheckOFDResponse [12:09:30]1017 (14) - 77093643461234 [12:09:30]1041 (16) - 0000000000875000 [12:09:30]1040 (4) - 50293 [12:09:30]1012 (4) - 23.10.2024 06:09 [12:09:30]1206 (1) - 0 [12:09:30]OFD Sender: Remove packet 50293 [12:09:30]ProducePacketName [12:09:30]name=ofd_packets/00050293 [12:09:30]NVStorageDeleteData [12:09:30]Write to MH i2c: 01 00 00 56 0C 62 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: 01 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: 01 07 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: 01 07 00 56 0C 00 00 00 00 00 14 0D 8A [12:09:30]RasterBufferAndPrint [12:09:30]line [12:09:30]line [12:09:30]line [12:09:30]line [12:09:30]line [12:09:30]written 0, free lines is 3354 [12:09:30]process_action close_receipt done [12:09:30]requested_data is exist [12:09:30]produce_requested_data [12:09:30]requested_item fm.sn is exist - process it [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 11 00 00 [12:09:30]Write to MH i2c: E2 08 00 5D 0C 80 11 00 00 00 00 00 00 E3 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 17 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 17 00 5D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2A [12:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:09:30]wFMCommunicate OK [12:09:30]requested_item fd.num is exist - process it [12:09:30]SAM_PROTO_GetFieldsCounters [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 13 00 00 [12:09:30]Write to MH i2c: E2 08 00 5E 0C 80 13 00 00 00 00 00 00 E6 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 62 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 62 00 5E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 75 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [12:09:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 75 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_GetFieldsCounters done [12:09:30]requested_item shift.num is exist - process it [12:09:30]requested_item shift.opened is exist - process it [12:09:30]req_shift_opened [12:09:30]FM_GetShiftState [12:09:30]SAM_PROTO_GetShiftState [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 13 01 00 [12:09:30]Write to MH i2c: E2 08 00 5F 0C 80 13 01 00 00 00 00 00 E8 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 5F 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 34 [12:09:30]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_GetShiftState done [12:09:30]FM_GetShiftState done [12:09:30]req_shift_opened done [12:09:30]requested_item shift.open_date is exist - process it [12:09:30]req_shift_open_date [12:09:30]req_shift_open_date done [12:09:30]produce_requested_data done [12:09:30]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50293,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:09:30]process_action_free close_receipt [12:09:30]json_value_free [12:09:30]json_value_free done [12:09:30]process_json_proto returns [12:09:30]Send response to host [12:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50293,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:09:30]free response buf [12:09:30]execute_script done [12:09:30]execute_script returns [12:09:30]free content buf [12:09:30]Sock 9.Close socket [12:09:30]Sock 9.Thread stoped [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:49]accept exits with 7 [12:11:49]New connection [12:11:49]New thread 3067305316 created [12:11:49]Thread 3067161956 joined [12:11:49]Waiting for new connection... [12:11:49] Sock 7.Parse request [12:11:49]Sock 7.Check first char [12:11:49]Sock 7.First char is OK [12:11:49]request: POST /json_proto HTTP/1.0 [12:11:49]Method: POST [12:11:49]URL: /json_proto [12:11:49]Method is POST - this is cgi request [12:11:49]url: /json_proto [12:11:49]query_string will be loaded in cgi processing [12:11:49]execute_cgi json_proto POST (null) [12:11:49]execute_cgi path=json_proto method=POST [12:11:49]POST find Content-Length [12:11:49]Host: 172.17.49.196:8080 [12:11:49]Content-Length: 646 [12:11:49]Content-Type: application/json [12:11:49] [12:11:49]POST finish read [12:11:49]Found Content-Length = 646 [12:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164198", "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" ] } } [12:11:49]execute_script... [12:11: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)164198", "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" ] } } [12:11:49]POST & json_proto [12:11:49]process_json_proto [12:11:49]json parsed OK: [12:11:49]protocol is kg_v1.0 [12:11:49]action value=close_receipt [12:11:49]process_action close_receipt [12:11:49]cmd_close_receipt [12:11:49]MH_GetDate [12:11:49]Write to MH i2c: F0 00 00 60 0C 5B [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 09 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 09 00 60 0C 00 08 E8 18 67 BD 3B 11 67 43 [12:11:49]GetLastDocTimeStamp 1729685370 [12:11:49]current date 1729685512 [12:11:49]FM_GetShiftState [12:11:49]SAM_PROTO_GetShiftState [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 13 01 00 [12:11:49]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 36 [12:11:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:11:49]wFMCommunicate OK [12:11:49]SAM_PROTO_GetShiftState done [12:11:49]FM_GetShiftState done [12:11:49]opened in 1729642370 [12:11:49]opened+sec_in_day 1729728770 [12:11:49]quantity*price = 13000 [12:11:49]sum+1 = 13001 [12:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 39 23.10.2024 12:11 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50294 ФПД: 128328566648857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121152&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50294&fm=128328566648857&tin=02508201610067®Number=0000000000097022&sum=13000 0 [12:11:50]StoreToDocumentArchive [12:11:50]shift 491 fd 50294 [12:11:50]save to /storage/0491/doc_00050294 [12:11:50]save last doc name /storage/0491/doc_00050294 to /storage/kkm_last_doc_name [12:11:50]save OK [12:11:50]Clear old archive folders... [12:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:11:50]tlvbuf is 002245B0 [12:11:50]SAM_PROTO_ClearQueue [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 09 00 00 [12:11:50]Write to MH i2c: E2 08 00 6E 0C 80 09 00 00 00 00 00 00 EC [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:50]Read from MH i2c: E2 03 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [12:11:50]RAPDU: 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_ClearQueue done [12:11:50]KKMCreateOFDPacket [12:11:50]OFDProtocolAddRootSTLVToBuf [12:11:50]FM_MakeSignedData [12:11:50]FM_MakeSignedData [12:11:50]SAM_PROTO_SignData [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 0D 01 02 [12:11:50]Write to MH i2c: E2 08 00 6F 0C 80 0D 01 02 00 00 00 00 F4 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [12:11:50]RAPDU: 90 00 [12:11:50]wFMCommunicate OK [12:11:50]wFMCommunicate request_size=255 [12:11:50]MH_SAM_APDU [12:11:50]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 27 00 00 00 F4 03 04 00 08 E8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [12:11:50]Write to MH i2c: E2 02 01 70 0C 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 27 00 00 00 F4 03 04 00 08 E8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 80 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=41 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C4 00 00 35 04 06 00 74 B6 D2 A1 30 19 [12:11:51]Write to MH i2c: E2 2C 00 71 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C4 00 00 35 04 06 00 74 B6 D2 A1 30 19 00 00 DA [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 03 02 [12:11:51]Write to MH i2c: E2 08 00 72 0C 80 0D 03 02 00 00 00 00 F9 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 72 0C 00 A6 5B 71 A6 B2 03 45 55 90 00 61 [12:11:51]RAPDU: A6 5B 71 A6 B2 03 45 55 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_SignData done [12:11:51]FM_MakeSignedData done [12:11:51]CreateOFDProtocolMessage [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 11 00 00 [12:11:51]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 40 [12:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:11:51]wFMCommunicate OK [12:11:51]CreateOFDProtocolMessage done [12:11:51]OFDSenderStorePacket 50294 [12:11:51]StoreOFDPacket docnum=50294 [12:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 A2 A8 26 01 24 9D 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 27 00 00 00 F4 03 04 00 08 E8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C4 00 00 35 04 06 00 74 B6 D2 A1 30 19 A6 5B 71 A6 B2 03 45 55 [12:11:51]CheckFolder [12:11:51]dirname=/storage/ofd_packets [12:11:51]CheckFolder done [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00050294 [12:11:51]NVStorageSaveData ofd_packets/00050294 [12:11:51]File name is /storage/ofd_packets/00050294 [12:11:51]Write 332 bytes [12:11:51]NVStorageSaveData done [12:11:51]OFDSenderStorePacket done [12:11:51]KKMCreateOFDPacket done [12:11:51]NVStorageSaveData kkm_last_timestamp [12:11:51]File name is /storage/kkm_last_timestamp [12:11:51]Write 4 bytes [12:11:51]NVStorageSaveData done [12:11:51]ExternCall_PrintAddStr [12:11:51]wPrintStart [12:11:51]Write to MH i2c: 01 00 00 74 0C 80 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [12:11:51]RasterBufferAndPrint [12:11:51]line Счет N : (3)164198 [12:11:51]line ИНН: 02508201610067 [12:11:51]line Контрольно-Кассовый Чек [12:11:51]line ПРОДАЖА [12:11:51]line Товар: 2000036220012 [12:11:51]line Кофе Капучино XL(GABB TRADE) [12:11:51]line 1.000 * 130.00 [12:11:51]line = 130.00 [12:11:51]line НДС 12% НСП 1% [12:11:51]line > о реализуемом товаре [12:11:51]line ИТОГО: 130.00 [12:11:51]line НСП 1% : 1.15 [12:11:51]line НДС 12% : 13.80 [12:11:51]line Наличными: 130.00 [12:11:51]line Безнал.: 0.00 [12:11:51]line Место: АЗС № 80 "Партнер Нефть" [12:11:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:11:51]line СНО: Общий режим [12:11:51]line Чек 39 23.10.2024 12:11 [12:11:51]line Смена: 491 ФФД: 1.0 [12:11:51]line ЗНМ: 0300000090 [12:11:51]line РНМ: 0000000000097022 [12:11:51]line Версия ККМ: 001 [12:11:51]line ФМ: 0000000000875000 [12:11:51]line ФД: 50294 [12:11:51]line ФПД: 128328566648857 [12:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121152&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50294&fm=128328566648857&tin=02508201610067®Number=0000000000097022&sum=13000 [12:11:51]line 0 [12:11:51]OFD Sender: Processing packet 50294 [packets to send 7, broken 6] [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00050294 [12:11:51]OFD Sender: To server: pG, [12:11:51]CommunicateWithHost lk.salyk.kg:30040 [12:11:51]ConnectInit lk.salyk.kg [12:11:51]written 0, free lines is 4095 [12:11:51]Connected sock=10 [12:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 A2 A8 26 01 24 9D 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 27 00 00 00 F4 03 04 00 08 E8 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C4 00 00 35 04 06 00 74 B6 D2 A1 30 19 A6 5B 71 A6 B2 03 45 55 [12:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 69 99 47 00 31 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C4 00 00 F4 03 04 00 9F 93 18 67 B6 04 01 00 00 58 A5 F3 DA 4F 87 42 C4 [12:11:52]CommunicateWithHost err = 0 [12:11:52]CheckOFDResponse [12:11:52]1017 (14) - 77093643461234 [12:11:52]1041 (16) - 0000000000875000 [12:11:52]1040 (4) - 50294 [12:11:52]1012 (4) - 23.10.2024 06:11 [12:11:52]1206 (1) - 0 [12:11:52]OFD Sender: Remove packet 50294 [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00050294 [12:11:52]NVStorageDeleteData [12:11:52]Write to MH i2c: 01 00 00 9D 0C A9 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 0D 0D CA [12:11:52]RasterBufferAndPrint [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]written 0, free lines is 3347 [12:11:52]process_action close_receipt done [12:11:52]requested_data is exist [12:11:52]produce_requested_data [12:11:52]requested_item fm.sn is exist - process it [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 11 00 00 [12:11:52]Write to MH i2c: E2 08 00 A4 0C 80 11 00 00 00 00 00 00 2A [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 17 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 17 00 A4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 71 [12:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:11:52]wFMCommunicate OK [12:11:52]requested_item fd.num is exist - process it [12:11:52]SAM_PROTO_GetFieldsCounters [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 13 00 00 [12:11:52]Write to MH i2c: E2 08 00 A5 0C 80 13 00 00 00 00 00 00 2D [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 62 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 62 00 A5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 76 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:11:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 76 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:52]wFMCommunicate OK [12:11:52]SAM_PROTO_GetFieldsCounters done [12:11:52]requested_item shift.num is exist - process it [12:11:52]requested_item shift.opened is exist - process it [12:11:52]req_shift_opened [12:11:52]FM_GetShiftState [12:11:52]SAM_PROTO_GetShiftState [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 13 01 00 [12:11:52]Write to MH i2c: E2 08 00 A6 0C 80 13 01 00 00 00 00 00 2F [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0E 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0E 00 A6 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7B [12:11:52]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:11:52]wFMCommunicate OK [12:11:52]SAM_PROTO_GetShiftState done [12:11:52]FM_GetShiftState done [12:11:52]req_shift_opened done [12:11:52]requested_item shift.open_date is exist - process it [12:11:52]req_shift_open_date [12:11:52]req_shift_open_date done [12:11:52]produce_requested_data done [12:11:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50294,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:11:52]process_action_free close_receipt [12:11:52]json_value_free [12:11:52]json_value_free done [12:11:52]process_json_proto returns [12:11:52]Send response to host [12:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50294,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:11:52]free response buf [12:11:52]execute_script done [12:11:52]execute_script returns [12:11:52]free content buf [12:11:52]Sock 7.Close socket [12:11:52]Sock 7.Thread stoped [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:01]accept exits with 9 [12:24:01]New connection [12:24:01]New thread 3067161956 created [12:24:01]Thread 3067305316 joined [12:24:01]Waiting for new connection... [12:24:01] Sock 9.Parse request [12:24:01]Sock 9.Check first char [12:24:01]Sock 9.First char is OK [12:24:01]request: POST /json_proto HTTP/1.0 [12:24:01]Method: POST [12:24:01]URL: /json_proto [12:24:01]Method is POST - this is cgi request [12:24:01]url: /json_proto [12:24:01]query_string will be loaded in cgi processing [12:24:01]execute_cgi json_proto POST (null) [12:24:01]execute_cgi path=json_proto method=POST [12:24:01]POST find Content-Length [12:24:01]Host: 172.17.49.196:8080 [12:24:01]Content-Length: 1398 [12:24:01]Content-Type: application/json [12:24:01] [12:24:01]POST finish read [12:24:01]Found Content-Length = 1398 [12:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164199", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 534.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]execute_script... [12:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164199", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 534.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]POST & json_proto [12:24:01]process_json_proto [12:24:01]json parsed OK: [12:24:01]protocol is kg_v1.0 [12:24:01]action value=close_receipt [12:24:01]process_action close_receipt [12:24:01]cmd_close_receipt [12:24:01]MH_GetDate [12:24:01]Write to MH i2c: F0 00 00 A7 0C A2 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 A7 0C 00 E4 EA 18 67 BD 3B 11 67 68 [12:24:01]GetLastDocTimeStamp 1729685512 [12:24:01]current date 1729686244 [12:24:01]FM_GetShiftState [12:24:01]SAM_PROTO_GetShiftState [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 13 01 00 [12:24:01]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7D [12:24:01]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:24:01]wFMCommunicate OK [12:24:01]SAM_PROTO_GetShiftState done [12:24:01]FM_GetShiftState done [12:24:01]opened in 1729642370 [12:24:01]opened+sec_in_day 1729728770 [12:24:01]quantity*price = 15900 [12:24:01]sum+1 = 15901 [12:24:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004848 Печ.зат.TONDI Сэнд.шок-сл.вк 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 534.00 НСП 1% : 4.73 НДС 12% : 56.69 Наличными: 534.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 40 23.10.2024 12:24 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50295 ФПД: 59925219483172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122404&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50295&fm=59925219483172&tin=02508201610067®Number=0000000000097022&sum=53400 0 [12:24:02]StoreToDocumentArchive [12:24:02]shift 491 fd 50295 [12:24:02]save to /storage/0491/doc_00050295 [12:24:02]save last doc name /storage/0491/doc_00050295 to /storage/kkm_last_doc_name [12:24:02]save OK [12:24:02]Clear old archive folders... [12:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=598 [12:24:02]tlvbuf is 00233320 [12:24:02]SAM_PROTO_ClearQueue [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 09 00 00 [12:24:02]Write to MH i2c: E2 08 00 B5 0C 80 09 00 00 00 00 00 00 33 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_ClearQueue done [12:24:02]KKMCreateOFDPacket [12:24:02]OFDProtocolAddRootSTLVToBuf [12:24:02]FM_MakeSignedData [12:24:02]FM_MakeSignedData [12:24:02]SAM_PROTO_SignData [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 01 02 [12:24:02]Write to MH i2c: E2 08 00 B6 0C 80 0D 01 02 00 00 00 00 3B [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=255 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 FA 03 00 56 02 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E [12:24:02]Write to MH i2c: E2 02 01 B7 0C 80 0D 02 02 FA 00 03 00 56 02 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 00 00 47 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:03]OFD Sender: No OFD packet to send [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=255 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 02 02 FA 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 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 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 [12:24:03]Write to MH i2c: E2 02 01 B8 0C 80 0D 02 02 FA 00 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 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 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 00 00 A1 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=107 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 02 02 66 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 E4 EA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C4 00 00 35 04 06 00 36 80 6D 6B 9E 24 [12:24:03]Write to MH i2c: E2 6E 00 B9 0C 80 0D 02 02 66 00 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 E4 EA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C4 00 00 35 04 06 00 36 80 6D 6B 9E 24 00 00 D6 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [12:24:03]RAPDU: 90 00 [12:24:03]wFMCommunicate OK [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 0D 03 02 [12:24:03]Write to MH i2c: E2 08 00 BA 0C 80 0D 03 02 00 00 00 00 41 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0B 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0B 00 BA 0C 00 31 1F 8F 50 C4 72 A8 59 90 00 A8 [12:24:03]RAPDU: 31 1F 8F 50 C4 72 A8 59 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_SignData done [12:24:03]FM_MakeSignedData done [12:24:03]CreateOFDProtocolMessage [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 11 00 00 [12:24:03]Write to MH i2c: E2 08 00 BB 0C 80 11 00 00 00 00 00 00 41 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 BB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 88 [12:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:24:03]wFMCommunicate OK [12:24:03]CreateOFDProtocolMessage done [12:24:03]OFDSenderStorePacket 50295 [12:24:03]StoreOFDPacket docnum=50295 [12:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 6A 02 00 00 44 1D 62 02 2F 68 5A 03 01 00 03 00 56 02 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 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 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 16 00 00 00 00 07 04 06 00 98 D0 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 E4 EA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C4 00 00 35 04 06 00 36 80 6D 6B 9E 24 31 1F 8F 50 C4 72 A8 59 [12:24:03]CheckFolder [12:24:03]dirname=/storage/ofd_packets [12:24:03]CheckFolder done [12:24:03]ProducePacketName [12:24:03]name=ofd_packets/00050295 [12:24:03]NVStorageSaveData ofd_packets/00050295 [12:24:03]File name is /storage/ofd_packets/00050295 [12:24:03]Write 648 bytes [12:24:03]NVStorageSaveData done [12:24:03]OFDSenderStorePacket done [12:24:03]KKMCreateOFDPacket done [12:24:03]NVStorageSaveData kkm_last_timestamp [12:24:03]File name is /storage/kkm_last_timestamp [12:24:03]Write 4 bytes [12:24:03]NVStorageSaveData done [12:24:03]ExternCall_PrintAddStr [12:24:03]wPrintStart [12:24:03]Write to MH i2c: 01 00 00 BC 0C C8 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 FF 0F DD [12:24:03]RasterBufferAndPrint [12:24:03]line Счет N : (3)164199 [12:24:03]line ИНН: 02508201610067 [12:24:03]line Контрольно-Кассовый Чек [12:24:03]line ПРОДАЖА [12:24:03]line Товар: 4640030091645 [12:24:03]line Сигареты ESSE Exchange M [12:24:03]line 1.000 * 159.00 [12:24:03]line = 159.00 [12:24:03]line НДС 12% НСП 1% [12:24:03]line > о реализуемом товаре [12:24:03]line Товар: 47803152 [12:24:03]line Сигареты Mevius Revo [12:24:03]line 1.000 * 159.00 [12:24:03]line = 159.00 [12:24:03]line НДС 12% НСП 1% [12:24:04]line > о реализуемом товаре [12:24:04]line Товар: 4603290004848 [12:24:04]line Печ.зат.TONDI Сэнд.шок-сл.вк [12:24:04]line 1.000 * 86.00 [12:24:04]line = 86.00 [12:24:04]line НДС 12% НСП 1% [12:24:04]line > о реализуемом товаре [12:24:04]line Товар: 2000036220012 [12:24:04]line Кофе Капучино XL(GABB TRADE) [12:24:04]line 1.000 * 130.00 [12:24:04]line = 130.00 [12:24:04]line НДС 12% НСП 1% [12:24:04]line > о реализуемом товаре [12:24:04]line ИТОГО: 534.00 [12:24:04]line НСП 1% : 4.73 [12:24:04]line НДС 12% : 56.69 [12:24:04]line Наличными: 534.00 [12:24:04]line Безнал.: 0.00 [12:24:04]line Место: АЗС № 80 "Партнер Нефть" [12:24:04]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:24:04]line СНО: Общий режим [12:24:04]line Чек 40 23.10.2024 12:24 [12:24:04]line Смена: 491 ФФД: 1.0 [12:24:04]line ЗНМ: 0300000090 [12:24:04]line РНМ: 0000000000097022 [12:24:04]line Версия ККМ: 001 [12:24:04]line ФМ: 0000000000875000 [12:24:04]line ФД: 50295 [12:24:04]line ФПД: 59925219483172 [12:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122404&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50295&fm=59925219483172&tin=02508201610067®Number=0000000000097022&sum=53400 [12:24:04]line 0 [12:24:04]OFD Sender: Processing packet 50295 [packets to send 7, broken 6] [12:24:04]ProducePacketName [12:24:04]name=ofd_packets/00050295 [12:24:04]OFD Sender: To server: pG, [12:24:04]CommunicateWithHost lk.salyk.kg:30040 [12:24:04]ConnectInit lk.salyk.kg [12:24:04]written 0, free lines is 4095 [12:24:04]Connected sock=10 [12:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 6A 02 00 00 44 1D 62 02 2F 68 5A 03 01 00 03 00 56 02 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 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 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 16 00 00 00 00 07 04 06 00 98 D0 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 E4 EA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C4 00 00 35 04 06 00 36 80 6D 6B 9E 24 31 1F 8F 50 C4 72 A8 59 [12:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 12 1D 47 00 E8 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C4 00 00 F4 03 04 00 7C 96 18 67 B6 04 01 00 00 F4 70 42 4B AD F0 34 1F [12:24:04]CommunicateWithHost err = 0 [12:24:04]CheckOFDResponse [12:24:04]1017 (14) - 77093643461234 [12:24:04]1041 (16) - 0000000000875000 [12:24:04]1040 (4) - 50295 [12:24:04]1012 (4) - 23.10.2024 06:23 [12:24:04]1206 (1) - 0 [12:24:04]OFD Sender: Remove packet 50295 [12:24:04]ProducePacketName [12:24:04]name=ofd_packets/00050295 [12:24:04]NVStorageDeleteData [12:24:04]Write to MH i2c: 01 00 00 F7 0C 03 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 07 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 31 0C 47 [12:24:04]RasterBufferAndPrint [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]line [12:24:04]written 0, free lines is 3130 [12:24:04]process_action close_receipt done [12:24:04]requested_data is exist [12:24:04]produce_requested_data [12:24:04]requested_item fm.sn is exist - process it [12:24:04]wFMCommunicate request_size=4 [12:24:04]MH_SAM_APDU [12:24:04]CAPDU: 80 11 00 00 [12:24:04]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:04]Read from MH i2c: E2 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 17 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CB [12:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:24:04]wFMCommunicate OK [12:24:04]requested_item fd.num is exist - process it [12:24:04]SAM_PROTO_GetFieldsCounters [12:24:04]wFMCommunicate request_size=4 [12:24:04]MH_SAM_APDU [12:24:04]CAPDU: 80 13 00 00 [12:24:04]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:04]Read from MH i2c: E2 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 62 00 [12:24:04]MH_I2C_Read... [12:24:04]OFD Sender: No OFD packet to send [12:24:04]Read from MH i2c: E2 62 00 FF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 77 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 77 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:04]wFMCommunicate OK [12:24:04]SAM_PROTO_GetFieldsCounters done [12:24:04]requested_item shift.num is exist - process it [12:24:04]requested_item shift.opened is exist - process it [12:24:04]req_shift_opened [12:24:04]FM_GetShiftState [12:24:04]SAM_PROTO_GetShiftState [12:24:04]wFMCommunicate request_size=4 [12:24:04]MH_SAM_APDU [12:24:04]CAPDU: 80 13 01 00 [12:24:04]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:04]Read from MH i2c: E2 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 0E 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D6 [12:24:04]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:24:04]wFMCommunicate OK [12:24:04]SAM_PROTO_GetShiftState done [12:24:04]FM_GetShiftState done [12:24:04]req_shift_opened done [12:24:04]requested_item shift.open_date is exist - process it [12:24:04]req_shift_open_date [12:24:04]req_shift_open_date done [12:24:04]produce_requested_data done [12:24:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50295,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:24:04]process_action_free close_receipt [12:24:04]json_value_free [12:24:04]json_value_free done [12:24:04]process_json_proto returns [12:24:04]Send response to host [12:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50295,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:24:04]free response buf [12:24:04]execute_script done [12:24:04]execute_script returns [12:24:04]free content buf [12:24:04]Sock 9.Close socket [12:24:04]Sock 9.Thread stoped [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:02]accept exits with 7 [12:38:02]New connection [12:38:02]New thread 3067305316 created [12:38:02]Thread 3067161956 joined [12:38:02]Waiting for new connection... [12:38:02] Sock 7.Parse request [12:38:02]Sock 7.Check first char [12:38:02]Sock 7.First char is OK [12:38:02]request: POST /json_proto HTTP/1.0 [12:38:02]Method: POST [12:38:02]URL: /json_proto [12:38:02]Method is POST - this is cgi request [12:38:02]url: /json_proto [12:38:02]query_string will be loaded in cgi processing [12:38:02]execute_cgi json_proto POST (null) [12:38:02]execute_cgi path=json_proto method=POST [12:38:02]POST find Content-Length [12:38:02]Host: 172.17.49.196:8080 [12:38:02]Content-Length: 647 [12:38:02]Content-Type: application/json [12:38:02] [12:38:02]POST finish read [12:38:02]Found Content-Length = 647 [12:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164202", "tax_sys" : 0, "items" : [ { "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.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:38:02]execute_script... [12:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164202", "tax_sys" : 0, "items" : [ { "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.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:38:02]POST & json_proto [12:38:02]process_json_proto [12:38:02]json parsed OK: [12:38:02]protocol is kg_v1.0 [12:38:02]action value=close_receipt [12:38:02]process_action close_receipt [12:38:02]cmd_close_receipt [12:38:02]MH_GetDate [12:38:02]Write to MH i2c: F0 00 00 01 0D FD [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: F0 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: F0 09 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: F0 09 00 01 0D 00 2D EE 18 67 BD 3B 11 67 10 [12:38:02]GetLastDocTimeStamp 1729686244 [12:38:02]current date 1729687085 [12:38:02]FM_GetShiftState [12:38:02]SAM_PROTO_GetShiftState [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 13 01 00 [12:38:02]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0E 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D8 [12:38:02]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:38:02]wFMCommunicate OK [12:38:02]SAM_PROTO_GetShiftState done [12:38:02]FM_GetShiftState done [12:38:02]opened in 1729642370 [12:38:02]opened+sec_in_day 1729728770 [12:38:02]quantity*price = 9000 [12:38:02]sum+1 = 9001 [12:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 41 23.10.2024 12:38 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50296 ФПД: 80517138957909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123805&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50296&fm=80517138957909&tin=02508201610067®Number=0000000000097022&sum=9000 0 [12:38:03]StoreToDocumentArchive [12:38:03]shift 491 fd 50296 [12:38:03]save to /storage/0491/doc_00050296 [12:38:03]save last doc name /storage/0491/doc_00050296 to /storage/kkm_last_doc_name [12:38:03]save OK [12:38:03]Clear old archive folders... [12:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:38:03]tlvbuf is 0022E160 [12:38:03]SAM_PROTO_ClearQueue [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 09 00 00 [12:38:03]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_ClearQueue done [12:38:03]KKMCreateOFDPacket [12:38:03]OFDProtocolAddRootSTLVToBuf [12:38:03]FM_MakeSignedData [12:38:03]FM_MakeSignedData [12:38:03]SAM_PROTO_SignData [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 01 02 [12:38:03]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [12:38:04]RAPDU: 90 00 [12:38:04]wFMCommunicate OK [12:38:04]wFMCommunicate request_size=255 [12:38:04]MH_SAM_APDU [12:38:04]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 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 29 00 00 00 F4 03 04 00 2D EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 [12:38:04]Write to MH i2c: E2 02 01 11 0D 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 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 29 00 00 00 F4 03 04 00 2D EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 00 00 3E [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [12:38:04]RAPDU: 90 00 [12:38:04]wFMCommunicate OK [12:38:04]wFMCommunicate request_size=37 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C4 00 00 35 04 06 00 49 3A DB 77 46 55 [12:38:04]Write to MH i2c: E2 28 00 12 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C4 00 00 35 04 06 00 49 3A DB 77 46 55 00 00 90 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [12:38:04]RAPDU: 90 00 [12:38:04]wFMCommunicate OK [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 0D 03 02 [12:38:04]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 0B 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 0B 00 13 0D 00 BE 29 AD EA 9C BE 11 E6 90 00 6B [12:38:04]RAPDU: BE 29 AD EA 9C BE 11 E6 90 00 [12:38:04]wFMCommunicate OK [12:38:04]SAM_PROTO_SignData done [12:38:04]FM_MakeSignedData done [12:38:04]CreateOFDProtocolMessage [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 11 00 00 [12:38:04]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 17 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E2 [12:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:38:04]wFMCommunicate OK [12:38:04]CreateOFDProtocolMessage done [12:38:04]OFDSenderStorePacket 50296 [12:38:04]StoreOFDPacket docnum=50296 [12:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 CF 10 22 01 E5 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 29 00 00 00 F4 03 04 00 2D EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C4 00 00 35 04 06 00 49 3A DB 77 46 55 BE 29 AD EA 9C BE 11 E6 [12:38:04]CheckFolder [12:38:04]dirname=/storage/ofd_packets [12:38:04]CheckFolder done [12:38:04]ProducePacketName [12:38:04]name=ofd_packets/00050296 [12:38:04]NVStorageSaveData ofd_packets/00050296 [12:38:04]File name is /storage/ofd_packets/00050296 [12:38:04]Write 328 bytes [12:38:04]NVStorageSaveData done [12:38:04]OFDSenderStorePacket done [12:38:04]KKMCreateOFDPacket done [12:38:04]NVStorageSaveData kkm_last_timestamp [12:38:04]File name is /storage/kkm_last_timestamp [12:38:04]Write 4 bytes [12:38:04]NVStorageSaveData done [12:38:04]ExternCall_PrintAddStr [12:38:04]wPrintStart [12:38:04]Write to MH i2c: 01 00 00 15 0D 22 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 07 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [12:38:04]RasterBufferAndPrint [12:38:04]line Счет N : (3)164202 [12:38:04]line ИНН: 02508201610067 [12:38:04]line Контрольно-Кассовый Чек [12:38:04]line ПРОДАЖА [12:38:04]line Товар: 4620017453130 [12:38:04]line Тараллини NF 180г клас [12:38:04]line 1.000 * 90.00 [12:38:04]line = 90.00 [12:38:04]line НДС 12% НСП 1% [12:38:04]line > о реализуемом товаре [12:38:04]line ИТОГО: 90.00 [12:38:04]line НСП 1% : 0.80 [12:38:04]line НДС 12% : 9.56 [12:38:04]line Наличными: 90.00 [12:38:04]line Безнал.: 0.00 [12:38:04]line Место: АЗС № 80 "Партнер Нефть" [12:38:04]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:38:04]line СНО: Общий режим [12:38:04]line Чек 41 23.10.2024 12:38 [12:38:04]line Смена: 491 ФФД: 1.0 [12:38:04]line ЗНМ: 0300000090 [12:38:04]line РНМ: 0000000000097022 [12:38:04]line Версия ККМ: 001 [12:38:04]line ФМ: 0000000000875000 [12:38:04]line ФД: 50296 [12:38:04]line ФПД: 80517138957909 [12:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123805&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50296&fm=80517138957909&tin=02508201610067®Number=0000000000097022&sum=9000 [12:38:04]line 0 [12:38:04]OFD Sender: Processing packet 50296 [packets to send 7, broken 6] [12:38:04]ProducePacketName [12:38:04]name=ofd_packets/00050296 [12:38:04]OFD Sender: To server: pG, [12:38:04]CommunicateWithHost lk.salyk.kg:30040 [12:38:04]ConnectInit lk.salyk.kg [12:38:04]written 0, free lines is 4095 [12:38:04]Connected sock=10 [12:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 CF 10 22 01 E5 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 29 00 00 00 F4 03 04 00 2D EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C4 00 00 35 04 06 00 49 3A DB 77 46 55 BE 29 AD EA 9C BE 11 E6 [12:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 81 90 47 00 D9 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C4 00 00 F4 03 04 00 C5 99 18 67 B6 04 01 00 00 5D CF 9C 4D 45 95 52 57 [12:38:05]CommunicateWithHost err = 0 [12:38:05]CheckOFDResponse [12:38:05]1017 (14) - 77093643461234 [12:38:05]1041 (16) - 0000000000875000 [12:38:05]1040 (4) - 50296 [12:38:05]1012 (4) - 23.10.2024 06:37 [12:38:05]1206 (1) - 0 [12:38:05]OFD Sender: Remove packet 50296 [12:38:05]ProducePacketName [12:38:05]name=ofd_packets/00050296 [12:38:05]NVStorageDeleteData [12:38:05]Write to MH i2c: 01 00 00 3D 0D 4A [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 3D 0D 00 00 00 00 00 26 0D 84 [12:38:05]RasterBufferAndPrint [12:38:05]line [12:38:05]line [12:38:05]line [12:38:05]line [12:38:05]line [12:38:05]written 0, free lines is 3372 [12:38:05]process_action close_receipt done [12:38:05]requested_data is exist [12:38:05]produce_requested_data [12:38:05]requested_item fm.sn is exist - process it [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 11 00 00 [12:38:05]Write to MH i2c: E2 08 00 44 0D 80 11 00 00 00 00 00 00 CB [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 44 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 12 [12:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:38:05]wFMCommunicate OK [12:38:05]requested_item fd.num is exist - process it [12:38:05]SAM_PROTO_GetFieldsCounters [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 00 00 [12:38:05]Write to MH i2c: E2 08 00 45 0D 80 13 00 00 00 00 00 00 CE [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 45 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 78 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 78 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_GetFieldsCounters done [12:38:05]requested_item shift.num is exist - process it [12:38:05]requested_item shift.opened is exist - process it [12:38:05]req_shift_opened [12:38:05]FM_GetShiftState [12:38:05]SAM_PROTO_GetShiftState [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 01 00 [12:38:05]Write to MH i2c: E2 08 00 46 0D 80 13 01 00 00 00 00 00 D0 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0E 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0E 00 46 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1C [12:38:05]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_GetShiftState done [12:38:05]FM_GetShiftState done [12:38:05]req_shift_opened done [12:38:05]requested_item shift.open_date is exist - process it [12:38:05]req_shift_open_date [12:38:05]req_shift_open_date done [12:38:05]produce_requested_data done [12:38:05]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50296,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:38:05]process_action_free close_receipt [12:38:05]json_value_free [12:38:05]json_value_free done [12:38:05]process_json_proto returns [12:38:05]Send response to host [12:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50296,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:38:05]free response buf [12:38:05]execute_script done [12:38:05]execute_script returns [12:38:05]free content buf [12:38:05]Sock 7.Close socket [12:38:05]Sock 7.Thread stoped [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [12:40:18]New connection [12:40:18]New thread 3067161956 created [12:40:18]Thread 3067305316 joined [12:40:18]Waiting for new connection... [12:40:18] Sock 9.Parse request [12:40:18]Sock 9.Check first char [12:40:18]Sock 9.First char is OK [12:40:18]request: POST /json_proto HTTP/1.0 [12:40:18]Method: POST [12:40:18]URL: /json_proto [12:40:18]Method is POST - this is cgi request [12:40:18]url: /json_proto [12:40:18]query_string will be loaded in cgi processing [12:40:18]execute_cgi json_proto POST (null) [12:40:18]execute_cgi path=json_proto method=POST [12:40:18]POST find Content-Length [12:40:18]Host: 172.17.49.196:8080 [12:40:18]Content-Length: 628 [12:40:18]Content-Type: application/json [12:40:18] [12:40:18]POST finish read [12:40:18]Found Content-Length = 628 [12:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164204", "tax_sys" : 0, "items" : [ { "code": "48743396", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:18]execute_script... [12:40: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)164204", "tax_sys" : 0, "items" : [ { "code": "48743396", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:18]POST & json_proto [12:40:18]process_json_proto [12:40:18]json parsed OK: [12:40:18]protocol is kg_v1.0 [12:40:18]action value=close_receipt [12:40:18]process_action close_receipt [12:40:18]cmd_close_receipt [12:40:18]MH_GetDate [12:40:18]Write to MH i2c: F0 00 00 47 0D 43 [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: F0 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: F0 09 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: F0 09 00 47 0D 00 B5 EE 18 67 BD 3B 11 67 DE [12:40:18]GetLastDocTimeStamp 1729687085 [12:40:18]current date 1729687221 [12:40:18]FM_GetShiftState [12:40:18]SAM_PROTO_GetShiftState [12:40:18]wFMCommunicate request_size=4 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 13 01 00 [12:40:18]Write to MH i2c: E2 08 00 48 0D 80 13 01 00 00 00 00 00 D2 [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:18]Read from MH i2c: E2 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 0E 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 0E 00 48 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1E [12:40:18]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:40:18]wFMCommunicate OK [12:40:18]SAM_PROTO_GetShiftState done [12:40:18]FM_GetShiftState done [12:40:18]opened in 1729642370 [12:40:18]opened+sec_in_day 1729728770 [12:40:18]quantity*price = 13400 [12:40:18]sum+1 = 13401 [12:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 42 23.10.2024 12:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50297 ФПД: 261736321636130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124021&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50297&fm=261736321636130&tin=02508201610067®Number=0000000000097022&sum=13400 0 [12:40:19]StoreToDocumentArchive [12:40:19]shift 491 fd 50297 [12:40:19]save to /storage/0491/doc_00050297 [12:40:19]save last doc name /storage/0491/doc_00050297 to /storage/kkm_last_doc_name [12:40:19]save OK [12:40:19]Clear old archive folders... [12:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:40:19]tlvbuf is 002151C0 [12:40:19]SAM_PROTO_ClearQueue [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 09 00 00 [12:40:19]Write to MH i2c: E2 08 00 55 0D 80 09 00 00 00 00 00 00 D4 [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [12:40:19]RAPDU: 90 00 [12:40:19]wFMCommunicate OK [12:40:19]SAM_PROTO_ClearQueue done [12:40:19]KKMCreateOFDPacket [12:40:19]OFDProtocolAddRootSTLVToBuf [12:40:19]FM_MakeSignedData [12:40:19]FM_MakeSignedData [12:40:19]SAM_PROTO_SignData [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 0D 01 02 [12:40:19]Write to MH i2c: E2 08 00 56 0D 80 0D 01 02 00 00 00 00 DC [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [12:40:19]RAPDU: 90 00 [12:40:19]wFMCommunicate OK [12:40:19]wFMCommunicate request_size=255 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 33 39 36 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 73 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 2A 00 00 00 F4 03 04 00 B5 EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [12:40:19]Write to MH i2c: E2 02 01 57 0D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 33 39 36 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 73 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 2A 00 00 00 F4 03 04 00 B5 EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 D5 [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [12:40:20]RAPDU: 90 00 [12:40:20]wFMCommunicate OK [12:40:20]wFMCommunicate request_size=39 [12:40:20]MH_SAM_APDU [12:40:20]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C4 00 00 35 04 06 00 EE 0C 3C 79 D7 22 [12:40:20]Write to MH i2c: E2 2A 00 58 0D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C4 00 00 35 04 06 00 EE 0C 3C 79 D7 22 00 00 73 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [12:40:20]RAPDU: 90 00 [12:40:20]wFMCommunicate OK [12:40:20]wFMCommunicate request_size=4 [12:40:20]MH_SAM_APDU [12:40:20]CAPDU: 80 0D 03 02 [12:40:20]Write to MH i2c: E2 08 00 59 0D 80 0D 03 02 00 00 00 00 E1 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 0B 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 0B 00 59 0D 00 DF F5 14 67 E4 A6 FD 10 90 00 C8 [12:40:20]RAPDU: DF F5 14 67 E4 A6 FD 10 90 00 [12:40:20]wFMCommunicate OK [12:40:20]SAM_PROTO_SignData done [12:40:20]FM_MakeSignedData done [12:40:20]CreateOFDProtocolMessage [12:40:20]wFMCommunicate request_size=4 [12:40:20]MH_SAM_APDU [12:40:20]CAPDU: 80 11 00 00 [12:40:20]Write to MH i2c: E2 08 00 5A 0D 80 11 00 00 00 00 00 00 E1 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 17 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 17 00 5A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 28 [12:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:40:20]wFMCommunicate OK [12:40:20]CreateOFDProtocolMessage done [12:40:20]OFDSenderStorePacket 50297 [12:40:20]StoreOFDPacket docnum=50297 [12:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 47 15 24 01 88 CD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 33 39 36 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 73 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 2A 00 00 00 F4 03 04 00 B5 EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C4 00 00 35 04 06 00 EE 0C 3C 79 D7 22 DF F5 14 67 E4 A6 FD 10 [12:40:20]CheckFolder [12:40:20]dirname=/storage/ofd_packets [12:40:20]CheckFolder done [12:40:20]ProducePacketName [12:40:20]name=ofd_packets/00050297 [12:40:20]NVStorageSaveData ofd_packets/00050297 [12:40:20]File name is /storage/ofd_packets/00050297 [12:40:20]Write 330 bytes [12:40:20]NVStorageSaveData done [12:40:20]OFDSenderStorePacket done [12:40:20]KKMCreateOFDPacket done [12:40:20]NVStorageSaveData kkm_last_timestamp [12:40:20]File name is /storage/kkm_last_timestamp [12:40:20]Write 4 bytes [12:40:20]NVStorageSaveData done [12:40:20]ExternCall_PrintAddStr [12:40:20]wPrintStart [12:40:20]Write to MH i2c: 01 00 00 5B 0D 68 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 07 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 FF 0F 7D [12:40:20]RasterBufferAndPrint [12:40:20]line Счет N : (3)164204 [12:40:20]line ИНН: 02508201610067 [12:40:20]line Контрольно-Кассовый Чек [12:40:20]line ПРОДАЖА [12:40:20]line Товар: 48743396 [12:40:20]line Сигареты BOND STREET compact silver [12:40:20]line 1.000 * 134.00 [12:40:20]line = 134.00 [12:40:20]line НДС 12% НСП 1% [12:40:20]line > о реализуемом товаре [12:40:20]line ИТОГО: 134.00 [12:40:20]line НСП 1% : 1.19 [12:40:20]line НДС 12% : 14.23 [12:40:20]line Наличными: 134.00 [12:40:20]line Безнал.: 0.00 [12:40:20]line Место: АЗС № 80 "Партнер Нефть" [12:40:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:40:20]line СНО: Общий режим [12:40:20]line Чек 42 23.10.2024 12:40 [12:40:20]line Смена: 491 ФФД: 1.0 [12:40:20]line ЗНМ: 0300000090 [12:40:20]line РНМ: 0000000000097022 [12:40:20]line Версия ККМ: 001 [12:40:20]line ФМ: 0000000000875000 [12:40:20]line ФД: 50297 [12:40:20]line ФПД: 261736321636130 [12:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124021&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50297&fm=261736321636130&tin=02508201610067®Number=0000000000097022&sum=13400 [12:40:20]line 0 [12:40:20]OFD Sender: Processing packet 50297 [packets to send 7, broken 6] [12:40:20]ProducePacketName [12:40:20]name=ofd_packets/00050297 [12:40:20]OFD Sender: To server: pG, [12:40:20]CommunicateWithHost lk.salyk.kg:30040 [12:40:20]ConnectInit lk.salyk.kg [12:40:20]written 0, free lines is 4095 [12:40:20]Connected sock=10 [12:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 47 15 24 01 88 CD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 33 39 36 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 73 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 2A 00 00 00 F4 03 04 00 B5 EE 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C4 00 00 35 04 06 00 EE 0C 3C 79 D7 22 DF F5 14 67 E4 A6 FD 10 [12:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 43 D6 47 00 5B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C4 00 00 F4 03 04 00 4C 9A 18 67 B6 04 01 00 00 75 1D F9 C5 4B 99 B1 DF [12:40:20]CommunicateWithHost err = 0 [12:40:20]CheckOFDResponse [12:40:20]1017 (14) - 77093643461234 [12:40:20]1041 (16) - 0000000000875000 [12:40:20]1040 (4) - 50297 [12:40:20]1012 (4) - 23.10.2024 06:40 [12:40:20]1206 (1) - 0 [12:40:20]OFD Sender: Remove packet 50297 [12:40:20]ProducePacketName [12:40:20]name=ofd_packets/00050297 [12:40:20]NVStorageDeleteData [12:40:21]Write to MH i2c: 01 00 00 84 0D 91 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 07 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 07 00 84 0D 00 00 00 00 00 FD 0C A1 [12:40:21]RasterBufferAndPrint [12:40:21]line [12:40:21]line [12:40:21]line [12:40:21]line [12:40:21]line [12:40:21]written 0, free lines is 3331 [12:40:21]process_action close_receipt done [12:40:21]requested_data is exist [12:40:21]produce_requested_data [12:40:21]requested_item fm.sn is exist - process it [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 11 00 00 [12:40:21]Write to MH i2c: E2 08 00 8B 0D 80 11 00 00 00 00 00 00 12 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 8B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 59 [12:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:40:21]wFMCommunicate OK [12:40:21]requested_item fd.num is exist - process it [12:40:21]SAM_PROTO_GetFieldsCounters [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 13 00 00 [12:40:21]Write to MH i2c: E2 08 00 8C 0D 80 13 00 00 00 00 00 00 15 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 62 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 62 00 8C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 79 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 79 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:21]wFMCommunicate OK [12:40:21]SAM_PROTO_GetFieldsCounters done [12:40:21]requested_item shift.num is exist - process it [12:40:21]requested_item shift.opened is exist - process it [12:40:21]req_shift_opened [12:40:21]FM_GetShiftState [12:40:21]SAM_PROTO_GetShiftState [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 13 01 00 [12:40:21]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0E 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 63 [12:40:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:40:21]wFMCommunicate OK [12:40:21]SAM_PROTO_GetShiftState done [12:40:21]FM_GetShiftState done [12:40:21]req_shift_opened done [12:40:21]requested_item shift.open_date is exist - process it [12:40:21]req_shift_open_date [12:40:21]req_shift_open_date done [12:40:21]produce_requested_data done [12:40:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50297,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:40:21]process_action_free close_receipt [12:40:21]json_value_free [12:40:21]json_value_free done [12:40:21]process_json_proto returns [12:40:21]Send response to host [12:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50297,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:40:21]free response buf [12:40:21]execute_script done [12:40:21]execute_script returns [12:40:21]free content buf [12:40:21]Sock 9.Close socket [12:40:21]Sock 9.Thread stoped [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:17]accept exits with 7 [12:42:17]New connection [12:42:17]New thread 3067305316 created [12:42:17]Thread 3067161956 joined [12:42:17]Waiting for new connection... [12:42:17] Sock 7.Parse request [12:42:17]Sock 7.Check first char [12:42:17]Sock 7.First char is OK [12:42:17]request: POST /json_proto HTTP/1.0 [12:42:17]Method: POST [12:42:17]URL: /json_proto [12:42:17]Method is POST - this is cgi request [12:42:17]url: /json_proto [12:42:17]query_string will be loaded in cgi processing [12:42:17]execute_cgi json_proto POST (null) [12:42:17]execute_cgi path=json_proto method=POST [12:42:17]POST find Content-Length [12:42:17]Host: 172.17.49.196:8080 [12:42:17]Content-Length: 698 [12:42:17]Content-Type: application/json [12:42:17] [12:42:17]POST finish read [12:42:17]Found Content-Length = 698 [12:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164205", "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" ] } } [12:42:17]execute_script... [12:42: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)164205", "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" ] } } [12:42:17]POST & json_proto [12:42:17]process_json_proto [12:42:17]json parsed OK: [12:42:17]protocol is kg_v1.0 [12:42:17]action value=close_receipt [12:42:17]process_action close_receipt [12:42:17]cmd_close_receipt [12:42:17]MH_GetDate [12:42:17]Write to MH i2c: F0 00 00 8E 0D 8A [12:42:17]Write i2c OK [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: F0 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: F0 09 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: F0 09 00 8E 0D 00 2C EF 18 67 BD 3B 11 67 9D [12:42:17]GetLastDocTimeStamp 1729687221 [12:42:17]current date 1729687340 [12:42:17]FM_GetShiftState [12:42:17]SAM_PROTO_GetShiftState [12:42:17]wFMCommunicate request_size=4 [12:42:17]MH_SAM_APDU [12:42:17]CAPDU: 80 13 01 00 [12:42:17]Write to MH i2c: E2 08 00 8F 0D 80 13 01 00 00 00 00 00 19 [12:42:17]Write i2c OK [12:42:17]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 0E 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 0E 00 8F 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 65 [12:42:17]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:42:17]wFMCommunicate OK [12:42:17]SAM_PROTO_GetShiftState done [12:42:17]FM_GetShiftState done [12:42:17]opened in 1729642370 [12:42:17]opened+sec_in_day 1729728770 [12:42:17]quantity*price = 10000 [12:42:17]sum+1 = 10001 [12:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 43 23.10.2024 12:42 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50298 ФПД: 196642558538465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124220&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50298&fm=196642558538465&tin=02508201610067®Number=0000000000097022&sum=10000 0 [12:42:18]StoreToDocumentArchive [12:42:18]shift 491 fd 50298 [12:42:18]save to /storage/0491/doc_00050298 [12:42:18]save last doc name /storage/0491/doc_00050298 to /storage/kkm_last_doc_name [12:42:18]save OK [12:42:18]Clear old archive folders... [12:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=298 [12:42:18]tlvbuf is 000E28C0 [12:42:18]SAM_PROTO_ClearQueue [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 09 00 00 [12:42:18]Write to MH i2c: E2 08 00 9C 0D 80 09 00 00 00 00 00 00 1B [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 03 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [12:42:18]RAPDU: 90 00 [12:42:18]wFMCommunicate OK [12:42:18]SAM_PROTO_ClearQueue done [12:42:18]KKMCreateOFDPacket [12:42:18]OFDProtocolAddRootSTLVToBuf [12:42:18]FM_MakeSignedData [12:42:18]FM_MakeSignedData [12:42:18]SAM_PROTO_SignData [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 0D 01 02 [12:42:18]Write to MH i2c: E2 08 00 9D 0D 80 0D 01 02 00 00 00 00 23 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 03 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [12:42:18]RAPDU: 90 00 [12:42:18]wFMCommunicate OK [12:42:18]wFMCommunicate request_size=255 [12:42:18]MH_SAM_APDU [12:42:18]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 2B 00 00 00 F4 03 04 00 2C EF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [12:42:18]Write to MH i2c: E2 02 01 9E 0D 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 2B 00 00 00 F4 03 04 00 2C EF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 3D [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 03 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [12:42:19]RAPDU: 90 00 [12:42:19]wFMCommunicate OK [12:42:19]wFMCommunicate request_size=57 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C4 00 00 35 04 06 00 B2 D8 69 D9 72 E1 [12:42:19]Write to MH i2c: E2 3C 00 9F 0D 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C4 00 00 35 04 06 00 B2 D8 69 D9 72 E1 00 00 2F [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 03 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [12:42:19]RAPDU: 90 00 [12:42:19]wFMCommunicate OK [12:42:19]wFMCommunicate request_size=4 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 0D 03 02 [12:42:19]Write to MH i2c: E2 08 00 A0 0D 80 0D 03 02 00 00 00 00 28 [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 0B 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 0B 00 A0 0D 00 68 1E DA 22 16 A9 34 92 90 00 30 [12:42:19]RAPDU: 68 1E DA 22 16 A9 34 92 90 00 [12:42:19]wFMCommunicate OK [12:42:19]SAM_PROTO_SignData done [12:42:19]FM_MakeSignedData done [12:42:19]CreateOFDProtocolMessage [12:42:19]wFMCommunicate request_size=4 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 11 00 00 [12:42:19]Write to MH i2c: E2 08 00 A1 0D 80 11 00 00 00 00 00 00 28 [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 17 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 17 00 A1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6F [12:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:42:19]wFMCommunicate OK [12:42:19]CreateOFDProtocolMessage done [12:42:19]OFDSenderStorePacket 50298 [12:42:19]StoreOFDPacket docnum=50298 [12:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 58 47 36 01 FA 53 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 2B 00 00 00 F4 03 04 00 2C EF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C4 00 00 35 04 06 00 B2 D8 69 D9 72 E1 68 1E DA 22 16 A9 34 92 [12:42:19]CheckFolder [12:42:19]dirname=/storage/ofd_packets [12:42:19]CheckFolder done [12:42:19]ProducePacketName [12:42:19]name=ofd_packets/00050298 [12:42:19]NVStorageSaveData ofd_packets/00050298 [12:42:19]File name is /storage/ofd_packets/00050298 [12:42:19]Write 348 bytes [12:42:19]NVStorageSaveData done [12:42:19]OFDSenderStorePacket done [12:42:19]KKMCreateOFDPacket done [12:42:19]NVStorageSaveData kkm_last_timestamp [12:42:19]File name is /storage/kkm_last_timestamp [12:42:19]Write 4 bytes [12:42:19]NVStorageSaveData done [12:42:19]ExternCall_PrintAddStr [12:42:19]wPrintStart [12:42:19]Write to MH i2c: 01 00 00 A2 0D AF [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 07 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 07 00 A2 0D 00 00 00 00 00 FF 0F C4 [12:42:19]RasterBufferAndPrint [12:42:19]line Счет N : (3)164205 [12:42:19]line ИНН: 02508201610067 [12:42:19]line Контрольно-Кассовый Чек [12:42:19]line ПРОДАЖА [12:42:19]line Товар: 4870001571528 [12:42:19]line Вода ASU пит н.газ персик ПЭТ 1,0 л [12:42:19]line 1.000 * 100.00 [12:42:19]line = 100.00 [12:42:19]line НДС 12% НСП 1% [12:42:19]line > о реализуемом товаре [12:42:19]line ИТОГО: 100.00 [12:42:19]line НСП 1% : 0.88 [12:42:19]line НДС 12% : 10.62 [12:42:19]line Наличными: 100.00 [12:42:19]line Безнал.: 0.00 [12:42:19]line Место: АЗС № 80 "Партнер Нефть" [12:42:19]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:42:19]line СНО: Общий режим [12:42:19]line Чек 43 23.10.2024 12:42 [12:42:19]line Смена: 491 ФФД: 1.0 [12:42:19]line ЗНМ: 0300000090 [12:42:19]line РНМ: 0000000000097022 [12:42:19]line Версия ККМ: 001 [12:42:19]line ФМ: 0000000000875000 [12:42:19]line ФД: 50298 [12:42:19]line ФПД: 196642558538465 [12:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124220&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50298&fm=196642558538465&tin=02508201610067®Number=0000000000097022&sum=10000 [12:42:19]line 0 [12:42:19]written 0, free lines is 4095 [12:42:19]OFD Sender: Processing packet 50298 [packets to send 7, broken 6] [12:42:19]ProducePacketName [12:42:19]name=ofd_packets/00050298 [12:42:19]OFD Sender: To server: pG, [12:42:19]CommunicateWithHost lk.salyk.kg:30040 [12:42:19]ConnectInit lk.salyk.kg [12:42:19]Connected sock=10 [12:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 58 47 36 01 FA 53 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 2B 00 00 00 F4 03 04 00 2C EF 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C4 00 00 35 04 06 00 B2 D8 69 D9 72 E1 68 1E DA 22 16 A9 34 92 [12:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 14 C5 47 00 26 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C4 00 00 F4 03 04 00 C3 9A 18 67 B6 04 01 00 00 3D 93 20 21 25 AE B3 D0 [12:42:19]CommunicateWithHost err = 0 [12:42:19]CheckOFDResponse [12:42:19]1017 (14) - 77093643461234 [12:42:19]1041 (16) - 0000000000875000 [12:42:19]1040 (4) - 50298 [12:42:19]1012 (4) - 23.10.2024 06:42 [12:42:19]1206 (1) - 0 [12:42:19]OFD Sender: Remove packet 50298 [12:42:19]ProducePacketName [12:42:19]name=ofd_packets/00050298 [12:42:19]NVStorageDeleteData [12:42:19]Write to MH i2c: 01 00 00 CB 0D D8 [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 07 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 1F 0D 0B [12:42:19]RasterBufferAndPrint [12:42:19]line [12:42:19]line [12:42:19]line [12:42:19]line [12:42:19]line [12:42:19]written 0, free lines is 3365 [12:42:19]process_action close_receipt done [12:42:19]requested_data is exist [12:42:19]produce_requested_data [12:42:19]requested_item fm.sn is exist - process it [12:42:19]wFMCommunicate request_size=4 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 11 00 00 [12:42:19]Write to MH i2c: E2 08 00 D2 0D 80 11 00 00 00 00 00 00 59 [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 17 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 17 00 D2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A0 [12:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:42:19]wFMCommunicate OK [12:42:19]requested_item fd.num is exist - process it [12:42:19]SAM_PROTO_GetFieldsCounters [12:42:19]wFMCommunicate request_size=4 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 13 00 00 [12:42:19]Write to MH i2c: E2 08 00 D3 0D 80 13 00 00 00 00 00 00 5C [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:20]Read from MH i2c: E2 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 62 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 62 00 D3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:20]wFMCommunicate OK [12:42:20]SAM_PROTO_GetFieldsCounters done [12:42:20]requested_item shift.num is exist - process it [12:42:20]requested_item shift.opened is exist - process it [12:42:20]req_shift_opened [12:42:20]FM_GetShiftState [12:42:20]SAM_PROTO_GetShiftState [12:42:20]wFMCommunicate request_size=4 [12:42:20]MH_SAM_APDU [12:42:20]CAPDU: 80 13 01 00 [12:42:20]Write to MH i2c: E2 08 00 D4 0D 80 13 01 00 00 00 00 00 5E [12:42:20]Write i2c OK [12:42:20]MH_I2C_Read... [12:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:20]Read from MH i2c: E2 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 0E 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 0E 00 D4 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AA [12:42:20]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [12:42:20]wFMCommunicate OK [12:42:20]SAM_PROTO_GetShiftState done [12:42:20]FM_GetShiftState done [12:42:20]req_shift_opened done [12:42:20]requested_item shift.open_date is exist - process it [12:42:20]req_shift_open_date [12:42:20]req_shift_open_date done [12:42:20]produce_requested_data done [12:42:20]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50298,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [12:42:20]process_action_free close_receipt [12:42:20]json_value_free [12:42:20]json_value_free done [12:42:20]process_json_proto returns [12:42:20]Send response to host [12:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50298,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [12:42:20]free response buf [12:42:20]execute_script done [12:42:20]execute_script returns [12:42:20]free content buf [12:42:20]Sock 7.Close socket [12:42:20]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]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: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:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:02:56]accept exits with 9 [13:02:56]New connection [13:02:56]New thread 3067161956 created [13:02:56]Thread 3067305316 joined [13:02:56]Waiting for new connection... [13:02:56] Sock 9.Parse request [13:02:56]Sock 9.Check first char [13:02:56]Sock 9.First char is OK [13:02:56]request: POST /json_proto HTTP/1.0 [13:02:56]Method: POST [13:02:56]URL: /json_proto [13:02:56]Method is POST - this is cgi request [13:02:56]url: /json_proto [13:02:56]query_string will be loaded in cgi processing [13:02:56]execute_cgi json_proto POST (null) [13:02:56]execute_cgi path=json_proto method=POST [13:02:56]POST find Content-Length [13:02:56]Host: 172.17.49.196:8080 [13:02:56]Content-Length: 755 [13:02:56]Content-Type: application/json [13:02:56] [13:02:56]POST finish read [13:02:56]Found Content-Length = 755 [13:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164206", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:56]execute_script... [13:02: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)164206", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:56]POST & json_proto [13:02:56]process_json_proto [13:02:56]json parsed OK: [13:02:56]protocol is kg_v1.0 [13:02:56]action value=close_receipt [13:02:56]process_action close_receipt [13:02:56]cmd_close_receipt [13:02:56]MH_GetDate [13:02:56]Write to MH i2c: F0 00 00 D5 0D D1 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: F0 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: F0 09 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: F0 09 00 D5 0D 00 03 F4 18 67 BD 3B 11 67 C0 [13:02:56]GetLastDocTimeStamp 1729687340 [13:02:56]current date 1729688579 [13:02:56]FM_GetShiftState [13:02:56]SAM_PROTO_GetShiftState [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 13 01 00 [13:02:56]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AC [13:02:56]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetShiftState done [13:02:56]FM_GetShiftState done [13:02:56]opened in 1729642370 [13:02:56]opened+sec_in_day 1729728770 [13:02:56]quantity*price = 13000 [13:02:56]sum+1 = 13001 [13:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 44 23.10.2024 13:02 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50299 ФПД: 72577507518990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130259&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50299&fm=72577507518990&tin=02508201610067®Number=0000000000097022&sum=13000 0 [13:02:57]StoreToDocumentArchive [13:02:57]shift 491 fd 50299 [13:02:57]save to /storage/0491/doc_00050299 [13:02:57]save last doc name /storage/0491/doc_00050299 to /storage/kkm_last_doc_name [13:02:57]save OK [13:02:57]Clear old archive folders... [13:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:02:57]tlvbuf is 000E2840 [13:02:57]SAM_PROTO_ClearQueue [13:02:57]wFMCommunicate request_size=4 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 09 00 00 [13:02:57]Write to MH i2c: E2 08 00 E3 0D 80 09 00 00 00 00 00 00 62 [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [13:02:57]RAPDU: 90 00 [13:02:57]wFMCommunicate OK [13:02:57]SAM_PROTO_ClearQueue done [13:02:57]KKMCreateOFDPacket [13:02:57]OFDProtocolAddRootSTLVToBuf [13:02:57]FM_MakeSignedData [13:02:57]FM_MakeSignedData [13:02:57]SAM_PROTO_SignData [13:02:57]wFMCommunicate request_size=4 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 0D 01 02 [13:02:57]Write to MH i2c: E2 08 00 E4 0D 80 0D 01 02 00 00 00 00 6A [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [13:02:57]RAPDU: 90 00 [13:02:57]wFMCommunicate OK [13:02:57]wFMCommunicate request_size=255 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 2C 00 00 00 F4 03 04 00 03 F4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [13:02:57]Write to MH i2c: E2 02 01 E5 0D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 2C 00 00 00 F4 03 04 00 03 F4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 0E [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]wFMCommunicate request_size=35 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C4 00 00 35 04 06 00 42 02 44 8D EA 0E [13:02:58]Write to MH i2c: E2 26 00 E6 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C4 00 00 35 04 06 00 42 02 44 8D EA 0E 00 00 A0 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 0D 03 02 [13:02:58]Write to MH i2c: E2 08 00 E7 0D 80 0D 03 02 00 00 00 00 6F [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0B 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0B 00 E7 0D 00 AE 8B 6A BA 1B 33 07 59 90 00 7B [13:02:58]RAPDU: AE 8B 6A BA 1B 33 07 59 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_SignData done [13:02:58]FM_MakeSignedData done [13:02:58]CreateOFDProtocolMessage [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 11 00 00 [13:02:58]Write to MH i2c: E2 08 00 E8 0D 80 11 00 00 00 00 00 00 6F [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 E8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B6 [13:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:02:58]wFMCommunicate OK [13:02:58]CreateOFDProtocolMessage done [13:02:58]OFDSenderStorePacket 50299 [13:02:58]StoreOFDPacket docnum=50299 [13:02:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 BF 7C 20 01 B6 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 2C 00 00 00 F4 03 04 00 03 F4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C4 00 00 35 04 06 00 42 02 44 8D EA 0E AE 8B 6A BA 1B 33 07 59 [13:02:58]CheckFolder [13:02:58]dirname=/storage/ofd_packets [13:02:58]CheckFolder done [13:02:58]ProducePacketName [13:02:58]name=ofd_packets/00050299 [13:02:58]NVStorageSaveData ofd_packets/00050299 [13:02:58]File name is /storage/ofd_packets/00050299 [13:02:58]Write 326 bytes [13:02:58]NVStorageSaveData done [13:02:58]OFDSenderStorePacket done [13:02:58]KKMCreateOFDPacket done [13:02:58]NVStorageSaveData kkm_last_timestamp [13:02:58]File name is /storage/kkm_last_timestamp [13:02:58]Write 4 bytes [13:02:58]NVStorageSaveData done [13:02:58]ExternCall_PrintAddStr [13:02:58]wPrintStart [13:02:58]Write to MH i2c: 01 00 00 E9 0D F6 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: 01 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: 01 07 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 FF 0F 0B [13:02:58]RasterBufferAndPrint [13:02:58]line Счет N : (3)164206 [13:02:58]line ИНН: 02508201610067 [13:02:58]line Контрольно-Кассовый Чек [13:02:58]line ПРОДАЖА [13:02:58]line Товар: 2000036230011 [13:02:58]line Кофе Латте XL(GABB TRADE) [13:02:58]line 1.000 * 130.00 [13:02:58]line = 130.00 [13:02:58]line НДС 12% НСП 1% [13:02:58]line > о реализуемом товаре [13:02:58]line ИТОГО: 130.00 [13:02:58]line НСП 1% : 1.15 [13:02:58]line НДС 12% : 13.80 [13:02:58]line Наличными: 0.00 [13:02:58]line Безнал.: 130.00 [13:02:58]line Место: АЗС № 80 "Партнер Нефть" [13:02:58]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:02:58]line СНО: Общий режим [13:02:58]line Чек 44 23.10.2024 13:02 [13:02:58]line Смена: 491 ФФД: 1.0 [13:02:58]line ЗНМ: 0300000090 [13:02:58]line РНМ: 0000000000097022 [13:02:58]line Версия ККМ: 001 [13:02:58]line Платежная система: Mbank [13:02:58]line ФМ: 0000000000875000 [13:02:58]line ФД: 50299 [13:02:58]line ФПД: 72577507518990 [13:02:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130259&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50299&fm=72577507518990&tin=02508201610067®Number=0000000000097022&sum=13000 [13:02:58]line 0 [13:02:58]OFD Sender: Processing packet 50299 [packets to send 7, broken 6] [13:02:58]ProducePacketName [13:02:58]name=ofd_packets/00050299 [13:02:58]OFD Sender: To server: pG, [13:02:58]CommunicateWithHost lk.salyk.kg:30040 [13:02:58]ConnectInit lk.salyk.kg [13:02:58]written 0, free lines is 4095 [13:02:58]Connected sock=10 [13:02:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 BF 7C 20 01 B6 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 2C 00 00 00 F4 03 04 00 03 F4 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C4 00 00 35 04 06 00 42 02 44 8D EA 0E AE 8B 6A BA 1B 33 07 59 [13:02:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 63 CA 47 00 A8 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C4 00 00 F4 03 04 00 9A 9F 18 67 B6 04 01 00 00 A1 EA 01 DD 24 D9 25 7A [13:02:58]CommunicateWithHost err = 0 [13:02:58]CheckOFDResponse [13:02:58]1017 (14) - 77093643461234 [13:02:58]1041 (16) - 0000000000875000 [13:02:58]1040 (4) - 50299 [13:02:58]1012 (4) - 23.10.2024 07:02 [13:02:58]1206 (1) - 0 [13:02:58]OFD Sender: Remove packet 50299 [13:02:58]ProducePacketName [13:02:58]name=ofd_packets/00050299 [13:02:58]NVStorageDeleteData [13:02:59]Write to MH i2c: 01 00 00 12 0E 20 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 1A 0D 4E [13:02:59]RasterBufferAndPrint [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]written 0, free lines is 3360 [13:02:59]process_action close_receipt done [13:02:59]requested_data is exist [13:02:59]produce_requested_data [13:02:59]requested_item fm.sn is exist - process it [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 11 00 00 [13:02:59]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E8 [13:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:02:59]wFMCommunicate OK [13:02:59]requested_item fd.num is exist - process it [13:02:59]SAM_PROTO_GetFieldsCounters [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 13 00 00 [13:02:59]Write to MH i2c: E2 08 00 1A 0E 80 13 00 00 00 00 00 00 A4 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 62 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 62 00 1A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [13:02:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_GetFieldsCounters done [13:02:59]requested_item shift.num is exist - process it [13:02:59]requested_item shift.opened is exist - process it [13:02:59]req_shift_opened [13:02:59]FM_GetShiftState [13:02:59]SAM_PROTO_GetShiftState [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 13 01 00 [13:02:59]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0E 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F2 [13:02:59]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_GetShiftState done [13:02:59]FM_GetShiftState done [13:02:59]req_shift_opened done [13:02:59]requested_item shift.open_date is exist - process it [13:02:59]req_shift_open_date [13:02:59]req_shift_open_date done [13:02:59]produce_requested_data done [13:02:59]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50299,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [13:02:59]process_action_free close_receipt [13:02:59]json_value_free [13:02:59]json_value_free done [13:02:59]process_json_proto returns [13:02:59]Send response to host [13:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50299,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [13:02:59]free response buf [13:02:59]execute_script done [13:02:59]execute_script returns [13:02:59]free content buf [13:02:59]Sock 9.Close socket [13:02:59]Sock 9.Thread stoped [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:27]accept exits with 7 [13:12:27]New connection [13:12:27]New thread 3067305316 created [13:12:27]Thread 3067161956 joined [13:12:27]Waiting for new connection... [13:12:27] Sock 7.Parse request [13:12:27]Sock 7.Check first char [13:12:27]Sock 7.First char is OK [13:12:27]request: POST /json_proto HTTP/1.0 [13:12:27]Method: POST [13:12:27]URL: /json_proto [13:12:27]Method is POST - this is cgi request [13:12:27]url: /json_proto [13:12:27]query_string will be loaded in cgi processing [13:12:27]execute_cgi json_proto POST (null) [13:12:27]execute_cgi path=json_proto method=POST [13:12:27]POST find Content-Length [13:12:27]Host: 172.17.49.196:8080 [13:12:27]Content-Length: 621 [13:12:27]Content-Type: application/json [13:12:27] [13:12:27]POST finish read [13:12:27]Found Content-Length = 621 [13:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164207", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:27]execute_script... [13:12: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)164207", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:27]POST & json_proto [13:12:27]process_json_proto [13:12:27]json parsed OK: [13:12:27]protocol is kg_v1.0 [13:12:27]action value=close_receipt [13:12:27]process_action close_receipt [13:12:27]cmd_close_receipt [13:12:27]MH_GetDate [13:12:27]Write to MH i2c: F0 00 00 1C 0E 19 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 1C 0E 00 3E F6 18 67 BD 3B 11 67 45 [13:12:27]GetLastDocTimeStamp 1729688579 [13:12:27]current date 1729689150 [13:12:27]FM_GetShiftState [13:12:27]SAM_PROTO_GetShiftState [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 01 00 [13:12:27]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F4 [13:12:27]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetShiftState done [13:12:27]FM_GetShiftState done [13:12:27]opened in 1729642370 [13:12:27]opened+sec_in_day 1729728770 [13:12:27]quantity*price = 28800 [13:12:27]sum+1 = 28801 [13:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 45 23.10.2024 13:12 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50300 ФПД: 51381810504935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131230&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50300&fm=51381810504935&tin=02508201610067®Number=0000000000097022&sum=28800 0 [13:12:28]StoreToDocumentArchive [13:12:28]shift 491 fd 50300 [13:12:28]save to /storage/0491/doc_00050300 [13:12:28]save last doc name /storage/0491/doc_00050300 to /storage/kkm_last_doc_name [13:12:28]save OK [13:12:28]Clear old archive folders... [13:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:12:28]tlvbuf is 00215F60 [13:12:28]SAM_PROTO_ClearQueue [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 09 00 00 [13:12:28]Write to MH i2c: E2 08 00 2A 0E 80 09 00 00 00 00 00 00 AA [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]SAM_PROTO_ClearQueue done [13:12:28]KKMCreateOFDPacket [13:12:28]OFDProtocolAddRootSTLVToBuf [13:12:28]FM_MakeSignedData [13:12:28]FM_MakeSignedData [13:12:28]SAM_PROTO_SignData [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 01 02 [13:12:28]Write to MH i2c: E2 08 00 2B 0E 80 0D 01 02 00 00 00 00 B2 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [13:12:28]RAPDU: 90 00 [13:12:28]wFMCommunicate OK [13:12:28]wFMCommunicate request_size=255 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3E F6 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [13:12:28]Write to MH i2c: E2 02 01 2C 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3E F6 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 B6 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [13:12:29]RAPDU: 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=32 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C4 00 00 35 04 06 00 2E BB 42 90 24 E7 [13:12:29]Write to MH i2c: E2 23 00 2D 0E 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C4 00 00 35 04 06 00 2E BB 42 90 24 E7 00 00 0C [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [13:12:29]RAPDU: 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 0D 03 02 [13:12:29]Write to MH i2c: E2 08 00 2E 0E 80 0D 03 02 00 00 00 00 B7 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0B 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0B 00 2E 0E 00 7C 31 40 05 E5 65 01 69 90 00 5E [13:12:29]RAPDU: 7C 31 40 05 E5 65 01 69 90 00 [13:12:29]wFMCommunicate OK [13:12:29]SAM_PROTO_SignData done [13:12:29]FM_MakeSignedData done [13:12:29]CreateOFDProtocolMessage [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 11 00 00 [13:12:29]Write to MH i2c: E2 08 00 2F 0E 80 11 00 00 00 00 00 00 B7 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 17 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 17 00 2F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FE [13:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:12:29]wFMCommunicate OK [13:12:29]CreateOFDProtocolMessage done [13:12:29]OFDSenderStorePacket 50300 [13:12:29]StoreOFDPacket docnum=50300 [13:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 57 59 1D 01 87 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3E F6 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C4 00 00 35 04 06 00 2E BB 42 90 24 E7 7C 31 40 05 E5 65 01 69 [13:12:29]CheckFolder [13:12:29]dirname=/storage/ofd_packets [13:12:29]CheckFolder done [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00050300 [13:12:29]NVStorageSaveData ofd_packets/00050300 [13:12:29]File name is /storage/ofd_packets/00050300 [13:12:29]Write 323 bytes [13:12:29]NVStorageSaveData done [13:12:29]OFDSenderStorePacket done [13:12:29]KKMCreateOFDPacket done [13:12:29]NVStorageSaveData kkm_last_timestamp [13:12:29]File name is /storage/kkm_last_timestamp [13:12:29]Write 4 bytes [13:12:29]NVStorageSaveData done [13:12:29]ExternCall_PrintAddStr [13:12:29]wPrintStart [13:12:29]Write to MH i2c: 01 00 00 30 0E 3E [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [13:12:29]RasterBufferAndPrint [13:12:29]line Счет N : (3)164207 [13:12:29]line ИНН: 02508201610067 [13:12:29]line Контрольно-Кассовый Чек [13:12:29]line ПРОДАЖА [13:12:29]line Товар: 48743570 [13:12:29]line Сигареты Winston XStyle Blue [13:12:29]line 2.000 * 144.00 [13:12:29]line = 288.00 [13:12:29]line НДС 12% НСП 1% [13:12:29]line > о реализуемом товаре [13:12:29]line ИТОГО: 288.00 [13:12:29]line НСП 1% : 2.55 [13:12:29]line НДС 12% : 30.58 [13:12:29]line Наличными: 288.00 [13:12:29]line Безнал.: 0.00 [13:12:29]line Место: АЗС № 80 "Партнер Нефть" [13:12:29]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:12:29]line СНО: Общий режим [13:12:29]line Чек 45 23.10.2024 13:12 [13:12:29]line Смена: 491 ФФД: 1.0 [13:12:29]line ЗНМ: 0300000090 [13:12:29]line РНМ: 0000000000097022 [13:12:29]line Версия ККМ: 001 [13:12:29]line ФМ: 0000000000875000 [13:12:29]line ФД: 50300 [13:12:29]line ФПД: 51381810504935 [13:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131230&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50300&fm=51381810504935&tin=02508201610067®Number=0000000000097022&sum=28800 [13:12:29]line 0 [13:12:29]written 0, free lines is 4095 [13:12:29]OFD Sender: Processing packet 50300 [packets to send 7, broken 6] [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00050300 [13:12:29]OFD Sender: To server: pG, [13:12:29]CommunicateWithHost lk.salyk.kg:30040 [13:12:29]ConnectInit lk.salyk.kg [13:12:29]Connected sock=10 [13:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 57 59 1D 01 87 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3E F6 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C4 00 00 35 04 06 00 2E BB 42 90 24 E7 7C 31 40 05 E5 65 01 69 [13:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 65 A3 47 00 79 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C4 00 00 F4 03 04 00 D5 A1 18 67 B6 04 01 00 00 59 B6 04 9C 23 99 3C 21 [13:12:29]CommunicateWithHost err = 0 [13:12:29]CheckOFDResponse [13:12:29]1017 (14) - 77093643461234 [13:12:29]1041 (16) - 0000000000875000 [13:12:29]1040 (4) - 50300 [13:12:29]1012 (4) - 23.10.2024 07:12 [13:12:29]1206 (1) - 0 [13:12:29]OFD Sender: Remove packet 50300 [13:12:29]ProducePacketName [13:12:29]name=ofd_packets/00050300 [13:12:29]NVStorageDeleteData [13:12:30]Write to MH i2c: 01 00 00 58 0E 66 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 07 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 0F 0D 89 [13:12:30]RasterBufferAndPrint [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]line [13:12:30]written 0, free lines is 3349 [13:12:30]process_action close_receipt done [13:12:30]requested_data is exist [13:12:30]produce_requested_data [13:12:30]requested_item fm.sn is exist - process it [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 11 00 00 [13:12:30]Write to MH i2c: E2 08 00 5F 0E 80 11 00 00 00 00 00 00 E7 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:30]Read from MH i2c: E2 17 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 17 00 5F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2E [13:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:12:30]wFMCommunicate OK [13:12:30]requested_item fd.num is exist - process it [13:12:30]SAM_PROTO_GetFieldsCounters [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 00 00 [13:12:30]Write to MH i2c: E2 08 00 60 0E 80 13 00 00 00 00 00 00 EA [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 62 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 62 00 60 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [13:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetFieldsCounters done [13:12:30]requested_item shift.num is exist - process it [13:12:30]requested_item shift.opened is exist - process it [13:12:30]req_shift_opened [13:12:30]FM_GetShiftState [13:12:30]SAM_PROTO_GetShiftState [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 01 00 [13:12:30]Write to MH i2c: E2 08 00 61 0E 80 13 01 00 00 00 00 00 EC [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 61 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 38 [13:12:30]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftState done [13:12:30]FM_GetShiftState done [13:12:30]req_shift_opened done [13:12:30]requested_item shift.open_date is exist - process it [13:12:30]req_shift_open_date [13:12:30]req_shift_open_date done [13:12:30]produce_requested_data done [13:12:30]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50300,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [13:12:30]process_action_free close_receipt [13:12:30]json_value_free [13:12:30]json_value_free done [13:12:30]process_json_proto returns [13:12:30]Send response to host [13:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50300,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [13:12:30]free response buf [13:12:30]execute_script done [13:12:30]execute_script returns [13:12:30]free content buf [13:12:30]Sock 7.Close socket [13:12:30]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:41]accept exits with 9 [13:28:41]New connection [13:28:41]New thread 3067161956 created [13:28:41]Thread 3067305316 joined [13:28:41]Waiting for new connection... [13:28:41] Sock 9.Parse request [13:28:41]Sock 9.Check first char [13:28:41]Sock 9.First char is OK [13:28:41]request: POST /json_proto HTTP/1.0 [13:28:41]Method: POST [13:28:41]URL: /json_proto [13:28:41]Method is POST - this is cgi request [13:28:41]url: /json_proto [13:28:41]query_string will be loaded in cgi processing [13:28:41]execute_cgi json_proto POST (null) [13:28:41]execute_cgi path=json_proto method=POST [13:28:41]POST find Content-Length [13:28:41]Host: 172.17.49.196:8080 [13:28:41]Content-Length: 1192 [13:28:41]Content-Type: application/json [13:28:41] [13:28:41]POST finish read [13:28:41]Found Content-Length = 1192 [13:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164208", "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" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5903111735555", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 WIND FRESH ( strawberry)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 539.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:41]execute_script... [13:28: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)164208", "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" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5903111735555", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 WIND FRESH ( strawberry)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 539.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:41]POST & json_proto [13:28:41]process_json_proto [13:28:41]json parsed OK: [13:28:41]protocol is kg_v1.0 [13:28:41]action value=close_receipt [13:28:41]process_action close_receipt [13:28:41]cmd_close_receipt [13:28:41]MH_GetDate [13:28:41]Write to MH i2c: F0 00 00 62 0E 5F [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 09 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 09 00 62 0E 00 0D FA 18 67 BD 3B 11 67 5E [13:28:41]GetLastDocTimeStamp 1729689150 [13:28:41]current date 1729690125 [13:28:41]FM_GetShiftState [13:28:41]SAM_PROTO_GetShiftState [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 13 01 00 [13:28:41]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0E 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3A [13:28:42]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:28:42]wFMCommunicate OK [13:28:42]SAM_PROTO_GetShiftState done [13:28:42]FM_GetShiftState done [13:28:42]opened in 1729642370 [13:28:42]opened+sec_in_day 1729728770 [13:28:42]quantity*price = 10400 [13:28:42]sum+1 = 10401 [13:28:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 2.000 * 160.00 = 320.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5903111735555 Ароматизатор WIND FRESH ( strawberry) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 539.00 НСП 1% : 4.77 НДС 12% : 57.23 Наличными: 539.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 46 23.10.2024 13:28 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50301 ФПД: 123304566956124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132845&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50301&fm=123304566956124&tin=02508201610067®Number=0000000000097022&sum=53900 0 [13:28:43]StoreToDocumentArchive [13:28:43]shift 491 fd 50301 [13:28:43]save to /storage/0491/doc_00050301 [13:28:43]save last doc name /storage/0491/doc_00050301 to /storage/kkm_last_doc_name [13:28:43]save OK [13:28:43]Clear old archive folders... [13:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=516 [13:28:43]tlvbuf is 00244A70 [13:28:43]SAM_PROTO_ClearQueue [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 09 00 00 [13:28:43]Write to MH i2c: E2 08 00 70 0E 80 09 00 00 00 00 00 00 F0 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_ClearQueue done [13:28:43]KKMCreateOFDPacket [13:28:43]OFDProtocolAddRootSTLVToBuf [13:28:43]FM_MakeSignedData [13:28:43]FM_MakeSignedData [13:28:43]SAM_PROTO_SignData [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 01 02 [13:28:43]Write to MH i2c: E2 08 00 71 0E 80 0D 01 02 00 00 00 00 F8 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]wFMCommunicate request_size=255 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 02 02 FA 03 00 04 02 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 A0 28 00 00 00 00 13 04 06 00 A0 28 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 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 35 39 30 33 31 31 31 37 [13:28:43]Write to MH i2c: E2 02 01 72 0E 80 0D 02 02 FA 00 03 00 04 02 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 A0 28 00 00 00 00 13 04 06 00 A0 28 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 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 35 39 30 33 31 31 31 37 00 00 22 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]wFMCommunicate request_size=255 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 02 02 FA 33 35 35 35 35 06 04 31 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 73 74 72 61 77 62 65 72 72 79 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 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 16 00 00 00 00 07 04 06 00 8C D2 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 0D FA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [13:28:43]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 33 35 35 35 35 06 04 31 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 73 74 72 61 77 62 65 72 72 79 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 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 16 00 00 00 00 07 04 06 00 8C D2 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 0D FA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 C0 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:44]Read from MH i2c: E2 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 03 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [13:28:44]RAPDU: 90 00 [13:28:44]wFMCommunicate OK [13:28:44]wFMCommunicate request_size=25 [13:28:44]MH_SAM_APDU [13:28:44]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 7D C4 00 00 35 04 06 00 70 25 14 E9 A0 5C [13:28:44]Write to MH i2c: E2 1C 00 74 0E 80 0D 02 02 14 00 30 30 10 04 04 00 7D C4 00 00 35 04 06 00 70 25 14 E9 A0 5C 00 00 AA [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:44]Read from MH i2c: E2 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 03 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [13:28:44]RAPDU: 90 00 [13:28:44]wFMCommunicate OK [13:28:44]wFMCommunicate request_size=4 [13:28:44]MH_SAM_APDU [13:28:44]CAPDU: 80 0D 03 02 [13:28:44]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:44]Read from MH i2c: E2 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 0B 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 0B 00 75 0E 00 65 0A 1C 77 5B CE DC 8D 90 00 93 [13:28:44]RAPDU: 65 0A 1C 77 5B CE DC 8D 90 00 [13:28:44]wFMCommunicate OK [13:28:44]SAM_PROTO_SignData done [13:28:44]FM_MakeSignedData done [13:28:44]CreateOFDProtocolMessage [13:28:44]wFMCommunicate request_size=4 [13:28:44]MH_SAM_APDU [13:28:44]CAPDU: 80 11 00 00 [13:28:44]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:44]Read from MH i2c: E2 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 17 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 45 [13:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:28:44]wFMCommunicate OK [13:28:44]CreateOFDProtocolMessage done [13:28:44]OFDSenderStorePacket 50301 [13:28:44]StoreOFDPacket docnum=50301 [13:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 18 02 00 00 43 B0 10 02 8D 47 5A 03 01 00 03 00 04 02 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 A0 28 00 00 00 00 13 04 06 00 A0 28 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 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 35 35 06 04 31 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 73 74 72 61 77 62 65 72 72 79 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 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 16 00 00 00 00 07 04 06 00 8C D2 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 0D FA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C4 00 00 35 04 06 00 70 25 14 E9 A0 5C 65 0A 1C 77 5B CE DC 8D [13:28:44]CheckFolder [13:28:44]dirname=/storage/ofd_packets [13:28:44]CheckFolder done [13:28:44]ProducePacketName [13:28:44]name=ofd_packets/00050301 [13:28:44]NVStorageSaveData ofd_packets/00050301 [13:28:44]File name is /storage/ofd_packets/00050301 [13:28:44]Write 566 bytes [13:28:44]NVStorageSaveData done [13:28:44]OFDSenderStorePacket done [13:28:44]KKMCreateOFDPacket done [13:28:44]NVStorageSaveData kkm_last_timestamp [13:28:44]File name is /storage/kkm_last_timestamp [13:28:44]Write 4 bytes [13:28:44]NVStorageSaveData done [13:28:44]ExternCall_PrintAddStr [13:28:44]wPrintStart [13:28:44]Write to MH i2c: 01 00 00 77 0E 85 [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 07 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [13:28:44]RasterBufferAndPrint [13:28:44]line Счет N : (3)164208 [13:28:44]line ИНН: 02508201610067 [13:28:44]line Контрольно-Кассовый Чек [13:28:44]line ПРОДАЖА [13:28:44]line Товар: 4870202522015 [13:28:44]line Напиток Maxi Чай Грушевый 1,2л [13:28:44]line 1.000 * 104.00 [13:28:44]line = 104.00 [13:28:44]line НДС 12% НСП 1% [13:28:44]line > о реализуемом товаре [13:28:44]line Товар: 48741958 [13:28:44]line Сигареты Parliament Aqua Blue [13:28:44]line 2.000 * 160.00 [13:28:44]line = 320.00 [13:28:44]line НДС 12% НСП 1% [13:28:44]line > о реализуемом товаре [13:28:44]line Товар: 5903111735555 [13:28:44]line Ароматизатор WIND FRESH ( strawberry) [13:28:44]line 1.000 * 115.00 [13:28:44]line = 115.00 [13:28:44]line НДС 12% НСП 1% [13:28:44]line > о реализуемом товаре [13:28:44]line ИТОГО: 539.00 [13:28:44]line НСП 1% : 4.77 [13:28:44]line НДС 12% : 57.23 [13:28:44]line Наличными: 539.00 [13:28:44]line Безнал.: 0.00 [13:28:44]line Место: АЗС № 80 "Партнер Нефть" [13:28:44]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:28:44]line СНО: Общий режим [13:28:44]line Чек 46 23.10.2024 13:28 [13:28:44]line Смена: 491 ФФД: 1.0 [13:28:44]line ЗНМ: 0300000090 [13:28:44]line РНМ: 0000000000097022 [13:28:44]line Версия ККМ: 001 [13:28:44]line ФМ: 0000000000875000 [13:28:44]line ФД: 50301 [13:28:44]line ФПД: 123304566956124 [13:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132845&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50301&fm=123304566956124&tin=02508201610067®Number=0000000000097022&sum=53900 [13:28:44]line 0 [13:28:44]OFD Sender: Processing packet 50301 [packets to send 7, broken 6] [13:28:44]ProducePacketName [13:28:44]name=ofd_packets/00050301 [13:28:44]OFD Sender: To server: pG, [13:28:44]CommunicateWithHost lk.salyk.kg:30040 [13:28:44]ConnectInit lk.salyk.kg [13:28:44]written 0, free lines is 4095 [13:28:44]Connected sock=10 [13:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 18 02 00 00 43 B0 10 02 8D 47 5A 03 01 00 03 00 04 02 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 A0 28 00 00 00 00 13 04 06 00 A0 28 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 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 35 39 30 33 31 31 31 37 33 35 35 35 35 06 04 31 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 57 49 4E 44 20 46 52 45 53 48 20 28 20 73 74 72 61 77 62 65 72 72 79 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 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 16 00 00 00 00 07 04 06 00 8C D2 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 0D FA 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C4 00 00 35 04 06 00 70 25 14 E9 A0 5C 65 0A 1C 77 5B CE DC 8D [13:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B2 5F 47 00 5F A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C4 00 00 F4 03 04 00 A4 A5 18 67 B6 04 01 00 00 23 D6 7D 4C 74 79 07 5D [13:28:44]CommunicateWithHost err = 0 [13:28:44]CheckOFDResponse [13:28:44]1017 (14) - 77093643461234 [13:28:44]1041 (16) - 0000000000875000 [13:28:44]1040 (4) - 50301 [13:28:44]1012 (4) - 23.10.2024 07:28 [13:28:44]1206 (1) - 0 [13:28:44]OFD Sender: Remove packet 50301 [13:28:44]ProducePacketName [13:28:44]name=ofd_packets/00050301 [13:28:44]NVStorageDeleteData [13:28:45]Write to MH i2c: 01 00 00 AE 0E BC [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: 01 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: 01 07 00 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 4C 0C 1B [13:28:45]RasterBufferAndPrint [13:28:45]line [13:28:45]line [13:28:45]line [13:28:45]line [13:28:45]line [13:28:45]written 0, free lines is 3154 [13:28:45]process_action close_receipt done [13:28:45]requested_data is exist [13:28:45]produce_requested_data [13:28:45]requested_item fm.sn is exist - process it [13:28:45]wFMCommunicate request_size=4 [13:28:45]MH_SAM_APDU [13:28:45]CAPDU: 80 11 00 00 [13:28:45]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 [13:28:45]MH_I2C_Read... [13:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:45]Read from MH i2c: E2 17 00 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 17 00 B5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 84 [13:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:28:45]wFMCommunicate OK [13:28:45]requested_item fd.num is exist - process it [13:28:45]SAM_PROTO_GetFieldsCounters [13:28:45]wFMCommunicate request_size=4 [13:28:45]MH_SAM_APDU [13:28:45]CAPDU: 80 13 00 00 [13:28:45]Write to MH i2c: E2 08 00 B6 0E 80 13 00 00 00 00 00 00 40 [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:45]Read from MH i2c: E2 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 62 00 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 62 00 B6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:45]wFMCommunicate OK [13:28:45]SAM_PROTO_GetFieldsCounters done [13:28:45]requested_item shift.num is exist - process it [13:28:45]requested_item shift.opened is exist - process it [13:28:45]req_shift_opened [13:28:45]FM_GetShiftState [13:28:45]SAM_PROTO_GetShiftState [13:28:45]wFMCommunicate request_size=4 [13:28:45]MH_SAM_APDU [13:28:45]CAPDU: 80 13 01 00 [13:28:45]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [13:28:45]OFD Sender: No OFD packet to send [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:45]Read from MH i2c: E2 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 0E 00 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8E [13:28:45]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:28:45]wFMCommunicate OK [13:28:45]SAM_PROTO_GetShiftState done [13:28:45]FM_GetShiftState done [13:28:45]req_shift_opened done [13:28:45]requested_item shift.open_date is exist - process it [13:28:45]req_shift_open_date [13:28:45]req_shift_open_date done [13:28:45]produce_requested_data done [13:28:45]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50301,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [13:28:45]process_action_free close_receipt [13:28:45]json_value_free [13:28:45]json_value_free done [13:28:45]process_json_proto returns [13:28:45]Send response to host [13:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50301,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [13:28:45]free response buf [13:28:45]execute_script done [13:28:45]execute_script returns [13:28:45]free content buf [13:28:45]Sock 9.Close socket [13:28:45]Sock 9.Thread stoped [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:44]accept exits with 7 [13:39:44]New connection [13:39:44]New thread 3067305316 created [13:39:44]Thread 3067161956 joined [13:39:44]Waiting for new connection... [13:39:44] Sock 7.Parse request [13:39:44]Sock 7.Check first char [13:39:44]Sock 7.First char is OK [13:39:44]request: POST /json_proto HTTP/1.0 [13:39:44]Method: POST [13:39:44]URL: /json_proto [13:39:44]Method is POST - this is cgi request [13:39:44]url: /json_proto [13:39:44]query_string will be loaded in cgi processing [13:39:44]execute_cgi json_proto POST (null) [13:39:44]execute_cgi path=json_proto method=POST [13:39:44]POST find Content-Length [13:39:44]Host: 172.17.49.196:8080 [13:39:44]Content-Length: 679 [13:39:44]Content-Type: application/json [13:39:44] [13:39:44]POST finish read [13:39:44]Found Content-Length = 679 [13:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:44]execute_script... [13:39:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:44]POST & json_proto [13:39:44]process_json_proto [13:39:44]json parsed OK: [13:39:44]protocol is kg_v1.0 [13:39:44]action value=close_receipt [13:39:44]process_action close_receipt [13:39:44]cmd_close_receipt [13:39:44]MH_GetDate [13:39:44]Write to MH i2c: F0 00 00 B8 0E B5 [13:39:44]Write i2c OK [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: F0 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: F0 09 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: F0 09 00 B8 0E 00 A3 FC 18 67 BD 3B 11 67 4C [13:39:44]GetLastDocTimeStamp 1729690125 [13:39:44]current date 1729690787 [13:39:44]FM_GetShiftState [13:39:44]SAM_PROTO_GetShiftState [13:39:44]wFMCommunicate request_size=4 [13:39:44]MH_SAM_APDU [13:39:44]CAPDU: 80 13 01 00 [13:39:44]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [13:39:44]Write i2c OK [13:39:44]MH_I2C_Read... [13:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:44]Read from MH i2c: E2 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 0E 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 90 [13:39:44]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:39:44]wFMCommunicate OK [13:39:44]SAM_PROTO_GetShiftState done [13:39:44]FM_GetShiftState done [13:39:44]opened in 1729642370 [13:39:44]opened+sec_in_day 1729728770 [13:39:44]quantity*price = 50041 [13:39:44]sum+1 = 50042 [13:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 47 23.10.2024 13:39 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50302 ФПД: 89525436389525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133947&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50302&fm=89525436389525&tin=02508201610067®Number=0000000000097022&sum=50000 [13:39:45]StoreToDocumentArchive [13:39:45]shift 491 fd 50302 [13:39:45]save to /storage/0491/doc_00050302 [13:39:45]save last doc name /storage/0491/doc_00050302 to /storage/kkm_last_doc_name [13:39:45]save OK [13:39:45]Clear old archive folders... [13:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:45]tlvbuf is 0021B920 [13:39:45]SAM_PROTO_ClearQueue [13:39:45]wFMCommunicate request_size=4 [13:39:45]MH_SAM_APDU [13:39:45]CAPDU: 80 09 00 00 [13:39:45]Write to MH i2c: E2 08 00 C6 0E 80 09 00 00 00 00 00 00 46 [13:39:45]Write i2c OK [13:39:45]MH_I2C_Read... [13:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:45]Read from MH i2c: E2 [13:39:45]MH_I2C_Read... [13:39:45]Read from MH i2c: E2 03 00 [13:39:45]MH_I2C_Read... [13:39:45]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [13:39:45]RAPDU: 90 00 [13:39:45]wFMCommunicate OK [13:39:45]SAM_PROTO_ClearQueue done [13:39:45]KKMCreateOFDPacket [13:39:45]OFDProtocolAddRootSTLVToBuf [13:39:45]FM_MakeSignedData [13:39:45]FM_MakeSignedData [13:39:45]SAM_PROTO_SignData [13:39:45]wFMCommunicate request_size=4 [13:39:45]MH_SAM_APDU [13:39:45]CAPDU: 80 0D 01 02 [13:39:45]Write to MH i2c: E2 08 00 C7 0E 80 0D 01 02 00 00 00 00 4E [13:39:45]Write i2c OK [13:39:45]MH_I2C_Read... [13:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:45]Read from MH i2c: E2 [13:39:45]MH_I2C_Read... [13:39:45]Read from MH i2c: E2 03 00 [13:39:45]MH_I2C_Read... [13:39:45]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [13:39:45]RAPDU: 90 00 [13:39:45]wFMCommunicate OK [13:39:45]wFMCommunicate request_size=255 [13:39:45]MH_SAM_APDU [13:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A3 FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C4 00 00 35 04 06 00 51 [13:39:45]Write to MH i2c: E2 02 01 C8 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A3 FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C4 00 00 35 04 06 00 51 00 00 97 [13:39:45]Write i2c OK [13:39:45]MH_I2C_Read... [13:39:45]OFD Sender: No OFD packet to send [13:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:46]Read from MH i2c: E2 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 03 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [13:39:46]RAPDU: 90 00 [13:39:46]wFMCommunicate OK [13:39:46]wFMCommunicate request_size=10 [13:39:46]MH_SAM_APDU [13:39:46]CAPDU: 80 0D 02 02 05 6C 43 D5 98 95 [13:39:46]Write to MH i2c: E2 0D 00 C9 0E 80 0D 02 02 05 00 6C 43 D5 98 95 00 00 0C [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:46]Read from MH i2c: E2 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 03 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [13:39:46]RAPDU: 90 00 [13:39:46]wFMCommunicate OK [13:39:46]wFMCommunicate request_size=4 [13:39:46]MH_SAM_APDU [13:39:46]CAPDU: 80 0D 03 02 [13:39:46]Write to MH i2c: E2 08 00 CA 0E 80 0D 03 02 00 00 00 00 53 [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:46]Read from MH i2c: E2 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 0B 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 0B 00 CA 0E 00 A7 CB D3 EE 71 30 AA 4D 90 00 1F [13:39:46]RAPDU: A7 CB D3 EE 71 30 AA 4D 90 00 [13:39:46]wFMCommunicate OK [13:39:46]SAM_PROTO_SignData done [13:39:46]FM_MakeSignedData done [13:39:46]CreateOFDProtocolMessage [13:39:46]wFMCommunicate request_size=4 [13:39:46]MH_SAM_APDU [13:39:46]CAPDU: 80 11 00 00 [13:39:46]Write to MH i2c: E2 08 00 CB 0E 80 11 00 00 00 00 00 00 53 [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:46]Read from MH i2c: E2 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 17 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: E2 17 00 CB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9A [13:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:39:46]wFMCommunicate OK [13:39:46]CreateOFDProtocolMessage done [13:39:46]OFDSenderStorePacket 50302 [13:39:46]StoreOFDPacket docnum=50302 [13:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 DD D4 07 01 DE 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A3 FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C4 00 00 35 04 06 00 51 6C 43 D5 98 95 A7 CB D3 EE 71 30 AA 4D [13:39:46]CheckFolder [13:39:46]dirname=/storage/ofd_packets [13:39:46]CheckFolder done [13:39:46]ProducePacketName [13:39:46]name=ofd_packets/00050302 [13:39:46]NVStorageSaveData ofd_packets/00050302 [13:39:46]File name is /storage/ofd_packets/00050302 [13:39:46]Write 301 bytes [13:39:46]NVStorageSaveData done [13:39:46]OFDSenderStorePacket done [13:39:46]KKMCreateOFDPacket done [13:39:46]NVStorageSaveData kkm_last_timestamp [13:39:46]File name is /storage/kkm_last_timestamp [13:39:46]Write 4 bytes [13:39:46]NVStorageSaveData done [13:39:46]ExternCall_PrintAddStr [13:39:46]wPrintStart [13:39:46]Write to MH i2c: 01 00 00 CC 0E DA [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 07 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 FF 0F EF [13:39:46]RasterBufferAndPrint [13:39:46]line Счет N : (1)15441118 [13:39:46]line ИНН: 02508201610067 [13:39:46]line Контрольно-Кассовый Чек [13:39:46]line ПРОДАЖА [13:39:46]line ТРК (МРК, ГНК) : 33 [13:39:46]line Товар: 2710124130 [13:39:46]line Аи-92-К-4 [13:39:46]line 7.480 * 66.90 [13:39:46]line = 500.41 [13:39:46]line НДС 12% НСП 1% [13:39:46]line > о реализуемом товаре [13:39:46]line ОКРУГЛЕНИЕ: -0.41 [13:39:46]line ИТОГО: 500.00 [13:39:46]line Внесено: 500.00 [13:39:46]line СДАЧА: 0.00 [13:39:46]line НСП 1% : 4.43 [13:39:46]line НДС 12% : 53.14 [13:39:46]line Наличными: 500.00 [13:39:46]line Безнал.: 0.00 [13:39:46]line Место: АЗС № 80 "Партнер Нефть" [13:39:46]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:39:46]line СНО: Общий режим [13:39:46]line Чек 47 23.10.2024 13:39 [13:39:46]line Смена: 491 ФФД: 1.0 [13:39:46]line ЗНМ: 0300000090 [13:39:46]line РНМ: 0000000000097022 [13:39:46]line Версия ККМ: 001 [13:39:46]line ФМ: 0000000000875000 [13:39:46]line ФД: 50302 [13:39:46]line ФПД: 89525436389525 [13:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133947&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50302&fm=89525436389525&tin=02508201610067®Number=0000000000097022&sum=50000 [13:39:46]OFD Sender: Processing packet 50302 [packets to send 7, broken 6] [13:39:46]ProducePacketName [13:39:46]name=ofd_packets/00050302 [13:39:46]OFD Sender: To server: pG, [13:39:46]CommunicateWithHost lk.salyk.kg:30040 [13:39:46]ConnectInit lk.salyk.kg [13:39:46]written 0, free lines is 4095 [13:39:46]Connected sock=10 [13:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 DD D4 07 01 DE 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A3 FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C4 00 00 35 04 06 00 51 6C 43 D5 98 95 A7 CB D3 EE 71 30 AA 4D [13:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E8 63 47 00 12 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C4 00 00 F4 03 04 00 3A A8 18 67 B6 04 01 00 00 91 FD FD E5 38 A5 41 40 [13:39:46]CommunicateWithHost err = 0 [13:39:46]CheckOFDResponse [13:39:46]1017 (14) - 77093643461234 [13:39:46]1041 (16) - 0000000000875000 [13:39:46]1040 (4) - 50302 [13:39:46]1012 (4) - 23.10.2024 07:39 [13:39:46]1206 (1) - 0 [13:39:46]OFD Sender: Remove packet 50302 [13:39:46]ProducePacketName [13:39:46]name=ofd_packets/00050302 [13:39:46]NVStorageDeleteData [13:39:46]Write to MH i2c: 01 00 00 F7 0E 05 [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 07 00 [13:39:46]MH_I2C_Read... [13:39:46]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 EC 0C 04 [13:39:46]RasterBufferAndPrint [13:39:46]line [13:39:46]line [13:39:46]line [13:39:46]line [13:39:46]line [13:39:46]written 0, free lines is 3314 [13:39:46]process_action close_receipt done [13:39:46]requested_data is exist [13:39:46]produce_requested_data [13:39:46]requested_item fm.sn is exist - process it [13:39:46]wFMCommunicate request_size=4 [13:39:46]MH_SAM_APDU [13:39:46]CAPDU: 80 11 00 00 [13:39:46]Write to MH i2c: E2 08 00 FE 0E 80 11 00 00 00 00 00 00 86 [13:39:46]Write i2c OK [13:39:46]MH_I2C_Read... [13:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:47]Read from MH i2c: E2 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 17 00 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 17 00 FE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CD [13:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:39:47]wFMCommunicate OK [13:39:47]requested_item fd.num is exist - process it [13:39:47]SAM_PROTO_GetFieldsCounters [13:39:47]wFMCommunicate request_size=4 [13:39:47]MH_SAM_APDU [13:39:47]CAPDU: 80 13 00 00 [13:39:47]Write to MH i2c: E2 08 00 FF 0E 80 13 00 00 00 00 00 00 89 [13:39:47]Write i2c OK [13:39:47]MH_I2C_Read... [13:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:47]Read from MH i2c: E2 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 62 00 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 62 00 FF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [13:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:47]wFMCommunicate OK [13:39:47]SAM_PROTO_GetFieldsCounters done [13:39:47]requested_item shift.num is exist - process it [13:39:47]requested_item shift.opened is exist - process it [13:39:47]req_shift_opened [13:39:47]FM_GetShiftState [13:39:47]SAM_PROTO_GetShiftState [13:39:47]wFMCommunicate request_size=4 [13:39:47]MH_SAM_APDU [13:39:47]CAPDU: 80 13 01 00 [13:39:47]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [13:39:47]Write i2c OK [13:39:47]MH_I2C_Read... [13:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:47]Read from MH i2c: E2 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 0E 00 [13:39:47]MH_I2C_Read... [13:39:47]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D8 [13:39:47]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:39:47]wFMCommunicate OK [13:39:47]SAM_PROTO_GetShiftState done [13:39:47]FM_GetShiftState done [13:39:47]req_shift_opened done [13:39:47]requested_item shift.open_date is exist - process it [13:39:47]req_shift_open_date [13:39:47]req_shift_open_date done [13:39:47]produce_requested_data done [13:39:47]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50302,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [13:39:47]process_action_free close_receipt [13:39:47]json_value_free [13:39:47]json_value_free done [13:39:47]process_json_proto returns [13:39:47]Send response to host [13:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50302,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [13:39:47]free response buf [13:39:47]execute_script done [13:39:47]execute_script returns [13:39:47]free content buf [13:39:47]Sock 7.Close socket [13:39:47]Sock 7.Thread stoped [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:08]accept exits with 9 [13:40:08]New connection [13:40:08]New thread 3067161956 created [13:40:08]Thread 3067305316 joined [13:40:08]Waiting for new connection... [13:40:08] Sock 9.Parse request [13:40:08]Sock 9.Check first char [13:40:08]Sock 9.First char is OK [13:40:08]request: POST /json_proto HTTP/1.0 [13:40:08]Method: POST [13:40:08]URL: /json_proto [13:40:08]Method is POST - this is cgi request [13:40:08]url: /json_proto [13:40:08]query_string will be loaded in cgi processing [13:40:08]execute_cgi json_proto POST (null) [13:40:08]execute_cgi path=json_proto method=POST [13:40:08]POST find Content-Length [13:40:08]Host: 172.17.49.196:8080 [13:40:08]Content-Length: 793 [13:40:08]Content-Type: application/json [13:40:08] [13:40:08]POST finish read [13:40:08]Found Content-Length = 793 [13:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A3520", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:08]execute_script... [13:40: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)15441119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A3520", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:08]POST & json_proto [13:40:08]process_json_proto [13:40:08]json parsed OK: [13:40:08]protocol is kg_v1.0 [13:40:08]action value=close_receipt [13:40:08]process_action close_receipt [13:40:08]cmd_close_receipt [13:40:08]MH_GetDate [13:40:08]Write to MH i2c: F0 00 00 01 0F FF [13:40:08]Write i2c OK [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: F0 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: F0 09 00 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: F0 09 00 01 0F 00 BC FC 18 67 BD 3B 11 67 AF [13:40:08]GetLastDocTimeStamp 1729690787 [13:40:08]current date 1729690812 [13:40:08]FM_GetShiftState [13:40:08]SAM_PROTO_GetShiftState [13:40:08]wFMCommunicate request_size=4 [13:40:08]MH_SAM_APDU [13:40:08]CAPDU: 80 13 01 00 [13:40:08]Write to MH i2c: E2 08 00 02 0F 80 13 01 00 00 00 00 00 8E [13:40:08]Write i2c OK [13:40:08]MH_I2C_Read... [13:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:08]Read from MH i2c: E2 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: E2 0E 00 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: E2 0E 00 02 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 DA [13:40:08]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:40:08]wFMCommunicate OK [13:40:08]SAM_PROTO_GetShiftState done [13:40:08]FM_GetShiftState done [13:40:08]opened in 1729642370 [13:40:08]opened+sec_in_day 1729728770 [13:40:08]quantity*price = 0 [13:40:08]sum+1 = 1 [13:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 48 23.10.2024 13:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Талоны: Топливная Карта 3520 ФМ: 0000000000875000 ФД: 50303 ФПД: 103187607478875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134012&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50303&fm=103187607478875&tin=02508201610067®Number=0000000000097022&sum=0 [13:40:09]StoreToDocumentArchive [13:40:09]shift 491 fd 50303 [13:40:09]save to /storage/0491/doc_00050303 [13:40:09]save last doc name /storage/0491/doc_00050303 to /storage/kkm_last_doc_name [13:40:09]save OK [13:40:09]Clear old archive folders... [13:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:09]tlvbuf is 00227F40 [13:40:09]SAM_PROTO_ClearQueue [13:40:09]wFMCommunicate request_size=4 [13:40:09]MH_SAM_APDU [13:40:09]CAPDU: 80 09 00 00 [13:40:09]Write to MH i2c: E2 08 00 0F 0F 80 09 00 00 00 00 00 00 90 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [13:40:10]RAPDU: 90 00 [13:40:10]wFMCommunicate OK [13:40:10]SAM_PROTO_ClearQueue done [13:40:10]KKMCreateOFDPacket [13:40:10]OFDProtocolAddRootSTLVToBuf [13:40:10]FM_MakeSignedData [13:40:10]FM_MakeSignedData [13:40:10]SAM_PROTO_SignData [13:40:10]wFMCommunicate request_size=4 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 0D 01 02 [13:40:10]Write to MH i2c: E2 08 00 10 0F 80 0D 01 02 00 00 00 00 98 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [13:40:10]RAPDU: 90 00 [13:40:10]wFMCommunicate OK [13:40:10]wFMCommunicate request_size=255 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BC FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C4 00 00 35 04 06 00 5D [13:40:10]Write to MH i2c: E2 02 01 11 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 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BC FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C4 00 00 35 04 06 00 5D 00 00 91 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [13:40:10]RAPDU: 90 00 [13:40:10]wFMCommunicate OK [13:40:10]wFMCommunicate request_size=10 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 0D 02 02 05 D9 3C B0 62 5B [13:40:10]Write to MH i2c: E2 0D 00 12 0F 80 0D 02 02 05 00 D9 3C B0 62 5B 00 00 27 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [13:40:10]RAPDU: 90 00 [13:40:10]wFMCommunicate OK [13:40:10]wFMCommunicate request_size=4 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 0D 03 02 [13:40:10]Write to MH i2c: E2 08 00 13 0F 80 0D 03 02 00 00 00 00 9D [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 0B 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 0B 00 13 0F 00 DB 2E 39 5B 41 64 52 D1 90 00 03 [13:40:10]RAPDU: DB 2E 39 5B 41 64 52 D1 90 00 [13:40:10]wFMCommunicate OK [13:40:10]SAM_PROTO_SignData done [13:40:10]FM_MakeSignedData done [13:40:10]CreateOFDProtocolMessage [13:40:10]wFMCommunicate request_size=4 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 11 00 00 [13:40:10]Write to MH i2c: E2 08 00 14 0F 80 11 00 00 00 00 00 00 9D [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:10]Read from MH i2c: E2 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 17 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: E2 17 00 14 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E4 [13:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:40:10]wFMCommunicate OK [13:40:10]CreateOFDProtocolMessage done [13:40:10]OFDSenderStorePacket 50303 [13:40:10]StoreOFDPacket docnum=50303 [13:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 8F 83 07 01 F1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BC FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C4 00 00 35 04 06 00 5D D9 3C B0 62 5B DB 2E 39 5B 41 64 52 D1 [13:40:10]CheckFolder [13:40:10]dirname=/storage/ofd_packets [13:40:10]CheckFolder done [13:40:10]ProducePacketName [13:40:10]name=ofd_packets/00050303 [13:40:10]NVStorageSaveData ofd_packets/00050303 [13:40:10]File name is /storage/ofd_packets/00050303 [13:40:10]Write 301 bytes [13:40:10]NVStorageSaveData done [13:40:10]OFDSenderStorePacket done [13:40:10]KKMCreateOFDPacket done [13:40:10]NVStorageSaveData kkm_last_timestamp [13:40:10]File name is /storage/kkm_last_timestamp [13:40:10]Write 4 bytes [13:40:10]NVStorageSaveData done [13:40:10]ExternCall_PrintAddStr [13:40:10]wPrintStart [13:40:10]Write to MH i2c: 01 00 00 15 0F 24 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 07 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 FF 0F 39 [13:40:10]RasterBufferAndPrint [13:40:10]line Счет N : (1)15441119 [13:40:10]line ИНН: 02508201610067 [13:40:10]line Контрольно-Кассовый Чек [13:40:10]line ПРОДАЖА [13:40:10]line ТРК (МРК, ГНК) : 43 [13:40:10]line Товар: 2710124130 [13:40:10]line Аи-92-К-4 [13:40:10]line 12.000 * 0.00 [13:40:10]line = 0.00 [13:40:10]line НДС 12% НСП 1% [13:40:10]line > о реализуемом товаре [13:40:10]line ИТОГО: 0.00 [13:40:10]line НСП 1% : 0.00 [13:40:10]line НДС 12% : 0.00 [13:40:10]line Наличными: 0.00 [13:40:10]line Безнал.: 0.00 [13:40:10]line Место: АЗС № 80 "Партнер Нефть" [13:40:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:40:10]line СНО: Общий режим [13:40:10]line Чек 48 23.10.2024 13:40 [13:40:10]line Смена: 491 ФФД: 1.0 [13:40:10]line ЗНМ: 0300000090 [13:40:10]line РНМ: 0000000000097022 [13:40:10]line Версия ККМ: 001 [13:40:10]line Талоны: Топливная Карта [13:40:10]line 3520 [13:40:10]line ФМ: 0000000000875000 [13:40:10]line ФД: 50303 [13:40:10]line ФПД: 103187607478875 [13:40:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134012&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50303&fm=103187607478875&tin=02508201610067®Number=0000000000097022&sum=0 [13:40:10]written 0, free lines is 4095 [13:40:10]OFD Sender: Processing packet 50303 [packets to send 7, broken 6] [13:40:10]ProducePacketName [13:40:10]name=ofd_packets/00050303 [13:40:10]OFD Sender: To server: pG, [13:40:10]CommunicateWithHost lk.salyk.kg:30040 [13:40:10]ConnectInit lk.salyk.kg [13:40:10]Connected sock=10 [13:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 8F 83 07 01 F1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BC FC 18 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C4 00 00 35 04 06 00 5D D9 3C B0 62 5B DB 2E 39 5B 41 64 52 D1 [13:40:10]Write to MH i2c: 01 00 00 3F 0F 4E [13:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C3 F0 47 00 D2 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C4 00 00 F4 03 04 00 53 A8 18 67 B6 04 01 00 00 8C 07 D8 83 C6 26 13 9B [13:40:10]CommunicateWithHost err = 0 [13:40:10]CheckOFDResponse [13:40:10]1017 (14) - 77093643461234 [13:40:10]1041 (16) - 0000000000875000 [13:40:10]1040 (4) - 50303 [13:40:10]1012 (4) - 23.10.2024 07:40 [13:40:10]1206 (1) - 0 [13:40:10]OFD Sender: Remove packet 50303 [13:40:10]ProducePacketName [13:40:10]name=ofd_packets/00050303 [13:40:10]NVStorageDeleteData [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 07 00 [13:40:10]MH_I2C_Read... [13:40:10]Read from MH i2c: 01 07 00 3F 0F 00 00 00 00 00 01 0D 63 [13:40:10]RasterBufferAndPrint [13:40:10]line [13:40:10]line [13:40:10]line [13:40:10]line [13:40:10]line [13:40:10]written 0, free lines is 3344 [13:40:10]process_action close_receipt done [13:40:10]requested_data is exist [13:40:10]produce_requested_data [13:40:11]requested_item fm.sn is exist - process it [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 11 00 00 [13:40:11]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 17 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 16 [13:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:40:11]wFMCommunicate OK [13:40:11]requested_item fd.num is exist - process it [13:40:11]SAM_PROTO_GetFieldsCounters [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 13 00 00 [13:40:11]Write to MH i2c: E2 08 00 47 0F 80 13 00 00 00 00 00 00 D2 [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 62 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 62 00 47 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [13:40:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:11]wFMCommunicate OK [13:40:11]SAM_PROTO_GetFieldsCounters done [13:40:11]requested_item shift.num is exist - process it [13:40:11]requested_item shift.opened is exist - process it [13:40:11]req_shift_opened [13:40:11]FM_GetShiftState [13:40:11]SAM_PROTO_GetShiftState [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 13 01 00 [13:40:11]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 0E 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 20 [13:40:11]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [13:40:11]wFMCommunicate OK [13:40:11]SAM_PROTO_GetShiftState done [13:40:11]FM_GetShiftState done [13:40:11]req_shift_opened done [13:40:11]requested_item shift.open_date is exist - process it [13:40:11]req_shift_open_date [13:40:11]req_shift_open_date done [13:40:11]produce_requested_data done [13:40:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50303,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [13:40:11]process_action_free close_receipt [13:40:11]json_value_free [13:40:11]json_value_free done [13:40:11]process_json_proto returns [13:40:11]Send response to host [13:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50303,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [13:40:11]free response buf [13:40:11]execute_script done [13:40:11]execute_script returns [13:40:11]free content buf [13:40:11]Sock 9.Close socket [13:40:11]Sock 9.Thread stoped [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58: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:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:34]accept exits with 7 [14:13:34]New connection [14:13:34]New thread 3067305316 created [14:13:34]Thread 3067161956 joined [14:13:34]Waiting for new connection... [14:13:34] Sock 7.Parse request [14:13:34]Sock 7.Check first char [14:13:34]Sock 7.First char is OK [14:13:34]request: POST /json_proto HTTP/1.0 [14:13:34]Method: POST [14:13:34]URL: /json_proto [14:13:34]Method is POST - this is cgi request [14:13:34]url: /json_proto [14:13:34]query_string will be loaded in cgi processing [14:13:34]execute_cgi json_proto POST (null) [14:13:34]execute_cgi path=json_proto method=POST [14:13:34]POST find Content-Length [14:13:34]Host: 172.17.49.196:8080 [14:13:34]Content-Length: 1115 [14:13:34]Content-Type: application/json [14:13:34] [14:13:34]POST finish read [14:13:34]Found Content-Length = 1115 [14:13:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164210", "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:34]execute_script... [14:13: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)164210", "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:34]POST & json_proto [14:13:34]process_json_proto [14:13:34]json parsed OK: [14:13:34]protocol is kg_v1.0 [14:13:34]action value=close_receipt [14:13:34]process_action close_receipt [14:13:34]cmd_close_receipt [14:13:34]MH_GetDate [14:13:34]Write to MH i2c: F0 00 00 49 0F 47 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: F0 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: F0 09 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: F0 09 00 49 0F 00 91 04 19 67 BD 3B 11 67 D5 [14:13:34]GetLastDocTimeStamp 1729690812 [14:13:34]current date 1729692817 [14:13:34]FM_GetShiftState [14:13:34]SAM_PROTO_GetShiftState [14:13:34]wFMCommunicate request_size=4 [14:13:34]MH_SAM_APDU [14:13:34]CAPDU: 80 13 01 00 [14:13:34]Write to MH i2c: E2 08 00 4A 0F 80 13 01 00 00 00 00 00 D6 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:34]Read from MH i2c: E2 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 0E 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 0E 00 4A 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 22 [14:13:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:13:34]wFMCommunicate OK [14:13:34]SAM_PROTO_GetShiftState done [14:13:34]FM_GetShiftState done [14:13:34]opened in 1729642370 [14:13:34]opened+sec_in_day 1729728770 [14:13:34]quantity*price = 15000 [14:13:34]sum+1 = 15001 [14:13:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 2.000 * 80.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.46 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 49 23.10.2024 14:13 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50304 ФПД: 178036628759344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141337&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50304&fm=178036628759344&tin=02508201610067®Number=0000000000097022&sum=39000 0 [14:13:35]StoreToDocumentArchive [14:13:35]shift 491 fd 50304 [14:13:35]save to /storage/0491/doc_00050304 [14:13:35]save last doc name /storage/0491/doc_00050304 to /storage/kkm_last_doc_name [14:13:35]save OK [14:13:35]Clear old archive folders... [14:13:35]ProcessDocumentItem done err = 0, tmpTLVsize=471 [14:13:35]tlvbuf is 00224D30 [14:13:35]SAM_PROTO_ClearQueue [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 09 00 00 [14:13:35]Write to MH i2c: E2 08 00 57 0F 80 09 00 00 00 00 00 00 D8 [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [14:13:35]RAPDU: 90 00 [14:13:35]wFMCommunicate OK [14:13:35]SAM_PROTO_ClearQueue done [14:13:35]KKMCreateOFDPacket [14:13:35]OFDProtocolAddRootSTLVToBuf [14:13:35]FM_MakeSignedData [14:13:35]FM_MakeSignedData [14:13:35]SAM_PROTO_SignData [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 0D 01 02 [14:13:35]Write to MH i2c: E2 08 00 58 0F 80 0D 01 02 00 00 00 00 E0 [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [14:13:35]RAPDU: 90 00 [14:13:35]wFMCommunicate OK [14:13:35]wFMCommunicate request_size=255 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 0D 02 02 FA 03 00 D7 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 [14:13:35]Write to MH i2c: E2 02 01 59 0F 80 0D 02 02 FA 00 03 00 D7 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 00 00 D1 [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [14:13:35]RAPDU: 90 00 [14:13:35]wFMCommunicate OK [14:13:35]wFMCommunicate request_size=230 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 0D 02 02 E1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 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 91 04 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C4 00 00 35 04 06 00 A1 EC 62 03 A3 30 [14:13:35]Write to MH i2c: E2 E9 00 5A 0F 80 0D 02 02 E1 00 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 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 91 04 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C4 00 00 35 04 06 00 A1 EC 62 03 A3 30 00 00 00 [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:36]Read from MH i2c: E2 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 03 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [14:13:36]RAPDU: 90 00 [14:13:36]wFMCommunicate OK [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 0D 03 02 [14:13:36]Write to MH i2c: E2 08 00 5B 0F 80 0D 03 02 00 00 00 00 E5 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:36]Read from MH i2c: E2 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 0B 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 0B 00 5B 0F 00 FF 49 D5 7F 7B E0 FC 0D 90 00 E6 [14:13:36]RAPDU: FF 49 D5 7F 7B E0 FC 0D 90 00 [14:13:36]wFMCommunicate OK [14:13:36]SAM_PROTO_SignData done [14:13:36]FM_MakeSignedData done [14:13:36]CreateOFDProtocolMessage [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 11 00 00 [14:13:36]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:36]Read from MH i2c: E2 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 17 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2C [14:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:13:36]wFMCommunicate OK [14:13:36]CreateOFDProtocolMessage done [14:13:36]OFDSenderStorePacket 50304 [14:13:36]StoreOFDPacket docnum=50304 [14:13:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 EB 01 00 00 84 EB E3 01 94 A4 5A 03 01 00 03 00 D7 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 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 91 04 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C4 00 00 35 04 06 00 A1 EC 62 03 A3 30 FF 49 D5 7F 7B E0 FC 0D [14:13:36]CheckFolder [14:13:36]dirname=/storage/ofd_packets [14:13:36]CheckFolder done [14:13:36]ProducePacketName [14:13:36]name=ofd_packets/00050304 [14:13:36]NVStorageSaveData ofd_packets/00050304 [14:13:36]File name is /storage/ofd_packets/00050304 [14:13:36]Write 521 bytes [14:13:36]NVStorageSaveData done [14:13:36]OFDSenderStorePacket done [14:13:36]KKMCreateOFDPacket done [14:13:36]NVStorageSaveData kkm_last_timestamp [14:13:36]File name is /storage/kkm_last_timestamp [14:13:36]Write 4 bytes [14:13:36]NVStorageSaveData done [14:13:36]ExternCall_PrintAddStr [14:13:36]wPrintStart [14:13:36]Write to MH i2c: 01 00 00 5D 0F 6C [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: 01 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: 01 07 00 [14:13:36]MH_I2C_Read... [14:13:36]OFD Sender: Processing packet 50304 [packets to send 7, broken 6] [14:13:36]ProducePacketName [14:13:36]name=ofd_packets/00050304 [14:13:36]OFD Sender: To server: pG, [14:13:36]CommunicateWithHost lk.salyk.kg:30040 [14:13:36]ConnectInit lk.salyk.kg [14:13:36]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [14:13:36]RasterBufferAndPrint [14:13:36]line Счет N : (3)164210 [14:13:36]line ИНН: 02508201610067 [14:13:36]line Контрольно-Кассовый Чек [14:13:36]line ПРОДАЖА [14:13:36]line Товар: 40822938 [14:13:36]line Напиток Фанта 0,5л [14:13:36]line 2.000 * 75.00 [14:13:36]line = 150.00 [14:13:36]line НДС 12% НСП 1% [14:13:36]line > о реализуемом товаре [14:13:36]line Товар: 4870001570057 [14:13:36]line Напиток Pepsi 0,5л [14:13:36]line 2.000 * 80.00 [14:13:36]line = 160.00 [14:13:36]line НДС 12% НСП 1% [14:13:36]line > о реализуемом товаре [14:13:36]line Товар: 50173372 [14:13:36]line Жев Orbit для детей Classic [14:13:36]line 2.000 * 40.00 [14:13:36]line = 80.00 [14:13:36]line НДС 12% НСП 1% [14:13:36]line > о реализуемом товаре [14:13:36]line ИТОГО: 390.00 [14:13:36]line НСП 1% : 3.46 [14:13:36]line НДС 12% : 41.42 [14:13:36]line Наличными: 390.00 [14:13:36]line Безнал.: 0.00 [14:13:36]line Место: АЗС № 80 "Партнер Нефть" [14:13:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:13:36]line СНО: Общий режим [14:13:36]line Чек 49 23.10.2024 14:13 [14:13:36]line Смена: 491 ФФД: 1.0 [14:13:36]line ЗНМ: 0300000090 [14:13:36]line РНМ: 0000000000097022 [14:13:36]line Версия ККМ: 001 [14:13:36]line ФМ: 0000000000875000 [14:13:36]line ФД: 50304 [14:13:36]line ФПД: 178036628759344 [14:13:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141337&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50304&fm=178036628759344&tin=02508201610067®Number=0000000000097022&sum=39000 [14:13:36]line 0 [14:13:36]written 0, free lines is 4095 [14:13:36]Connected sock=10 [14:13:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 EB 01 00 00 84 EB E3 01 94 A4 5A 03 01 00 03 00 D7 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 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 91 04 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C4 00 00 35 04 06 00 A1 EC 62 03 A3 30 FF 49 D5 7F 7B E0 FC 0D [14:13:36]Write to MH i2c: 01 00 00 91 0F A0 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: 01 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: 01 07 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 87 0C 3A [14:13:36]RasterBufferAndPrint [14:13:36]line [14:13:36]line [14:13:36]line [14:13:36]line [14:13:36]line [14:13:36]written 0, free lines is 3217 [14:13:36]process_action close_receipt done [14:13:36]requested_data is exist [14:13:36]produce_requested_data [14:13:36]requested_item fm.sn is exist - process it [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 11 00 00 [14:13:36]Write to MH i2c: E2 08 00 98 0F 80 11 00 00 00 00 00 00 21 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CA 55 47 00 DB 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C4 00 00 F4 03 04 00 29 B0 18 67 B6 04 01 00 00 0A AE 82 FB 84 54 14 E5 [14:13:36]CommunicateWithHost err = 0 [14:13:36]CheckOFDResponse [14:13:36]1017 (14) - 77093643461234 [14:13:36]1041 (16) - 0000000000875000 [14:13:36]1040 (4) - 50304 [14:13:36]1012 (4) - 23.10.2024 08:13 [14:13:36]1206 (1) - 0 [14:13:36]OFD Sender: Remove packet 50304 [14:13:36]ProducePacketName [14:13:36]name=ofd_packets/00050304 [14:13:36]NVStorageDeleteData [14:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:36]Read from MH i2c: E2 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 17 00 [14:13:36]MH_I2C_Read... [14:13:36]Read from MH i2c: E2 17 00 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 68 [14:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:13:36]wFMCommunicate OK [14:13:36]requested_item fd.num is exist - process it [14:13:36]SAM_PROTO_GetFieldsCounters [14:13:36]wFMCommunicate request_size=4 [14:13:36]MH_SAM_APDU [14:13:36]CAPDU: 80 13 00 00 [14:13:36]Write to MH i2c: E2 08 00 99 0F 80 13 00 00 00 00 00 00 24 [14:13:36]Write i2c OK [14:13:36]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 62 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 62 00 99 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 80 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 80 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:37]wFMCommunicate OK [14:13:37]SAM_PROTO_GetFieldsCounters done [14:13:37]requested_item shift.num is exist - process it [14:13:37]requested_item shift.opened is exist - process it [14:13:37]req_shift_opened [14:13:37]FM_GetShiftState [14:13:37]SAM_PROTO_GetShiftState [14:13:37]wFMCommunicate request_size=4 [14:13:37]MH_SAM_APDU [14:13:37]CAPDU: 80 13 01 00 [14:13:37]Write to MH i2c: E2 08 00 9A 0F 80 13 01 00 00 00 00 00 26 [14:13:37]Write i2c OK [14:13:37]MH_I2C_Read... [14:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:37]Read from MH i2c: E2 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 0E 00 [14:13:37]MH_I2C_Read... [14:13:37]Read from MH i2c: E2 0E 00 9A 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 72 [14:13:37]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:13:37]wFMCommunicate OK [14:13:37]SAM_PROTO_GetShiftState done [14:13:37]FM_GetShiftState done [14:13:37]req_shift_opened done [14:13:37]requested_item shift.open_date is exist - process it [14:13:37]req_shift_open_date [14:13:37]req_shift_open_date done [14:13:37]produce_requested_data done [14:13:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50304,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [14:13:37]process_action_free close_receipt [14:13:37]json_value_free [14:13:37]json_value_free done [14:13:37]process_json_proto returns [14:13:37]Send response to host [14:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50304,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [14:13:37]free response buf [14:13:37]execute_script done [14:13:37]execute_script returns [14:13:37]free content buf [14:13:37]Sock 7.Close socket [14:13:37]Sock 7.Thread stoped [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:34]accept exits with 9 [14:16:34]New connection [14:16:34]New thread 3067161956 created [14:16:34]Thread 3067305316 joined [14:16:34]Waiting for new connection... [14:16:34] Sock 9.Parse request [14:16:34]Sock 9.Check first char [14:16:34]Sock 9.First char is OK [14:16:34]request: POST /json_proto HTTP/1.0 [14:16:34]Method: POST [14:16:34]URL: /json_proto [14:16:34]Method is POST - this is cgi request [14:16:34]url: /json_proto [14:16:34]query_string will be loaded in cgi processing [14:16:34]execute_cgi json_proto POST (null) [14:16:34]execute_cgi path=json_proto method=POST [14:16:34]POST find Content-Length [14:16:34]Host: 172.17.49.196:8080 [14:16:34]Content-Length: 917 [14:16:34]Content-Type: application/json [14:16:34] [14:16:34]POST finish read [14:16:34]Found Content-Length = 917 [14:16:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164211", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:34]execute_script... [14:16: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)164211", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:34]POST & json_proto [14:16:34]process_json_proto [14:16:34]json parsed OK: [14:16:34]protocol is kg_v1.0 [14:16:34]action value=close_receipt [14:16:34]process_action close_receipt [14:16:34]cmd_close_receipt [14:16:34]MH_GetDate [14:16:34]Write to MH i2c: F0 00 00 9B 0F 99 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: F0 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: F0 09 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: F0 09 00 9B 0F 00 46 05 19 67 BD 3B 11 67 DD [14:16:34]GetLastDocTimeStamp 1729692817 [14:16:34]current date 1729692998 [14:16:34]FM_GetShiftState [14:16:34]SAM_PROTO_GetShiftState [14:16:34]wFMCommunicate request_size=4 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 13 01 00 [14:16:34]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0E 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 74 [14:16:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:16:34]wFMCommunicate OK [14:16:34]SAM_PROTO_GetShiftState done [14:16:34]FM_GetShiftState done [14:16:34]opened in 1729642370 [14:16:34]opened+sec_in_day 1729728770 [14:16:34]quantity*price = 8600 [14:16:34]sum+1 = 8601 [14:16:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 201.00 НСП 1% : 1.78 НДС 12% : 21.34 Наличными: 201.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 50 23.10.2024 14:16 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50305 ФПД: 101433426485925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50305&fm=101433426485925&tin=02508201610067®Number=0000000000097022&sum=20100 0 [14:16:35]StoreToDocumentArchive [14:16:35]shift 491 fd 50305 [14:16:35]save to /storage/0491/doc_00050305 [14:16:35]save last doc name /storage/0491/doc_00050305 to /storage/kkm_last_doc_name [14:16:35]save OK [14:16:35]Clear old archive folders... [14:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=393 [14:16:35]tlvbuf is 000FFAA0 [14:16:35]SAM_PROTO_ClearQueue [14:16:35]wFMCommunicate request_size=4 [14:16:35]MH_SAM_APDU [14:16:35]CAPDU: 80 09 00 00 [14:16:35]Write to MH i2c: E2 08 00 A9 0F 80 09 00 00 00 00 00 00 2A [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:35]Read from MH i2c: E2 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: E2 03 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [14:16:35]RAPDU: 90 00 [14:16:35]wFMCommunicate OK [14:16:35]SAM_PROTO_ClearQueue done [14:16:35]KKMCreateOFDPacket [14:16:35]OFDProtocolAddRootSTLVToBuf [14:16:35]FM_MakeSignedData [14:16:35]FM_MakeSignedData [14:16:35]SAM_PROTO_SignData [14:16:35]wFMCommunicate request_size=4 [14:16:35]MH_SAM_APDU [14:16:35]CAPDU: 80 0D 01 02 [14:16:35]Write to MH i2c: E2 08 00 AA 0F 80 0D 01 02 00 00 00 00 32 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:35]Read from MH i2c: E2 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: E2 03 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [14:16:35]RAPDU: 90 00 [14:16:35]wFMCommunicate OK [14:16:35]wFMCommunicate request_size=255 [14:16:35]MH_SAM_APDU [14:16:35]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 [14:16:35]Write to MH i2c: E2 02 01 AB 0F 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 A2 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 03 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [14:16:36]RAPDU: 90 00 [14:16:36]wFMCommunicate OK [14:16:36]wFMCommunicate request_size=152 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 05 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C4 00 00 35 04 06 00 5C 40 CF 5A A2 A5 [14:16:36]Write to MH i2c: E2 9B 00 AC 0F 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 05 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C4 00 00 35 04 06 00 5C 40 CF 5A A2 A5 00 00 8E [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 03 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [14:16:36]RAPDU: 90 00 [14:16:36]wFMCommunicate OK [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 0D 03 02 [14:16:36]Write to MH i2c: E2 08 00 AD 0F 80 0D 03 02 00 00 00 00 37 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0B 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0B 00 AD 0F 00 4B 68 73 0A 99 75 1C 3C 90 00 CE [14:16:36]RAPDU: 4B 68 73 0A 99 75 1C 3C 90 00 [14:16:36]wFMCommunicate OK [14:16:36]SAM_PROTO_SignData done [14:16:36]FM_MakeSignedData done [14:16:36]CreateOFDProtocolMessage [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 11 00 00 [14:16:36]Write to MH i2c: E2 08 00 AE 0F 80 11 00 00 00 00 00 00 37 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 AE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7E [14:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:16:36]wFMCommunicate OK [14:16:36]CreateOFDProtocolMessage done [14:16:36]OFDSenderStorePacket 50305 [14:16:36]StoreOFDPacket docnum=50305 [14:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9D 01 00 00 55 A8 95 01 6D CD 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 05 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C4 00 00 35 04 06 00 5C 40 CF 5A A2 A5 4B 68 73 0A 99 75 1C 3C [14:16:36]CheckFolder [14:16:36]dirname=/storage/ofd_packets [14:16:36]CheckFolder done [14:16:36]ProducePacketName [14:16:36]name=ofd_packets/00050305 [14:16:36]NVStorageSaveData ofd_packets/00050305 [14:16:36]File name is /storage/ofd_packets/00050305 [14:16:36]Write 443 bytes [14:16:36]NVStorageSaveData done [14:16:36]OFDSenderStorePacket done [14:16:36]KKMCreateOFDPacket done [14:16:36]NVStorageSaveData kkm_last_timestamp [14:16:36]File name is /storage/kkm_last_timestamp [14:16:36]Write 4 bytes [14:16:36]NVStorageSaveData done [14:16:36]ExternCall_PrintAddStr [14:16:36]wPrintStart [14:16:36]Write to MH i2c: 01 00 00 AF 0F BE [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: 01 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: 01 07 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [14:16:36]RasterBufferAndPrint [14:16:36]line Счет N : (3)164211 [14:16:36]line ИНН: 02508201610067 [14:16:36]line Контрольно-Кассовый Чек [14:16:36]line ПРОДАЖА [14:16:36]line Товар: 4603290004831 [14:16:36]line Печ.зат.TONDI Сэнд.шок.вк. [14:16:36]line 1.000 * 86.00 [14:16:36]line = 86.00 [14:16:36]line НДС 12% НСП 1% [14:16:36]line > о реализуемом товаре [14:16:36]line Товар: 2000036210013 [14:16:36]line Кофе Капучино (GABB TRADE) [14:16:36]line 1.000 * 115.00 [14:16:36]line = 115.00 [14:16:36]line НДС 12% НСП 1% [14:16:36]line > о реализуемом товаре [14:16:36]line ИТОГО: 201.00 [14:16:36]line НСП 1% : 1.78 [14:16:36]line НДС 12% : 21.34 [14:16:36]line Наличными: 201.00 [14:16:36]line Безнал.: 0.00 [14:16:36]line Место: АЗС № 80 "Партнер Нефть" [14:16:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:16:36]line СНО: Общий режим [14:16:36]line Чек 50 23.10.2024 14:16 [14:16:36]line Смена: 491 ФФД: 1.0 [14:16:36]line ЗНМ: 0300000090 [14:16:36]line РНМ: 0000000000097022 [14:16:36]line Версия ККМ: 001 [14:16:36]line ФМ: 0000000000875000 [14:16:36]line ФД: 50305 [14:16:36]line ФПД: 101433426485925 [14:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50305&fm=101433426485925&tin=02508201610067®Number=0000000000097022&sum=20100 [14:16:36]line 0 [14:16:36]OFD Sender: Processing packet 50305 [packets to send 7, broken 6] [14:16:36]ProducePacketName [14:16:36]name=ofd_packets/00050305 [14:16:36]OFD Sender: To server: pG, [14:16:36]CommunicateWithHost lk.salyk.kg:30040 [14:16:36]ConnectInit lk.salyk.kg [14:16:36]written 0, free lines is 4095 [14:16:36]Connected sock=10 [14:16:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9D 01 00 00 55 A8 95 01 6D CD 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 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 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 05 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C4 00 00 35 04 06 00 5C 40 CF 5A A2 A5 4B 68 73 0A 99 75 1C 3C [14:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 70 16 47 00 57 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C4 00 00 F4 03 04 00 DD B0 18 67 B6 04 01 00 00 D4 BF DD 47 25 E4 76 85 [14:16:37]CommunicateWithHost err = 0 [14:16:37]CheckOFDResponse [14:16:37]1017 (14) - 77093643461234 [14:16:37]1041 (16) - 0000000000875000 [14:16:37]1040 (4) - 50305 [14:16:37]1012 (4) - 23.10.2024 08:16 [14:16:37]1206 (1) - 0 [14:16:37]OFD Sender: Remove packet 50305 [14:16:37]ProducePacketName [14:16:37]name=ofd_packets/00050305 [14:16:37]NVStorageDeleteData [14:16:37]Write to MH i2c: 01 00 00 DD 0F EC [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: 01 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: 01 07 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 01 0D 01 [14:16:37]RasterBufferAndPrint [14:16:37]line [14:16:37]line [14:16:37]line [14:16:37]line [14:16:37]line [14:16:37]written 0, free lines is 3338 [14:16:37]process_action close_receipt done [14:16:37]requested_data is exist [14:16:37]produce_requested_data [14:16:37]requested_item fm.sn is exist - process it [14:16:37]wFMCommunicate request_size=4 [14:16:37]MH_SAM_APDU [14:16:37]CAPDU: 80 11 00 00 [14:16:37]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:37]Read from MH i2c: E2 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 17 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B4 [14:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:16:37]wFMCommunicate OK [14:16:37]requested_item fd.num is exist - process it [14:16:37]SAM_PROTO_GetFieldsCounters [14:16:37]wFMCommunicate request_size=4 [14:16:37]MH_SAM_APDU [14:16:37]CAPDU: 80 13 00 00 [14:16:37]Write to MH i2c: E2 08 00 E5 0F 80 13 00 00 00 00 00 00 70 [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:37]Read from MH i2c: E2 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 62 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 62 00 E5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 81 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [14:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 81 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:37]wFMCommunicate OK [14:16:37]SAM_PROTO_GetFieldsCounters done [14:16:37]requested_item shift.num is exist - process it [14:16:37]requested_item shift.opened is exist - process it [14:16:37]req_shift_opened [14:16:37]FM_GetShiftState [14:16:37]SAM_PROTO_GetShiftState [14:16:37]wFMCommunicate request_size=4 [14:16:37]MH_SAM_APDU [14:16:37]CAPDU: 80 13 01 00 [14:16:37]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:37]OFD Sender: No OFD packet to send [14:16:37]Read from MH i2c: E2 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 0E 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 BE [14:16:37]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:16:37]wFMCommunicate OK [14:16:37]SAM_PROTO_GetShiftState done [14:16:37]FM_GetShiftState done [14:16:37]req_shift_opened done [14:16:37]requested_item shift.open_date is exist - process it [14:16:37]req_shift_open_date [14:16:37]req_shift_open_date done [14:16:37]produce_requested_data done [14:16:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50305,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [14:16:37]process_action_free close_receipt [14:16:37]json_value_free [14:16:37]json_value_free done [14:16:37]process_json_proto returns [14:16:37]Send response to host [14:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50305,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [14:16:37]free response buf [14:16:37]execute_script done [14:16:37]execute_script returns [14:16:37]free content buf [14:16:37]Sock 9.Close socket [14:16:37]Sock 9.Thread stoped [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:11]accept exits with 7 [14:40:11]New connection [14:40:11]New thread 3067305316 created [14:40:11]Thread 3067161956 joined [14:40:11]Waiting for new connection... [14:40:11] Sock 7.Parse request [14:40:11]Sock 7.Check first char [14:40:11]Sock 7.First char is OK [14:40:11]request: POST /json_proto HTTP/1.0 [14:40:11]Method: POST [14:40:11]URL: /json_proto [14:40:11]Method is POST - this is cgi request [14:40:11]url: /json_proto [14:40:11]query_string will be loaded in cgi processing [14:40:11]execute_cgi json_proto POST (null) [14:40:11]execute_cgi path=json_proto method=POST [14:40:11]POST find Content-Length [14:40:11]Host: 172.17.49.196:8080 [14:40:11]Content-Length: 620 [14:40:11]Content-Type: application/json [14:40:11] [14:40:11]POST finish read [14:40:11]Found Content-Length = 620 [14:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164212", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:11]execute_script... [14:40: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)164212", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:11]POST & json_proto [14:40:11]process_json_proto [14:40:11]json parsed OK: [14:40:11]protocol is kg_v1.0 [14:40:11]action value=close_receipt [14:40:11]process_action close_receipt [14:40:11]cmd_close_receipt [14:40:11]MH_GetDate [14:40:11]Write to MH i2c: F0 00 00 E7 0F E5 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 09 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 09 00 E7 0F 00 CE 0A 19 67 BD 3B 11 67 B6 [14:40:11]GetLastDocTimeStamp 1729692998 [14:40:11]current date 1729694414 [14:40:11]FM_GetShiftState [14:40:11]SAM_PROTO_GetShiftState [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 13 01 00 [14:40:11]Write to MH i2c: E2 08 00 E8 0F 80 13 01 00 00 00 00 00 74 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0E 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0E 00 E8 0F 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C0 [14:40:11]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:40:11]wFMCommunicate OK [14:40:11]SAM_PROTO_GetShiftState done [14:40:11]FM_GetShiftState done [14:40:11]opened in 1729642370 [14:40:11]opened+sec_in_day 1729728770 [14:40:11]quantity*price = 13900 [14:40:11]sum+1 = 13901 [14:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 51 23.10.2024 14:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50306 ФПД: 278962359669959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144014&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50306&fm=278962359669959&tin=02508201610067®Number=0000000000097022&sum=13900 0 [14:40:12]StoreToDocumentArchive [14:40:12]shift 491 fd 50306 [14:40:12]save to /storage/0491/doc_00050306 [14:40:12]save last doc name /storage/0491/doc_00050306 to /storage/kkm_last_doc_name [14:40:12]save OK [14:40:12]Clear old archive folders... [14:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:40:12]tlvbuf is 0010E810 [14:40:12]SAM_PROTO_ClearQueue [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 09 00 00 [14:40:12]Write to MH i2c: E2 08 00 F5 0F 80 09 00 00 00 00 00 00 76 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]SAM_PROTO_ClearQueue done [14:40:12]KKMCreateOFDPacket [14:40:12]OFDProtocolAddRootSTLVToBuf [14:40:12]FM_MakeSignedData [14:40:12]FM_MakeSignedData [14:40:12]SAM_PROTO_SignData [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 01 02 [14:40:12]Write to MH i2c: E2 08 00 F6 0F 80 0D 01 02 00 00 00 00 7E [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=255 [14:40:12]MH_SAM_APDU [14:40:12]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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 33 00 00 00 F4 03 04 00 CE 0A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [14:40:12]Write to MH i2c: E2 02 01 F7 0F 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 33 00 00 00 F4 03 04 00 CE 0A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 21 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=31 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 82 C4 00 00 35 04 06 00 FD B6 FC 5A 94 C7 [14:40:12]Write to MH i2c: E2 22 00 F8 0F 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 82 C4 00 00 35 04 06 00 FD B6 FC 5A 94 C7 00 00 4A [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 03 02 [14:40:12]Write to MH i2c: E2 08 00 F9 0F 80 0D 03 02 00 00 00 00 83 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0B 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0B 00 F9 0F 00 5C 4C 2F 95 15 2E 62 E8 90 00 7D [14:40:13]RAPDU: 5C 4C 2F 95 15 2E 62 E8 90 00 [14:40:13]wFMCommunicate OK [14:40:13]SAM_PROTO_SignData done [14:40:13]FM_MakeSignedData done [14:40:13]CreateOFDProtocolMessage [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 11 00 00 [14:40:13]Write to MH i2c: E2 08 00 FA 0F 80 11 00 00 00 00 00 00 83 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 FA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CA [14:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:40:13]wFMCommunicate OK [14:40:13]CreateOFDProtocolMessage done [14:40:13]OFDSenderStorePacket 50306 [14:40:13]StoreOFDPacket docnum=50306 [14:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 AA 77 1C 01 61 2B 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 33 00 00 00 F4 03 04 00 CE 0A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C4 00 00 35 04 06 00 FD B6 FC 5A 94 C7 5C 4C 2F 95 15 2E 62 E8 [14:40:13]CheckFolder [14:40:13]dirname=/storage/ofd_packets [14:40:13]CheckFolder done [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00050306 [14:40:13]NVStorageSaveData ofd_packets/00050306 [14:40:13]File name is /storage/ofd_packets/00050306 [14:40:13]Write 322 bytes [14:40:13]NVStorageSaveData done [14:40:13]OFDSenderStorePacket done [14:40:13]KKMCreateOFDPacket done [14:40:13]NVStorageSaveData kkm_last_timestamp [14:40:13]File name is /storage/kkm_last_timestamp [14:40:13]Write 4 bytes [14:40:13]NVStorageSaveData done [14:40:13]ExternCall_PrintAddStr [14:40:13]wPrintStart [14:40:13]Write to MH i2c: 01 00 00 FB 0F 0A [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 FB 0F 00 00 00 00 00 FF 0F 1F [14:40:13]RasterBufferAndPrint [14:40:13]line Счет N : (3)164212 [14:40:13]line ИНН: 02508201610067 [14:40:13]line Контрольно-Кассовый Чек [14:40:13]line ПРОДАЖА [14:40:13]line Товар: 48745000 [14:40:13]line Сигареты Winston Purple Mix [14:40:13]line 1.000 * 139.00 [14:40:13]line = 139.00 [14:40:13]line НДС 12% НСП 1% [14:40:13]line > о реализуемом товаре [14:40:13]line ИТОГО: 139.00 [14:40:13]line НСП 1% : 1.23 [14:40:13]line НДС 12% : 14.76 [14:40:13]line Наличными: 139.00 [14:40:13]line Безнал.: 0.00 [14:40:13]line Место: АЗС № 80 "Партнер Нефть" [14:40:13]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:40:13]line СНО: Общий режим [14:40:13]line Чек 51 23.10.2024 14:40 [14:40:13]line Смена: 491 ФФД: 1.0 [14:40:13]line ЗНМ: 0300000090 [14:40:13]line РНМ: 0000000000097022 [14:40:13]line Версия ККМ: 001 [14:40:13]line ФМ: 0000000000875000 [14:40:13]line ФД: 50306 [14:40:13]line ФПД: 278962359669959 [14:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144014&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50306&fm=278962359669959&tin=02508201610067®Number=0000000000097022&sum=13900 [14:40:13]line 0 [14:40:13]OFD Sender: Processing packet 50306 [packets to send 7, broken 6] [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00050306 [14:40:13]OFD Sender: To server: pG, [14:40:13]CommunicateWithHost lk.salyk.kg:30040 [14:40:13]ConnectInit lk.salyk.kg [14:40:13]written 0, free lines is 4095 [14:40:13]Connected sock=10 [14:40:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 AA 77 1C 01 61 2B 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 33 00 00 00 F4 03 04 00 CE 0A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C4 00 00 35 04 06 00 FD B6 FC 5A 94 C7 5C 4C 2F 95 15 2E 62 E8 [14:40:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 94 F4 47 00 76 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C4 00 00 F4 03 04 00 65 B6 18 67 B6 04 01 00 00 29 C1 DC 1E BC EE 4D D5 [14:40:13]CommunicateWithHost err = 0 [14:40:13]CheckOFDResponse [14:40:13]1017 (14) - 77093643461234 [14:40:13]1041 (16) - 0000000000875000 [14:40:13]1040 (4) - 50306 [14:40:13]1012 (4) - 23.10.2024 08:40 [14:40:13]1206 (1) - 0 [14:40:13]OFD Sender: Remove packet 50306 [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00050306 [14:40:13]NVStorageDeleteData [14:40:13]Write to MH i2c: 01 00 00 23 10 33 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 16 0D 5D [14:40:13]RasterBufferAndPrint [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]written 0, free lines is 3356 [14:40:13]process_action close_receipt done [14:40:13]requested_data is exist [14:40:13]produce_requested_data [14:40:13]requested_item fm.sn is exist - process it [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 11 00 00 [14:40:13]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FB [14:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:40:13]wFMCommunicate OK [14:40:13]requested_item fd.num is exist - process it [14:40:13]SAM_PROTO_GetFieldsCounters [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 13 00 00 [14:40:13]Write to MH i2c: E2 08 00 2B 10 80 13 00 00 00 00 00 00 B7 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 2B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 82 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 82 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetFieldsCounters done [14:40:14]requested_item shift.num is exist - process it [14:40:14]requested_item shift.opened is exist - process it [14:40:14]req_shift_opened [14:40:14]FM_GetShiftState [14:40:14]SAM_PROTO_GetShiftState [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 01 00 [14:40:14]Write to MH i2c: E2 08 00 2C 10 80 13 01 00 00 00 00 00 B9 [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 2C 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 05 [14:40:14]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetShiftState done [14:40:14]FM_GetShiftState done [14:40:14]req_shift_opened done [14:40:14]requested_item shift.open_date is exist - process it [14:40:14]req_shift_open_date [14:40:14]req_shift_open_date done [14:40:14]produce_requested_data done [14:40:14]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50306,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [14:40:14]process_action_free close_receipt [14:40:14]json_value_free [14:40:14]json_value_free done [14:40:14]process_json_proto returns [14:40:14]Send response to host [14:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50306,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [14:40:14]free response buf [14:40:14]execute_script done [14:40:14]execute_script returns [14:40:14]free content buf [14:40:14]Sock 7.Close socket [14:40:14]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:50]accept exits with 9 [14:44:50]New connection [14:44:50]New thread 3067161956 created [14:44:50]Thread 3067305316 joined [14:44:50]Waiting for new connection... [14:44:50] Sock 9.Parse request [14:44:50]Sock 9.Check first char [14:44:50]Sock 9.First char is OK [14:44:50]request: POST /json_proto HTTP/1.0 [14:44:50]Method: POST [14:44:50]URL: /json_proto [14:44:50]Method is POST - this is cgi request [14:44:50]url: /json_proto [14:44:50]query_string will be loaded in cgi processing [14:44:50]execute_cgi json_proto POST (null) [14:44:50]execute_cgi path=json_proto method=POST [14:44:50]POST find Content-Length [14:44:50]Host: 172.17.49.196:8080 [14:44:50]Content-Length: 747 [14:44:50]Content-Type: application/json [14:44:50] [14:44:50]POST finish read [14:44:50]Found Content-Length = 747 [14:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164213", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.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: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:50]execute_script... [14:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164213", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.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: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:50]POST & json_proto [14:44:50]process_json_proto [14:44:50]json parsed OK: [14:44:50]protocol is kg_v1.0 [14:44:50]action value=close_receipt [14:44:50]process_action close_receipt [14:44:50]cmd_close_receipt [14:44:50]MH_GetDate [14:44:50]Write to MH i2c: F0 00 00 2D 10 2C [14:44:50]Write i2c OK [14:44:50]MH_I2C_Read... [14:44:50]Read from MH i2c: F0 [14:44:50]MH_I2C_Read... [14:44:50]Read from MH i2c: F0 09 00 [14:44:50]MH_I2C_Read... [14:44:50]Read from MH i2c: F0 09 00 2D 10 00 E6 0B 19 67 BD 3B 11 67 16 [14:44:50]GetLastDocTimeStamp 1729694414 [14:44:50]current date 1729694694 [14:44:50]FM_GetShiftState [14:44:50]SAM_PROTO_GetShiftState [14:44:50]wFMCommunicate request_size=4 [14:44:50]MH_SAM_APDU [14:44:50]CAPDU: 80 13 01 00 [14:44:50]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [14:44:50]Write i2c OK [14:44:50]MH_I2C_Read... [14:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:50]Read from MH i2c: E2 [14:44:50]MH_I2C_Read... [14:44:50]Read from MH i2c: E2 0E 00 [14:44:50]MH_I2C_Read... [14:44:50]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 07 [14:44:50]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:44:50]wFMCommunicate OK [14:44:50]SAM_PROTO_GetShiftState done [14:44:50]FM_GetShiftState done [14:44:50]opened in 1729642370 [14:44:50]opened+sec_in_day 1729728770 [14:44:50]quantity*price = 13900 [14:44:50]sum+1 = 13901 [14:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 52 23.10.2024 14:44 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50307 ФПД: 86232910997097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144454&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50307&fm=86232910997097&tin=02508201610067®Number=0000000000097022&sum=13900 0 [14:44:51]StoreToDocumentArchive [14:44:51]shift 491 fd 50307 [14:44:51]save to /storage/0491/doc_00050307 [14:44:51]save last doc name /storage/0491/doc_00050307 to /storage/kkm_last_doc_name [14:44:51]save OK [14:44:51]Clear old archive folders... [14:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:44:51]tlvbuf is 00228190 [14:44:51]SAM_PROTO_ClearQueue [14:44:51]wFMCommunicate request_size=4 [14:44:51]MH_SAM_APDU [14:44:51]CAPDU: 80 09 00 00 [14:44:51]Write to MH i2c: E2 08 00 3B 10 80 09 00 00 00 00 00 00 BD [14:44:51]Write i2c OK [14:44:51]MH_I2C_Read... [14:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:51]Read from MH i2c: E2 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 03 00 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [14:44:51]RAPDU: 90 00 [14:44:51]wFMCommunicate OK [14:44:51]SAM_PROTO_ClearQueue done [14:44:51]KKMCreateOFDPacket [14:44:51]OFDProtocolAddRootSTLVToBuf [14:44:51]FM_MakeSignedData [14:44:51]FM_MakeSignedData [14:44:51]SAM_PROTO_SignData [14:44:51]wFMCommunicate request_size=4 [14:44:51]MH_SAM_APDU [14:44:51]CAPDU: 80 0D 01 02 [14:44:51]Write to MH i2c: E2 08 00 3C 10 80 0D 01 02 00 00 00 00 C5 [14:44:51]Write i2c OK [14:44:51]MH_I2C_Read... [14:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:51]Read from MH i2c: E2 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 03 00 [14:44:51]MH_I2C_Read... [14:44:51]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [14:44:51]RAPDU: 90 00 [14:44:51]wFMCommunicate OK [14:44:51]wFMCommunicate request_size=255 [14:44:51]MH_SAM_APDU [14:44:51]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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 0B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [14:44:51]Write to MH i2c: E2 02 01 3D 10 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 0B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 82 [14:44:51]Write i2c OK [14:44:51]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]wFMCommunicate request_size=31 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 83 C4 00 00 35 04 06 00 4E 6D AA 07 26 69 [14:44:52]Write to MH i2c: E2 22 00 3E 10 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 83 C4 00 00 35 04 06 00 4E 6D AA 07 26 69 00 00 29 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [14:44:52]RAPDU: 90 00 [14:44:52]wFMCommunicate OK [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 0D 03 02 [14:44:52]Write to MH i2c: E2 08 00 3F 10 80 0D 03 02 00 00 00 00 CA [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 0B 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 0B 00 3F 10 00 F9 1C 55 79 F8 74 D6 EA 90 00 DA [14:44:52]RAPDU: F9 1C 55 79 F8 74 D6 EA 90 00 [14:44:52]wFMCommunicate OK [14:44:52]SAM_PROTO_SignData done [14:44:52]FM_MakeSignedData done [14:44:52]CreateOFDProtocolMessage [14:44:52]wFMCommunicate request_size=4 [14:44:52]MH_SAM_APDU [14:44:52]CAPDU: 80 11 00 00 [14:44:52]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:52]Read from MH i2c: E2 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 17 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 11 [14:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:44:52]wFMCommunicate OK [14:44:52]CreateOFDProtocolMessage done [14:44:52]OFDSenderStorePacket 50307 [14:44:52]StoreOFDPacket docnum=50307 [14:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 4A A1 1C 01 A8 94 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 0B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C4 00 00 35 04 06 00 4E 6D AA 07 26 69 F9 1C 55 79 F8 74 D6 EA [14:44:52]CheckFolder [14:44:52]dirname=/storage/ofd_packets [14:44:52]CheckFolder done [14:44:52]ProducePacketName [14:44:52]name=ofd_packets/00050307 [14:44:52]NVStorageSaveData ofd_packets/00050307 [14:44:52]File name is /storage/ofd_packets/00050307 [14:44:52]Write 322 bytes [14:44:52]NVStorageSaveData done [14:44:52]OFDSenderStorePacket done [14:44:52]KKMCreateOFDPacket done [14:44:52]NVStorageSaveData kkm_last_timestamp [14:44:52]File name is /storage/kkm_last_timestamp [14:44:52]Write 4 bytes [14:44:52]NVStorageSaveData done [14:44:52]ExternCall_PrintAddStr [14:44:52]wPrintStart [14:44:52]Write to MH i2c: 01 00 00 41 10 51 [14:44:52]Write i2c OK [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 07 00 [14:44:52]MH_I2C_Read... [14:44:52]Read from MH i2c: 01 07 00 41 10 00 00 00 00 00 FF 0F 66 [14:44:52]RasterBufferAndPrint [14:44:52]line Счет N : (3)164213 [14:44:52]line ИНН: 02508201610067 [14:44:52]line Контрольно-Кассовый Чек [14:44:52]line ПРОДАЖА [14:44:52]line Товар: 48745000 [14:44:52]line Сигареты Winston Purple Mix [14:44:52]line 1.000 * 139.00 [14:44:52]line = 139.00 [14:44:52]line НДС 12% НСП 1% [14:44:52]line > о реализуемом товаре [14:44:52]line ИТОГО: 139.00 [14:44:52]line НСП 1% : 1.23 [14:44:52]line НДС 12% : 14.76 [14:44:52]line Наличными: 0.00 [14:44:52]line Безнал.: 139.00 [14:44:52]line Место: АЗС № 80 "Партнер Нефть" [14:44:52]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:44:52]line СНО: Общий режим [14:44:52]line Чек 52 23.10.2024 14:44 [14:44:52]line Смена: 491 ФФД: 1.0 [14:44:52]line ЗНМ: 0300000090 [14:44:52]line РНМ: 0000000000097022 [14:44:52]line Версия ККМ: 001 [14:44:52]line Платежная система: Mbank [14:44:52]line ФМ: 0000000000875000 [14:44:52]line ФД: 50307 [14:44:52]line ФПД: 86232910997097 [14:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144454&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50307&fm=86232910997097&tin=02508201610067®Number=0000000000097022&sum=13900 [14:44:52]OFD Sender: Processing packet 50307 [packets to send 7, broken 6] [14:44:52]ProducePacketName [14:44:52]name=ofd_packets/00050307 [14:44:52]OFD Sender: To server: pG, [14:44:52]CommunicateWithHost lk.salyk.kg:30040 [14:44:52]ConnectInit lk.salyk.kg [14:44:52]line 0 [14:44:52]written 0, free lines is 4095 [14:44:52]Connected sock=10 [14:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 4A A1 1C 01 A8 94 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E6 0B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C4 00 00 35 04 06 00 4E 6D AA 07 26 69 F9 1C 55 79 F8 74 D6 EA [14:44:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 24 D7 47 00 FB A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C4 00 00 F4 03 04 00 7D B7 18 67 B6 04 01 00 00 1C E2 B9 C7 44 1D 6A B3 [14:44:52]CommunicateWithHost err = 0 [14:44:52]CheckOFDResponse [14:44:52]1017 (14) - 77093643461234 [14:44:52]1041 (16) - 0000000000875000 [14:44:52]1040 (4) - 50307 [14:44:52]1012 (4) - 23.10.2024 08:44 [14:44:52]1206 (1) - 0 [14:44:52]OFD Sender: Remove packet 50307 [14:44:52]ProducePacketName [14:44:52]name=ofd_packets/00050307 [14:44:52]NVStorageDeleteData [14:44:53]Write to MH i2c: 01 00 00 6A 10 7A [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 07 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: 01 07 00 6A 10 00 00 00 00 00 10 0D 9E [14:44:53]RasterBufferAndPrint [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]line [14:44:53]written 0, free lines is 3352 [14:44:53]process_action close_receipt done [14:44:53]requested_data is exist [14:44:53]produce_requested_data [14:44:53]requested_item fm.sn is exist - process it [14:44:53]wFMCommunicate request_size=4 [14:44:53]MH_SAM_APDU [14:44:53]CAPDU: 80 11 00 00 [14:44:53]Write to MH i2c: E2 08 00 71 10 80 11 00 00 00 00 00 00 FB [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:53]Read from MH i2c: E2 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 17 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 17 00 71 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 42 [14:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:44:53]wFMCommunicate OK [14:44:53]requested_item fd.num is exist - process it [14:44:53]SAM_PROTO_GetFieldsCounters [14:44:53]wFMCommunicate request_size=4 [14:44:53]MH_SAM_APDU [14:44:53]CAPDU: 80 13 00 00 [14:44:53]Write to MH i2c: E2 08 00 72 10 80 13 00 00 00 00 00 00 FE [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:53]Read from MH i2c: E2 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 62 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 62 00 72 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 83 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [14:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 83 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:53]wFMCommunicate OK [14:44:53]SAM_PROTO_GetFieldsCounters done [14:44:53]requested_item shift.num is exist - process it [14:44:53]requested_item shift.opened is exist - process it [14:44:53]req_shift_opened [14:44:53]FM_GetShiftState [14:44:53]SAM_PROTO_GetShiftState [14:44:53]wFMCommunicate request_size=4 [14:44:53]MH_SAM_APDU [14:44:53]CAPDU: 80 13 01 00 [14:44:53]Write to MH i2c: E2 08 00 73 10 80 13 01 00 00 00 00 00 00 [14:44:53]Write i2c OK [14:44:53]MH_I2C_Read... [14:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:53]Read from MH i2c: E2 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 0E 00 [14:44:53]MH_I2C_Read... [14:44:53]Read from MH i2c: E2 0E 00 73 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 4C [14:44:53]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:44:53]wFMCommunicate OK [14:44:53]SAM_PROTO_GetShiftState done [14:44:53]FM_GetShiftState done [14:44:53]req_shift_opened done [14:44:53]requested_item shift.open_date is exist - process it [14:44:53]req_shift_open_date [14:44:53]req_shift_open_date done [14:44:53]produce_requested_data done [14:44:53]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50307,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [14:44:53]process_action_free close_receipt [14:44:53]json_value_free [14:44:53]json_value_free done [14:44:53]process_json_proto returns [14:44:53]Send response to host [14:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50307,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [14:44:53]free response buf [14:44:53]execute_script done [14:44:53]execute_script returns [14:44:53]free content buf [14:44:53]Sock 9.Close socket [14:44:53]Sock 9.Thread stoped [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:55]accept exits with 7 [14:49:55]New connection [14:49:55]New thread 3067305316 created [14:49:55]Thread 3067161956 joined [14:49:55]Waiting for new connection... [14:49:55] Sock 7.Parse request [14:49:55]Sock 7.Check first char [14:49:55]Sock 7.First char is OK [14:49:55]request: POST /json_proto HTTP/1.0 [14:49:55]Method: POST [14:49:55]URL: /json_proto [14:49:55]Method is POST - this is cgi request [14:49:55]url: /json_proto [14:49:55]query_string will be loaded in cgi processing [14:49:55]execute_cgi json_proto POST (null) [14:49:55]execute_cgi path=json_proto method=POST [14:49:55]POST find Content-Length [14:49:55]Host: 172.17.49.196:8080 [14:49:55]Content-Length: 622 [14:49:55]Content-Type: application/json [14:49:55] [14:49:55]POST finish read [14:49:55]Found Content-Length = 622 [14:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164214", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:55]execute_script... [14:49: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)164214", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:55]POST & json_proto [14:49:55]process_json_proto [14:49:55]json parsed OK: [14:49:55]protocol is kg_v1.0 [14:49:55]action value=close_receipt [14:49:55]process_action close_receipt [14:49:55]cmd_close_receipt [14:49:55]MH_GetDate [14:49:55]Write to MH i2c: F0 00 00 74 10 73 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 09 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 09 00 74 10 00 16 0D 19 67 BD 3B 11 67 8F [14:49:55]GetLastDocTimeStamp 1729694694 [14:49:55]current date 1729694998 [14:49:55]FM_GetShiftState [14:49:55]SAM_PROTO_GetShiftState [14:49:55]wFMCommunicate request_size=4 [14:49:55]MH_SAM_APDU [14:49:55]CAPDU: 80 13 01 00 [14:49:55]Write to MH i2c: E2 08 00 75 10 80 13 01 00 00 00 00 00 02 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:55]Read from MH i2c: E2 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 0E 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 0E 00 75 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 4E [14:49:55]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:49:55]wFMCommunicate OK [14:49:55]SAM_PROTO_GetShiftState done [14:49:55]FM_GetShiftState done [14:49:55]opened in 1729642370 [14:49:55]opened+sec_in_day 1729728770 [14:49:55]quantity*price = 15900 [14:49:55]sum+1 = 15901 [14:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 53 23.10.2024 14:49 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50308 ФПД: 168429781093935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144959&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50308&fm=168429781093935&tin=02508201610067®Number=0000000000097022&sum=15900 0 [14:49:56]StoreToDocumentArchive [14:49:56]shift 491 fd 50308 [14:49:56]save to /storage/0491/doc_00050308 [14:49:56]save last doc name /storage/0491/doc_00050308 to /storage/kkm_last_doc_name [14:49:56]save OK [14:49:56]Clear old archive folders... [14:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:49:56]tlvbuf is 002282C0 [14:49:56]SAM_PROTO_ClearQueue [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 09 00 00 [14:49:56]Write to MH i2c: E2 08 00 82 10 80 09 00 00 00 00 00 00 04 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [14:49:56]RAPDU: 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_ClearQueue done [14:49:56]KKMCreateOFDPacket [14:49:56]OFDProtocolAddRootSTLVToBuf [14:49:56]FM_MakeSignedData [14:49:56]FM_MakeSignedData [14:49:56]SAM_PROTO_SignData [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 0D 01 02 [14:49:56]Write to MH i2c: E2 08 00 83 10 80 0D 01 02 00 00 00 00 0C [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 83 10 00 90 00 07 [14:49:56]RAPDU: 90 00 [14:49:56]wFMCommunicate OK [14:49:56]wFMCommunicate request_size=255 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 17 0D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [14:49:56]Write to MH i2c: E2 02 01 84 10 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 17 0D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 F0 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 84 10 00 90 00 08 [14:49:56]RAPDU: 90 00 [14:49:56]wFMCommunicate OK [14:49:56]wFMCommunicate request_size=33 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C4 00 00 35 04 06 00 99 2F 9D 45 8E 2F [14:49:56]Write to MH i2c: E2 24 00 85 10 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C4 00 00 35 04 06 00 99 2F 9D 45 8E 2F 00 00 41 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [14:49:56]RAPDU: 90 00 [14:49:56]wFMCommunicate OK [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 0D 03 02 [14:49:56]Write to MH i2c: E2 08 00 86 10 80 0D 03 02 00 00 00 00 11 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 0B 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 0B 00 86 10 00 AE 15 35 91 42 59 7B 84 90 00 35 [14:49:57]RAPDU: AE 15 35 91 42 59 7B 84 90 00 [14:49:57]wFMCommunicate OK [14:49:57]SAM_PROTO_SignData done [14:49:57]FM_MakeSignedData done [14:49:57]CreateOFDProtocolMessage [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 11 00 00 [14:49:57]Write to MH i2c: E2 08 00 87 10 80 11 00 00 00 00 00 00 11 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 17 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 17 00 87 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 58 [14:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:49:57]wFMCommunicate OK [14:49:57]CreateOFDProtocolMessage done [14:49:57]OFDSenderStorePacket 50308 [14:49:57]StoreOFDPacket docnum=50308 [14:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 33 9E 1E 01 73 7B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 17 0D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C4 00 00 35 04 06 00 99 2F 9D 45 8E 2F AE 15 35 91 42 59 7B 84 [14:49:57]CheckFolder [14:49:57]dirname=/storage/ofd_packets [14:49:57]CheckFolder done [14:49:57]ProducePacketName [14:49:57]name=ofd_packets/00050308 [14:49:57]NVStorageSaveData ofd_packets/00050308 [14:49:57]File name is /storage/ofd_packets/00050308 [14:49:57]Write 324 bytes [14:49:57]NVStorageSaveData done [14:49:57]OFDSenderStorePacket done [14:49:57]KKMCreateOFDPacket done [14:49:57]NVStorageSaveData kkm_last_timestamp [14:49:57]File name is /storage/kkm_last_timestamp [14:49:57]Write 4 bytes [14:49:57]NVStorageSaveData done [14:49:57]ExternCall_PrintAddStr [14:49:57]wPrintStart [14:49:57]Write to MH i2c: 01 00 00 88 10 98 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 07 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 FF 0F AD [14:49:57]RasterBufferAndPrint [14:49:57]line Счет N : (3)164214 [14:49:57]line ИНН: 02508201610067 [14:49:57]line Контрольно-Кассовый Чек [14:49:57]line ПРОДАЖА [14:49:57]line Товар: 4640030091645 [14:49:57]line Сигареты ESSE Exchange M [14:49:57]line 1.000 * 159.00 [14:49:57]line = 159.00 [14:49:57]line НДС 12% НСП 1% [14:49:57]line > о реализуемом товаре [14:49:57]line ИТОГО: 159.00 [14:49:57]line НСП 1% : 1.41 [14:49:57]line НДС 12% : 16.88 [14:49:57]line Наличными: 159.00 [14:49:57]line Безнал.: 0.00 [14:49:57]line Место: АЗС № 80 "Партнер Нефть" [14:49:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:49:57]line СНО: Общий режим [14:49:57]line Чек 53 23.10.2024 14:49 [14:49:57]line Смена: 491 ФФД: 1.0 [14:49:57]line ЗНМ: 0300000090 [14:49:57]line РНМ: 0000000000097022 [14:49:57]line Версия ККМ: 001 [14:49:57]line ФМ: 0000000000875000 [14:49:57]line ФД: 50308 [14:49:57]line ФПД: 168429781093935 [14:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144959&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50308&fm=168429781093935&tin=02508201610067®Number=0000000000097022&sum=15900 [14:49:57]line 0 [14:49:57]OFD Sender: Processing packet 50308 [packets to send 7, broken 6] [14:49:57]ProducePacketName [14:49:57]name=ofd_packets/00050308 [14:49:57]OFD Sender: To server: pG, [14:49:57]CommunicateWithHost lk.salyk.kg:30040 [14:49:57]ConnectInit lk.salyk.kg [14:49:57]written 0, free lines is 4095 [14:49:57]Connected sock=10 [14:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 33 9E 1E 01 73 7B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 17 0D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C4 00 00 35 04 06 00 99 2F 9D 45 8E 2F AE 15 35 91 42 59 7B 84 [14:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E1 2B 47 00 88 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C4 00 00 F4 03 04 00 AD B8 18 67 B6 04 01 00 00 3E A7 33 60 9A 5E A5 2A [14:49:57]CommunicateWithHost err = 0 [14:49:57]CheckOFDResponse [14:49:57]1017 (14) - 77093643461234 [14:49:57]1041 (16) - 0000000000875000 [14:49:57]1040 (4) - 50308 [14:49:57]1012 (4) - 23.10.2024 08:49 [14:49:57]1206 (1) - 0 [14:49:57]OFD Sender: Remove packet 50308 [14:49:57]ProducePacketName [14:49:57]name=ofd_packets/00050308 [14:49:57]NVStorageDeleteData [14:49:57]Write to MH i2c: 01 00 00 B0 10 C0 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 07 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 17 0D EB [14:49:57]RasterBufferAndPrint [14:49:57]line [14:49:57]line [14:49:57]line [14:49:57]line [14:49:57]line [14:49:57]written 0, free lines is 3360 [14:49:57]process_action close_receipt done [14:49:57]requested_data is exist [14:49:57]produce_requested_data [14:49:57]requested_item fm.sn is exist - process it [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 11 00 00 [14:49:57]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 17 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 88 [14:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:49:57]wFMCommunicate OK [14:49:57]requested_item fd.num is exist - process it [14:49:57]SAM_PROTO_GetFieldsCounters [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 13 00 00 [14:49:57]Write to MH i2c: E2 08 00 B8 10 80 13 00 00 00 00 00 00 44 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:58]Read from MH i2c: E2 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 62 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 62 00 B8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 84 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [14:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 84 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:58]wFMCommunicate OK [14:49:58]SAM_PROTO_GetFieldsCounters done [14:49:58]requested_item shift.num is exist - process it [14:49:58]requested_item shift.opened is exist - process it [14:49:58]req_shift_opened [14:49:58]FM_GetShiftState [14:49:58]SAM_PROTO_GetShiftState [14:49:58]wFMCommunicate request_size=4 [14:49:58]MH_SAM_APDU [14:49:58]CAPDU: 80 13 01 00 [14:49:58]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:58]Read from MH i2c: E2 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 0E 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 92 [14:49:58]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [14:49:58]wFMCommunicate OK [14:49:58]SAM_PROTO_GetShiftState done [14:49:58]FM_GetShiftState done [14:49:58]req_shift_opened done [14:49:58]requested_item shift.open_date is exist - process it [14:49:58]req_shift_open_date [14:49:58]req_shift_open_date done [14:49:58]produce_requested_data done [14:49:58]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50308,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [14:49:58]process_action_free close_receipt [14:49:58]json_value_free [14:49:58]json_value_free done [14:49:58]process_json_proto returns [14:49:58]Send response to host [14:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50308,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [14:49:58]free response buf [14:49:58]execute_script done [14:49:58]execute_script returns [14:49:58]free content buf [14:49:58]Sock 7.Close socket [14:49:58]Sock 7.Thread stoped [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:41]accept exits with 9 [15:22:41]New connection [15:22:41]New thread 3067161956 created [15:22:41]Thread 3067305316 joined [15:22:41]Waiting for new connection... [15:22:41] Sock 9.Parse request [15:22:41]Sock 9.Check first char [15:22:41]Sock 9.First char is OK [15:22:41]request: POST /json_proto HTTP/1.0 [15:22:41]Method: POST [15:22:41]URL: /json_proto [15:22:41]Method is POST - this is cgi request [15:22:41]url: /json_proto [15:22:41]query_string will be loaded in cgi processing [15:22:41]execute_cgi json_proto POST (null) [15:22:41]execute_cgi path=json_proto method=POST [15:22:41]POST find Content-Length [15:22:41]Host: 172.17.49.196:8080 [15:22:41]Content-Length: 906 [15:22:41]Content-Type: application/json [15:22:41] [15:22:41]POST finish read [15:22:41]Found Content-Length = 906 [15:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164215", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:41]execute_script... [15:22: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)164215", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:41]POST & json_proto [15:22:41]process_json_proto [15:22:41]json parsed OK: [15:22:41]protocol is kg_v1.0 [15:22:41]action value=close_receipt [15:22:41]process_action close_receipt [15:22:41]cmd_close_receipt [15:22:41]MH_GetDate [15:22:41]Write to MH i2c: F0 00 00 BA 10 B9 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 BA 10 00 C5 14 19 67 BD 3B 11 67 8B [15:22:41]GetLastDocTimeStamp 1729694999 [15:22:41]current date 1729696965 [15:22:41]FM_GetShiftState [15:22:41]SAM_PROTO_GetShiftState [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 13 01 00 [15:22:41]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 94 [15:22:41]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_GetShiftState done [15:22:41]FM_GetShiftState done [15:22:41]opened in 1729642370 [15:22:41]opened+sec_in_day 1729728770 [15:22:41]quantity*price = 7900 [15:22:41]sum+1 = 7901 [15:22:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.72 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 54 23.10.2024 15:22 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50309 ФПД: 22143389823120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152245&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50309&fm=22143389823120&tin=02508201610067®Number=0000000000097022&sum=19400 0 [15:22:42]StoreToDocumentArchive [15:22:42]shift 491 fd 50309 [15:22:42]save to /storage/0491/doc_00050309 [15:22:42]save last doc name /storage/0491/doc_00050309 to /storage/kkm_last_doc_name [15:22:42]save OK [15:22:42]Clear old archive folders... [15:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=386 [15:22:42]tlvbuf is 00215DC0 [15:22:42]SAM_PROTO_ClearQueue [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 09 00 00 [15:22:42]Write to MH i2c: E2 08 00 C8 10 80 09 00 00 00 00 00 00 4A [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]SAM_PROTO_ClearQueue done [15:22:42]KKMCreateOFDPacket [15:22:42]OFDProtocolAddRootSTLVToBuf [15:22:42]FM_MakeSignedData [15:22:42]FM_MakeSignedData [15:22:42]SAM_PROTO_SignData [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 01 02 [15:22:42]Write to MH i2c: E2 08 00 C9 10 80 0D 01 02 00 00 00 00 52 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=255 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 02 02 FA 03 00 82 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 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [15:22:42]Write to MH i2c: E2 02 01 CA 10 80 0D 02 02 FA 00 03 00 82 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 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 95 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 03 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [15:22:43]RAPDU: 90 00 [15:22:43]wFMCommunicate OK [15:22:43]wFMCommunicate request_size=145 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 0D 02 02 8C 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C5 14 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C4 00 00 35 04 06 00 14 23 A8 E2 70 90 [15:22:43]Write to MH i2c: E2 94 00 CB 10 80 0D 02 02 8C 00 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C5 14 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C4 00 00 35 04 06 00 14 23 A8 E2 70 90 00 00 E7 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 03 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [15:22:43]RAPDU: 90 00 [15:22:43]wFMCommunicate OK [15:22:43]wFMCommunicate request_size=4 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 0D 03 02 [15:22:43]Write to MH i2c: E2 08 00 CC 10 80 0D 03 02 00 00 00 00 57 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 0B 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 0B 00 CC 10 00 BA 40 A8 5F 35 EB C8 E4 90 00 25 [15:22:43]RAPDU: BA 40 A8 5F 35 EB C8 E4 90 00 [15:22:43]wFMCommunicate OK [15:22:43]SAM_PROTO_SignData done [15:22:43]FM_MakeSignedData done [15:22:43]CreateOFDProtocolMessage [15:22:43]wFMCommunicate request_size=4 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 11 00 00 [15:22:43]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 17 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9E [15:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:22:43]wFMCommunicate OK [15:22:43]CreateOFDProtocolMessage done [15:22:43]OFDSenderStorePacket 50309 [15:22:43]StoreOFDPacket docnum=50309 [15:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 01 00 00 83 F8 8E 01 95 A8 5A 03 01 00 03 00 82 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 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C5 14 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C4 00 00 35 04 06 00 14 23 A8 E2 70 90 BA 40 A8 5F 35 EB C8 E4 [15:22:43]CheckFolder [15:22:43]dirname=/storage/ofd_packets [15:22:43]CheckFolder done [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00050309 [15:22:43]NVStorageSaveData ofd_packets/00050309 [15:22:43]File name is /storage/ofd_packets/00050309 [15:22:43]Write 436 bytes [15:22:43]NVStorageSaveData done [15:22:43]OFDSenderStorePacket done [15:22:43]KKMCreateOFDPacket done [15:22:43]NVStorageSaveData kkm_last_timestamp [15:22:43]File name is /storage/kkm_last_timestamp [15:22:43]Write 4 bytes [15:22:43]NVStorageSaveData done [15:22:43]ExternCall_PrintAddStr [15:22:43]wPrintStart [15:22:43]Write to MH i2c: 01 00 00 CE 10 DE [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [15:22:43]RasterBufferAndPrint [15:22:43]line Счет N : (3)164215 [15:22:43]line ИНН: 02508201610067 [15:22:43]line Контрольно-Кассовый Чек [15:22:43]line ПРОДАЖА [15:22:43]line Товар: 4700000310043 [15:22:43]line Вода Жалалабат 27 1л [15:22:43]line 1.000 * 79.00 [15:22:43]line = 79.00 [15:22:43]line НДС 12% НСП 1% [15:22:43]line > о реализуемом товаре [15:22:43]line Товар: 2000036210013 [15:22:43]line Кофе Капучино (GABB TRADE) [15:22:43]line 1.000 * 115.00 [15:22:43]line = 115.00 [15:22:43]line НДС 12% НСП 1% [15:22:43]line > о реализуемом товаре [15:22:43]line ИТОГО: 194.00 [15:22:43]line НСП 1% : 1.72 [15:22:43]line НДС 12% : 20.60 [15:22:43]line Наличными: 194.00 [15:22:43]line Безнал.: 0.00 [15:22:43]line Место: АЗС № 80 "Партнер Нефть" [15:22:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:22:43]line СНО: Общий режим [15:22:43]line Чек 54 23.10.2024 15:22 [15:22:43]line Смена: 491 ФФД: 1.0 [15:22:43]line ЗНМ: 0300000090 [15:22:43]line РНМ: 0000000000097022 [15:22:43]line Версия ККМ: 001 [15:22:43]line ФМ: 0000000000875000 [15:22:43]line ФД: 50309 [15:22:43]line ФПД: 22143389823120 [15:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152245&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50309&fm=22143389823120&tin=02508201610067®Number=0000000000097022&sum=19400 [15:22:43]line 0 [15:22:43]OFD Sender: Processing packet 50309 [packets to send 7, broken 6] [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00050309 [15:22:43]OFD Sender: To server: pG, [15:22:43]CommunicateWithHost lk.salyk.kg:30040 [15:22:43]ConnectInit lk.salyk.kg [15:22:43]written 0, free lines is 4095 [15:22:43]Connected sock=10 [15:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 01 00 00 83 F8 8E 01 95 A8 5A 03 01 00 03 00 82 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 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C5 14 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C4 00 00 35 04 06 00 14 23 A8 E2 70 90 BA 40 A8 5F 35 EB C8 E4 [15:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A4 3B 47 00 54 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C4 00 00 F4 03 04 00 5C C0 18 67 B6 04 01 00 00 D4 D1 97 33 29 FB D5 86 [15:22:44]CommunicateWithHost err = 0 [15:22:44]CheckOFDResponse [15:22:44]1017 (14) - 77093643461234 [15:22:44]1041 (16) - 0000000000875000 [15:22:44]1040 (4) - 50309 [15:22:44]1012 (4) - 23.10.2024 09:22 [15:22:44]1206 (1) - 0 [15:22:44]OFD Sender: Remove packet 50309 [15:22:44]ProducePacketName [15:22:44]name=ofd_packets/00050309 [15:22:44]NVStorageDeleteData [15:22:44]Write to MH i2c: 01 00 00 FC 10 0C [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: 01 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: 01 07 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 EA 0C 09 [15:22:44]RasterBufferAndPrint [15:22:44]line [15:22:44]line [15:22:44]line [15:22:44]line [15:22:44]line [15:22:44]written 0, free lines is 3315 [15:22:44]process_action close_receipt done [15:22:44]requested_data is exist [15:22:44]produce_requested_data [15:22:44]requested_item fm.sn is exist - process it [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 11 00 00 [15:22:44]Write to MH i2c: E2 08 00 03 11 80 11 00 00 00 00 00 00 8E [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:44]Read from MH i2c: E2 17 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 17 00 03 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D5 [15:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:22:44]wFMCommunicate OK [15:22:44]requested_item fd.num is exist - process it [15:22:44]SAM_PROTO_GetFieldsCounters [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 13 00 00 [15:22:44]Write to MH i2c: E2 08 00 04 11 80 13 00 00 00 00 00 00 91 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 62 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 62 00 04 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 85 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [15:22:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 85 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:44]wFMCommunicate OK [15:22:44]SAM_PROTO_GetFieldsCounters done [15:22:44]requested_item shift.num is exist - process it [15:22:44]requested_item shift.opened is exist - process it [15:22:44]req_shift_opened [15:22:44]FM_GetShiftState [15:22:44]SAM_PROTO_GetShiftState [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 13 01 00 [15:22:44]Write to MH i2c: E2 08 00 05 11 80 13 01 00 00 00 00 00 93 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 05 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 DF [15:22:44]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:22:44]wFMCommunicate OK [15:22:44]SAM_PROTO_GetShiftState done [15:22:44]FM_GetShiftState done [15:22:44]req_shift_opened done [15:22:44]requested_item shift.open_date is exist - process it [15:22:44]req_shift_open_date [15:22:44]req_shift_open_date done [15:22:44]produce_requested_data done [15:22:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50309,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:22:44]process_action_free close_receipt [15:22:44]json_value_free [15:22:44]json_value_free done [15:22:44]process_json_proto returns [15:22:44]Send response to host [15:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50309,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:22:44]free response buf [15:22:44]execute_script done [15:22:44]execute_script returns [15:22:44]free content buf [15:22:44]Sock 9.Close socket [15:22:44]Sock 9.Thread stoped [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]accept exits with 7 [15:29:34]New connection [15:29:34]New thread 3067305316 created [15:29:34]Thread 3067161956 joined [15:29:34]Waiting for new connection... [15:29:34] Sock 7.Parse request [15:29:34]Sock 7.Check first char [15:29:34]Sock 7.First char is OK [15:29:34]request: POST /json_proto HTTP/1.0 [15:29:34]Method: POST [15:29:34]URL: /json_proto [15:29:34]Method is POST - this is cgi request [15:29:34]url: /json_proto [15:29:34]query_string will be loaded in cgi processing [15:29:34]execute_cgi json_proto POST (null) [15:29:34]execute_cgi path=json_proto method=POST [15:29:34]POST find Content-Length [15:29:34]Host: 172.17.49.196:8080 [15:29:34]Content-Length: 845 [15:29:34]Content-Type: application/json [15:29:34] [15:29:34]POST finish read [15:29:34]Found Content-Length = 845 [15:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164216", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 4.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:34]execute_script... [15:29: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)164216", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 4.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:34]POST & json_proto [15:29:34]process_json_proto [15:29:34]json parsed OK: [15:29:34]protocol is kg_v1.0 [15:29:34]action value=close_receipt [15:29:34]process_action close_receipt [15:29:34]cmd_close_receipt [15:29:34]MH_GetDate [15:29:34]Write to MH i2c: F0 00 00 06 11 06 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 09 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 09 00 06 11 00 62 16 19 67 BD 3B 11 67 77 [15:29:34]GetLastDocTimeStamp 1729696965 [15:29:34]current date 1729697378 [15:29:34]FM_GetShiftState [15:29:34]SAM_PROTO_GetShiftState [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 13 01 00 [15:29:34]Write to MH i2c: E2 08 00 07 11 80 13 01 00 00 00 00 00 95 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 07 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 E1 [15:29:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:29:34]wFMCommunicate OK [15:29:34]SAM_PROTO_GetShiftState done [15:29:34]FM_GetShiftState done [15:29:34]opened in 1729642370 [15:29:34]opened+sec_in_day 1729728770 [15:29:34]quantity*price = 57600 [15:29:34]sum+1 = 57601 [15:29:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 34.00 = 34.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 610.00 НСП 1% : 5.40 НДС 12% : 64.78 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 55 23.10.2024 15:29 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50310 ФПД: 225005399588066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152938&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50310&fm=225005399588066&tin=02508201610067®Number=0000000000097022&sum=61000 0 [15:29:35]StoreToDocumentArchive [15:29:35]shift 491 fd 50310 [15:29:35]save to /storage/0491/doc_00050310 [15:29:35]save last doc name /storage/0491/doc_00050310 to /storage/kkm_last_doc_name [15:29:35]save OK [15:29:35]Clear old archive folders... [15:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=373 [15:29:35]tlvbuf is 002256A0 [15:29:35]SAM_PROTO_ClearQueue [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 09 00 00 [15:29:35]Write to MH i2c: E2 08 00 14 11 80 09 00 00 00 00 00 00 97 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]SAM_PROTO_ClearQueue done [15:29:35]KKMCreateOFDPacket [15:29:35]OFDProtocolAddRootSTLVToBuf [15:29:35]FM_MakeSignedData [15:29:35]FM_MakeSignedData [15:29:35]SAM_PROTO_SignData [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 0D 01 02 [15:29:35]Write to MH i2c: E2 08 00 15 11 80 0D 01 02 00 00 00 00 9F [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]wFMCommunicate request_size=255 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 0D 02 02 FA 03 00 75 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 [15:29:35]Write to MH i2c: E2 02 01 16 11 80 0D 02 02 FA 00 03 00 75 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 00 00 03 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]wFMCommunicate request_size=132 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 48 EE 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 62 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C4 00 00 35 04 06 00 CC A4 26 EA 3C E2 [15:29:36]Write to MH i2c: E2 87 00 17 11 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 48 EE 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 62 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C4 00 00 35 04 06 00 CC A4 26 EA 3C E2 00 00 6A [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 03 02 [15:29:36]Write to MH i2c: E2 08 00 18 11 80 0D 03 02 00 00 00 00 A4 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0B 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0B 00 18 11 00 B9 62 A5 E5 21 E5 75 D7 90 00 9C [15:29:36]RAPDU: B9 62 A5 E5 21 E5 75 D7 90 00 [15:29:36]wFMCommunicate OK [15:29:36]SAM_PROTO_SignData done [15:29:36]FM_MakeSignedData done [15:29:36]CreateOFDProtocolMessage [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 11 00 00 [15:29:36]Write to MH i2c: E2 08 00 19 11 80 11 00 00 00 00 00 00 A4 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 19 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EB [15:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:29:36]wFMCommunicate OK [15:29:36]CreateOFDProtocolMessage done [15:29:36]OFDSenderStorePacket 50310 [15:29:36]StoreOFDPacket docnum=50310 [15:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 89 01 00 00 95 68 81 01 F5 FB 5A 03 01 00 03 00 75 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 48 EE 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 62 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C4 00 00 35 04 06 00 CC A4 26 EA 3C E2 B9 62 A5 E5 21 E5 75 D7 [15:29:36]CheckFolder [15:29:36]dirname=/storage/ofd_packets [15:29:36]CheckFolder done [15:29:36]ProducePacketName [15:29:36]name=ofd_packets/00050310 [15:29:36]NVStorageSaveData ofd_packets/00050310 [15:29:36]File name is /storage/ofd_packets/00050310 [15:29:36]Write 423 bytes [15:29:36]NVStorageSaveData done [15:29:36]OFDSenderStorePacket done [15:29:36]KKMCreateOFDPacket done [15:29:36]NVStorageSaveData kkm_last_timestamp [15:29:36]File name is /storage/kkm_last_timestamp [15:29:36]Write 4 bytes [15:29:36]NVStorageSaveData done [15:29:36]ExternCall_PrintAddStr [15:29:36]wPrintStart [15:29:36]Write to MH i2c: 01 00 00 1A 11 2B [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 1A 11 00 00 00 00 00 FF 0F 40 [15:29:36]RasterBufferAndPrint [15:29:36]line Счет N : (3)164216 [15:29:36]line ИНН: 02508201610067 [15:29:36]line Контрольно-Кассовый Чек [15:29:36]line ПРОДАЖА [15:29:36]line Товар: 48743587 [15:29:36]line Сигареты Winston XStyle Silver [15:29:36]line 4.000 * 144.00 [15:29:36]line = 576.00 [15:29:36]line НДС 12% НСП 1% [15:29:36]line > о реализуемом товаре [15:29:36]line Товар: 50173976 [15:29:36]line Жев Orbit Winterfresh под [15:29:36]line 1.000 * 34.00 [15:29:36]line = 34.00 [15:29:36]line НДС 12% НСП 1% [15:29:36]line > о реализуемом товаре [15:29:36]line ИТОГО: 610.00 [15:29:36]line НСП 1% : 5.40 [15:29:36]line НДС 12% : 64.78 [15:29:36]line Наличными: 610.00 [15:29:36]line Безнал.: 0.00 [15:29:36]line Место: АЗС № 80 "Партнер Нефть" [15:29:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:29:36]line СНО: Общий режим [15:29:36]line Чек 55 23.10.2024 15:29 [15:29:36]line Смена: 491 ФФД: 1.0 [15:29:36]line ЗНМ: 0300000090 [15:29:36]line РНМ: 0000000000097022 [15:29:36]line Версия ККМ: 001 [15:29:36]line ФМ: 0000000000875000 [15:29:36]line ФД: 50310 [15:29:36]line ФПД: 225005399588066 [15:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152938&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50310&fm=225005399588066&tin=02508201610067®Number=0000000000097022&sum=61000 [15:29:36]line 0 [15:29:36]OFD Sender: Processing packet 50310 [packets to send 7, broken 6] [15:29:36]ProducePacketName [15:29:36]name=ofd_packets/00050310 [15:29:36]OFD Sender: To server: pG, [15:29:36]CommunicateWithHost lk.salyk.kg:30040 [15:29:36]ConnectInit lk.salyk.kg [15:29:36]written 0, free lines is 4095 [15:29:36]Connected sock=10 [15:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 89 01 00 00 95 68 81 01 F5 FB 5A 03 01 00 03 00 75 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 48 EE 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 62 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C4 00 00 35 04 06 00 CC A4 26 EA 3C E2 B9 62 A5 E5 21 E5 75 D7 [15:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CC 63 47 00 72 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C4 00 00 F4 03 04 00 F9 C1 18 67 B6 04 01 00 00 63 C7 A9 18 5E EE 9C 11 [15:29:37]CommunicateWithHost err = 0 [15:29:37]CheckOFDResponse [15:29:37]1017 (14) - 77093643461234 [15:29:37]1041 (16) - 0000000000875000 [15:29:37]1040 (4) - 50310 [15:29:37]1012 (4) - 23.10.2024 09:29 [15:29:37]1206 (1) - 0 [15:29:37]OFD Sender: Remove packet 50310 [15:29:37]ProducePacketName [15:29:37]name=ofd_packets/00050310 [15:29:37]NVStorageDeleteData [15:29:37]Write to MH i2c: 01 00 00 49 11 5A [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 07 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 BB 0C 28 [15:29:37]RasterBufferAndPrint [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]written 0, free lines is 3267 [15:29:37]process_action close_receipt done [15:29:37]requested_data is exist [15:29:37]produce_requested_data [15:29:37]requested_item fm.sn is exist - process it [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 11 00 00 [15:29:37]Write to MH i2c: E2 08 00 50 11 80 11 00 00 00 00 00 00 DB [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 17 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 17 00 50 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 22 [15:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:29:37]wFMCommunicate OK [15:29:37]requested_item fd.num is exist - process it [15:29:37]SAM_PROTO_GetFieldsCounters [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 13 00 00 [15:29:37]Write to MH i2c: E2 08 00 51 11 80 13 00 00 00 00 00 00 DE [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 62 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 62 00 51 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:37]wFMCommunicate OK [15:29:37]SAM_PROTO_GetFieldsCounters done [15:29:37]requested_item shift.num is exist - process it [15:29:37]requested_item shift.opened is exist - process it [15:29:37]req_shift_opened [15:29:37]FM_GetShiftState [15:29:37]SAM_PROTO_GetShiftState [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 13 01 00 [15:29:37]Write to MH i2c: E2 08 00 52 11 80 13 01 00 00 00 00 00 E0 [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 0E 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 0E 00 52 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 2C [15:29:37]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:29:37]wFMCommunicate OK [15:29:37]SAM_PROTO_GetShiftState done [15:29:37]FM_GetShiftState done [15:29:37]req_shift_opened done [15:29:37]requested_item shift.open_date is exist - process it [15:29:37]req_shift_open_date [15:29:37]req_shift_open_date done [15:29:37]produce_requested_data done [15:29:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50310,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:29:37]process_action_free close_receipt [15:29:37]json_value_free [15:29:37]json_value_free done [15:29:37]process_json_proto returns [15:29:37]Send response to host [15:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50310,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:29:37]free response buf [15:29:37]execute_script done [15:29:37]execute_script returns [15:29:37]free content buf [15:29:37]Sock 7.Close socket [15:29:37]Sock 7.Thread stoped [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:46]accept exits with 9 [15:31:46]New connection [15:31:46]New thread 3067161956 created [15:31:46]Thread 3067305316 joined [15:31:46]Waiting for new connection... [15:31:46] Sock 9.Parse request [15:31:46]Sock 9.Check first char [15:31:46]Sock 9.First char is OK [15:31:46]request: POST /json_proto HTTP/1.0 [15:31:46]Method: POST [15:31:46]URL: /json_proto [15:31:46]Method is POST - this is cgi request [15:31:46]url: /json_proto [15:31:46]query_string will be loaded in cgi processing [15:31:46]execute_cgi json_proto POST (null) [15:31:46]execute_cgi path=json_proto method=POST [15:31:46]POST find Content-Length [15:31:46]Host: 172.17.49.196:8080 [15:31:46]Content-Length: 639 [15:31:46]Content-Type: application/json [15:31:46] [15:31:46]POST finish read [15:31:46]Found Content-Length = 639 [15:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164217", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "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" ] } } [15:31:46]execute_script... [15:31: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)164217", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "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" ] } } [15:31:46]POST & json_proto [15:31:46]process_json_proto [15:31:46]json parsed OK: [15:31:46]protocol is kg_v1.0 [15:31:46]action value=close_receipt [15:31:46]process_action close_receipt [15:31:46]cmd_close_receipt [15:31:46]MH_GetDate [15:31:46]Write to MH i2c: F0 00 00 53 11 53 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: F0 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: F0 09 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: F0 09 00 53 11 00 E6 16 19 67 BD 3B 11 67 48 [15:31:46]GetLastDocTimeStamp 1729697378 [15:31:46]current date 1729697510 [15:31:46]FM_GetShiftState [15:31:46]SAM_PROTO_GetShiftState [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 13 01 00 [15:31:46]Write to MH i2c: E2 08 00 54 11 80 13 01 00 00 00 00 00 E2 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 0E 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 0E 00 54 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 2E [15:31:46]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:31:46]wFMCommunicate OK [15:31:46]SAM_PROTO_GetShiftState done [15:31:46]FM_GetShiftState done [15:31:46]opened in 1729642370 [15:31:46]opened+sec_in_day 1729728770 [15:31:46]quantity*price = 12500 [15:31:46]sum+1 = 12501 [15:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 56 23.10.2024 15:31 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50311 ФПД: 56437631904863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153150&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50311&fm=56437631904863&tin=02508201610067®Number=0000000000097022&sum=12500 0 [15:31:47]StoreToDocumentArchive [15:31:47]shift 491 fd 50311 [15:31:47]save to /storage/0491/doc_00050311 [15:31:47]save last doc name /storage/0491/doc_00050311 to /storage/kkm_last_doc_name [15:31:47]save OK [15:31:47]Clear old archive folders... [15:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:31:47]tlvbuf is B6F303A0 [15:31:47]SAM_PROTO_ClearQueue [15:31:47]wFMCommunicate request_size=4 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 09 00 00 [15:31:47]Write to MH i2c: E2 08 00 61 11 80 09 00 00 00 00 00 00 E4 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]SAM_PROTO_ClearQueue done [15:31:47]KKMCreateOFDPacket [15:31:47]OFDProtocolAddRootSTLVToBuf [15:31:47]FM_MakeSignedData [15:31:47]FM_MakeSignedData [15:31:47]SAM_PROTO_SignData [15:31:47]wFMCommunicate request_size=4 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 01 02 [15:31:47]Write to MH i2c: E2 08 00 62 11 80 0D 01 02 00 00 00 00 EC [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]OFD Sender: No OFD packet to send [15:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]wFMCommunicate request_size=255 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 38 00 00 00 F4 03 04 00 E6 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:31:47]Write to MH i2c: E2 02 01 63 11 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 38 00 00 00 F4 03 04 00 E6 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8C [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]wFMCommunicate request_size=30 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 30 10 04 04 00 87 C4 00 00 35 04 06 00 33 54 69 00 6C 5F [15:31:47]Write to MH i2c: E2 21 00 64 11 80 0D 02 02 19 00 30 38 37 35 30 30 30 10 04 04 00 87 C4 00 00 35 04 06 00 33 54 69 00 6C 5F 00 00 E2 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 03 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [15:31:48]RAPDU: 90 00 [15:31:48]wFMCommunicate OK [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 0D 03 02 [15:31:48]Write to MH i2c: E2 08 00 65 11 80 0D 03 02 00 00 00 00 F1 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0B 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0B 00 65 11 00 3C 67 1C BD 62 7B E4 12 90 00 41 [15:31:48]RAPDU: 3C 67 1C BD 62 7B E4 12 90 00 [15:31:48]wFMCommunicate OK [15:31:48]SAM_PROTO_SignData done [15:31:48]FM_MakeSignedData done [15:31:48]CreateOFDProtocolMessage [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 11 00 00 [15:31:48]Write to MH i2c: E2 08 00 66 11 80 11 00 00 00 00 00 00 F1 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 66 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 38 [15:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:31:48]wFMCommunicate OK [15:31:48]CreateOFDProtocolMessage done [15:31:48]OFDSenderStorePacket 50311 [15:31:48]StoreOFDPacket docnum=50311 [15:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 01 00 00 87 83 1B 01 70 18 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 38 00 00 00 F4 03 04 00 E6 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C4 00 00 35 04 06 00 33 54 69 00 6C 5F 3C 67 1C BD 62 7B E4 12 [15:31:48]CheckFolder [15:31:48]dirname=/storage/ofd_packets [15:31:48]CheckFolder done [15:31:48]ProducePacketName [15:31:48]name=ofd_packets/00050311 [15:31:48]NVStorageSaveData ofd_packets/00050311 [15:31:48]File name is /storage/ofd_packets/00050311 [15:31:48]Write 321 bytes [15:31:48]NVStorageSaveData done [15:31:48]OFDSenderStorePacket done [15:31:48]KKMCreateOFDPacket done [15:31:48]NVStorageSaveData kkm_last_timestamp [15:31:48]File name is /storage/kkm_last_timestamp [15:31:48]Write 4 bytes [15:31:48]NVStorageSaveData done [15:31:48]ExternCall_PrintAddStr [15:31:48]wPrintStart [15:31:48]Write to MH i2c: 01 00 00 67 11 78 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 67 11 00 00 00 00 00 FF 0F 8D [15:31:48]RasterBufferAndPrint [15:31:48]line Счет N : (3)164217 [15:31:48]line ИНН: 02508201610067 [15:31:48]line Контрольно-Кассовый Чек [15:31:48]line ПРОДАЖА [15:31:48]line Товар: 5449000006271 [15:31:48]line Напиток Фанта 1л [15:31:48]line 1.000 * 125.00 [15:31:48]line = 125.00 [15:31:48]line НДС 12% НСП 1% [15:31:48]line > о реализуемом товаре [15:31:48]line ИТОГО: 125.00 [15:31:48]line НСП 1% : 1.11 [15:31:48]line НДС 12% : 13.27 [15:31:48]line Наличными: 125.00 [15:31:48]line Безнал.: 0.00 [15:31:48]line Место: АЗС № 80 "Партнер Нефть" [15:31:48]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:31:48]line СНО: Общий режим [15:31:48]line Чек 56 23.10.2024 15:31 [15:31:48]line Смена: 491 ФФД: 1.0 [15:31:48]line ЗНМ: 0300000090 [15:31:48]line РНМ: 0000000000097022 [15:31:48]line Версия ККМ: 001 [15:31:48]line ФМ: 0000000000875000 [15:31:48]line ФД: 50311 [15:31:48]line ФПД: 56437631904863 [15:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153150&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50311&fm=56437631904863&tin=02508201610067®Number=0000000000097022&sum=12500 [15:31:48]line 0 [15:31:48]OFD Sender: Processing packet 50311 [packets to send 7, broken 6] [15:31:48]ProducePacketName [15:31:48]name=ofd_packets/00050311 [15:31:48]OFD Sender: To server: pG, [15:31:48]CommunicateWithHost lk.salyk.kg:30040 [15:31:48]ConnectInit lk.salyk.kg [15:31:48]written 0, free lines is 4095 [15:31:48]Connected sock=10 [15:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 01 00 00 87 83 1B 01 70 18 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 38 00 00 00 F4 03 04 00 E6 16 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C4 00 00 35 04 06 00 33 54 69 00 6C 5F 3C 67 1C BD 62 7B E4 12 [15:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2A 31 47 00 D8 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 30 38 37 35 30 30 30 10 04 04 00 87 C4 00 00 F4 03 04 00 7D C2 18 67 B6 04 01 00 00 38 64 2E F8 16 0B 5A 04 [15:31:48]CommunicateWithHost err = 0 [15:31:48]CheckOFDResponse [15:31:48]1017 (14) - 77093643461234 [15:31:48]1041 (16) - 0000000000875000 [15:31:48]1040 (4) - 50311 [15:31:48]1012 (4) - 23.10.2024 09:31 [15:31:48]1206 (1) - 0 [15:31:48]OFD Sender: Remove packet 50311 [15:31:48]ProducePacketName [15:31:48]name=ofd_packets/00050311 [15:31:48]NVStorageDeleteData [15:31:48]Write to MH i2c: 01 00 00 8F 11 A0 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 10 0D C4 [15:31:48]RasterBufferAndPrint [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]written 0, free lines is 3350 [15:31:48]process_action close_receipt done [15:31:48]requested_data is exist [15:31:48]produce_requested_data [15:31:48]requested_item fm.sn is exist - process it [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 11 00 00 [15:31:48]Write to MH i2c: E2 08 00 96 11 80 11 00 00 00 00 00 00 21 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 96 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 68 [15:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:31:48]wFMCommunicate OK [15:31:48]requested_item fd.num is exist - process it [15:31:48]SAM_PROTO_GetFieldsCounters [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 13 00 00 [15:31:48]Write to MH i2c: E2 08 00 97 11 80 13 00 00 00 00 00 00 24 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 62 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 62 00 97 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 87 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 87 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:49]wFMCommunicate OK [15:31:49]SAM_PROTO_GetFieldsCounters done [15:31:49]requested_item shift.num is exist - process it [15:31:49]requested_item shift.opened is exist - process it [15:31:49]req_shift_opened [15:31:49]FM_GetShiftState [15:31:49]SAM_PROTO_GetShiftState [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 13 01 00 [15:31:49]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 0E 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 72 [15:31:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:31:49]wFMCommunicate OK [15:31:49]SAM_PROTO_GetShiftState done [15:31:49]FM_GetShiftState done [15:31:49]req_shift_opened done [15:31:49]requested_item shift.open_date is exist - process it [15:31:49]req_shift_open_date [15:31:49]req_shift_open_date done [15:31:49]produce_requested_data done [15:31:49]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50311,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:31:49]process_action_free close_receipt [15:31:49]json_value_free [15:31:49]json_value_free done [15:31:49]process_json_proto returns [15:31:49]Send response to host [15:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50311,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:31:49]free response buf [15:31:49]execute_script done [15:31:49]execute_script returns [15:31:49]free content buf [15:31:49]Sock 9.Close socket [15:31:49]Sock 9.Thread stoped [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [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:44]accept exits with 7 [15:33:44]New connection [15:33:44]New thread 3067305316 created [15:33:44]Thread 3067161956 joined [15:33:44]Waiting for new connection... [15:33:44] Sock 7.Parse request [15:33:44]Sock 7.Check first char [15:33:44]Sock 7.First char is OK [15:33:44]request: POST /json_proto HTTP/1.0 [15:33:44]Method: POST [15:33:44]URL: /json_proto [15:33:44]Method is POST - this is cgi request [15:33:44]url: /json_proto [15:33:44]query_string will be loaded in cgi processing [15:33:44]execute_cgi json_proto POST (null) [15:33:44]execute_cgi path=json_proto method=POST [15:33:44]POST find Content-Length [15:33:44]Host: 172.17.49.196:8080 [15:33:44]Content-Length: 641 [15:33:44]Content-Type: application/json [15:33:44] [15:33:44]POST finish read [15:33:44]Found Content-Length = 641 [15:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164218", "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 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:44]execute_script... [15:33: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)164218", "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 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:44]POST & json_proto [15:33:44]process_json_proto [15:33:44]json parsed OK: [15:33:44]protocol is kg_v1.0 [15:33:44]action value=close_receipt [15:33:44]process_action close_receipt [15:33:44]cmd_close_receipt [15:33:44]MH_GetDate [15:33:44]Write to MH i2c: F0 00 00 99 11 99 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: F0 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: F0 09 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: F0 09 00 99 11 00 5C 17 19 67 BD 3B 11 67 05 [15:33:44]GetLastDocTimeStamp 1729697510 [15:33:44]current date 1729697628 [15:33:44]FM_GetShiftState [15:33:44]SAM_PROTO_GetShiftState [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 13 01 00 [15:33:44]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0E 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 74 [15:33:44]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:33:44]wFMCommunicate OK [15:33:44]SAM_PROTO_GetShiftState done [15:33:44]FM_GetShiftState done [15:33:44]opened in 1729642370 [15:33:44]opened+sec_in_day 1729728770 [15:33:44]quantity*price = 33000 [15:33:44]sum+1 = 33001 [15:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 57 23.10.2024 15:33 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50312 ФПД: 201722078854150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153348&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50312&fm=201722078854150&tin=02508201610067®Number=0000000000097022&sum=33000 0 [15:33:45]StoreToDocumentArchive [15:33:45]shift 491 fd 50312 [15:33:45]save to /storage/0491/doc_00050312 [15:33:45]save last doc name /storage/0491/doc_00050312 to /storage/kkm_last_doc_name [15:33:45]save OK [15:33:45]Clear old archive folders... [15:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:33:45]tlvbuf is 00227FF0 [15:33:45]SAM_PROTO_ClearQueue [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 09 00 00 [15:33:45]Write to MH i2c: E2 08 00 A7 11 80 09 00 00 00 00 00 00 2A [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]SAM_PROTO_ClearQueue done [15:33:45]KKMCreateOFDPacket [15:33:45]OFDProtocolAddRootSTLVToBuf [15:33:45]FM_MakeSignedData [15:33:45]FM_MakeSignedData [15:33:45]SAM_PROTO_SignData [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 01 02 [15:33:45]Write to MH i2c: E2 08 00 A8 11 80 0D 01 02 00 00 00 00 32 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]wFMCommunicate request_size=255 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 02 02 FA 03 00 11 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 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [15:33:45]Write to MH i2c: E2 02 01 A9 11 80 0D 02 02 FA 00 03 00 11 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 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 FC [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 03 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [15:33:46]RAPDU: 90 00 [15:33:46]wFMCommunicate OK [15:33:46]wFMCommunicate request_size=32 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C4 00 00 35 04 06 00 B7 77 14 DA 7C 06 [15:33:46]Write to MH i2c: E2 23 00 AA 11 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C4 00 00 35 04 06 00 B7 77 14 DA 7C 06 00 00 70 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 03 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [15:33:46]RAPDU: 90 00 [15:33:46]wFMCommunicate OK [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 0D 03 02 [15:33:46]Write to MH i2c: E2 08 00 AB 11 80 0D 03 02 00 00 00 00 37 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0B 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0B 00 AB 11 00 3E BA 30 EA EF 86 0C 78 90 00 43 [15:33:46]RAPDU: 3E BA 30 EA EF 86 0C 78 90 00 [15:33:46]wFMCommunicate OK [15:33:46]SAM_PROTO_SignData done [15:33:46]FM_MakeSignedData done [15:33:46]CreateOFDProtocolMessage [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 11 00 00 [15:33:46]Write to MH i2c: E2 08 00 AC 11 80 11 00 00 00 00 00 00 37 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 17 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 17 00 AC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7E [15:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:33:46]wFMCommunicate OK [15:33:46]CreateOFDProtocolMessage done [15:33:46]OFDSenderStorePacket 50312 [15:33:46]StoreOFDPacket docnum=50312 [15:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 9B BB 1D 01 AC D1 5A 03 01 00 03 00 11 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 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C4 00 00 35 04 06 00 B7 77 14 DA 7C 06 3E BA 30 EA EF 86 0C 78 [15:33:46]CheckFolder [15:33:46]dirname=/storage/ofd_packets [15:33:46]CheckFolder done [15:33:46]ProducePacketName [15:33:46]name=ofd_packets/00050312 [15:33:46]NVStorageSaveData ofd_packets/00050312 [15:33:46]File name is /storage/ofd_packets/00050312 [15:33:46]Write 323 bytes [15:33:46]NVStorageSaveData done [15:33:46]OFDSenderStorePacket done [15:33:46]KKMCreateOFDPacket done [15:33:46]NVStorageSaveData kkm_last_timestamp [15:33:46]File name is /storage/kkm_last_timestamp [15:33:46]Write 4 bytes [15:33:46]NVStorageSaveData done [15:33:46]ExternCall_PrintAddStr [15:33:46]wPrintStart [15:33:46]Write to MH i2c: 01 00 00 AD 11 BE [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [15:33:46]RasterBufferAndPrint [15:33:46]line Счет N : (3)164218 [15:33:46]line ИНН: 02508201610067 [15:33:46]line Контрольно-Кассовый Чек [15:33:46]line ПРОДАЖА [15:33:46]line Товар: 4700001060169 [15:33:46]line Коньяк Бишкек 0,2л [15:33:46]line 1.000 * 330.00 [15:33:46]line = 330.00 [15:33:46]line НДС 12% НСП 1% [15:33:46]line > о реализуемом товаре [15:33:46]line ИТОГО: 330.00 [15:33:46]line НСП 1% : 2.92 [15:33:46]line НДС 12% : 35.04 [15:33:46]line Наличными: 330.00 [15:33:46]line Безнал.: 0.00 [15:33:46]line Место: АЗС № 80 "Партнер Нефть" [15:33:46]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:33:46]line СНО: Общий режим [15:33:46]line Чек 57 23.10.2024 15:33 [15:33:46]line Смена: 491 ФФД: 1.0 [15:33:46]line ЗНМ: 0300000090 [15:33:46]line РНМ: 0000000000097022 [15:33:46]line Версия ККМ: 001 [15:33:46]line ФМ: 0000000000875000 [15:33:46]line ФД: 50312 [15:33:46]line ФПД: 201722078854150 [15:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153348&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50312&fm=201722078854150&tin=02508201610067®Number=0000000000097022&sum=33000 [15:33:46]OFD Sender: Processing packet 50312 [packets to send 7, broken 6] [15:33:46]ProducePacketName [15:33:46]name=ofd_packets/00050312 [15:33:46]OFD Sender: To server: pG, [15:33:46]CommunicateWithHost lk.salyk.kg:30040 [15:33:46]ConnectInit lk.salyk.kg [15:33:46]line 0 [15:33:46]written 0, free lines is 4095 [15:33:46]Connected sock=10 [15:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 9B BB 1D 01 AC D1 5A 03 01 00 03 00 11 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 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C4 00 00 35 04 06 00 B7 77 14 DA 7C 06 3E BA 30 EA EF 86 0C 78 [15:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 66 47 00 2D 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C4 00 00 F4 03 04 00 F3 C2 18 67 B6 04 01 00 00 8C EF 5B 86 59 F4 9A B1 [15:33:46]CommunicateWithHost err = 0 [15:33:46]CheckOFDResponse [15:33:46]1017 (14) - 77093643461234 [15:33:46]1041 (16) - 0000000000875000 [15:33:46]1040 (4) - 50312 [15:33:46]1012 (4) - 23.10.2024 09:33 [15:33:46]1206 (1) - 0 [15:33:46]OFD Sender: Remove packet 50312 [15:33:46]ProducePacketName [15:33:46]name=ofd_packets/00050312 [15:33:46]NVStorageDeleteData [15:33:46]Write to MH i2c: 01 00 00 D5 11 E6 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 23 0D 1D [15:33:46]RasterBufferAndPrint [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]written 0, free lines is 3370 [15:33:47]process_action close_receipt done [15:33:47]requested_data is exist [15:33:47]produce_requested_data [15:33:47]requested_item fm.sn is exist - process it [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 11 00 00 [15:33:47]Write to MH i2c: E2 08 00 DC 11 80 11 00 00 00 00 00 00 67 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 17 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 17 00 DC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AE [15:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:33:47]wFMCommunicate OK [15:33:47]requested_item fd.num is exist - process it [15:33:47]SAM_PROTO_GetFieldsCounters [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 00 00 [15:33:47]Write to MH i2c: E2 08 00 DD 11 80 13 00 00 00 00 00 00 6A [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 62 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 62 00 DD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 88 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 88 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetFieldsCounters done [15:33:47]requested_item shift.num is exist - process it [15:33:47]requested_item shift.opened is exist - process it [15:33:47]req_shift_opened [15:33:47]FM_GetShiftState [15:33:47]SAM_PROTO_GetShiftState [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 01 00 [15:33:47]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 B8 [15:33:47]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetShiftState done [15:33:47]FM_GetShiftState done [15:33:47]req_shift_opened done [15:33:47]requested_item shift.open_date is exist - process it [15:33:47]req_shift_open_date [15:33:47]req_shift_open_date done [15:33:47]produce_requested_data done [15:33:47]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50312,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:33:47]process_action_free close_receipt [15:33:47]json_value_free [15:33:47]json_value_free done [15:33:47]process_json_proto returns [15:33:47]Send response to host [15:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50312,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:33:47]free response buf [15:33:47]execute_script done [15:33:47]execute_script returns [15:33:47]free content buf [15:33:47]Sock 7.Close socket [15:33:47]Sock 7.Thread stoped [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:25]accept exits with 9 [15:34:25]New connection [15:34:25]New thread 3067161956 created [15:34:25]Thread 3067305316 joined [15:34:25]Waiting for new connection... [15:34:25] Sock 9.Parse request [15:34:25]Sock 9.Check first char [15:34:25]Sock 9.First char is OK [15:34:25]request: POST /json_proto HTTP/1.0 [15:34:25]Method: POST [15:34:25]URL: /json_proto [15:34:25]Method is POST - this is cgi request [15:34:25]url: /json_proto [15:34:25]query_string will be loaded in cgi processing [15:34:25]execute_cgi json_proto POST (null) [15:34:25]execute_cgi path=json_proto method=POST [15:34:25]POST find Content-Length [15:34:25]Host: 172.17.49.196:8080 [15:34:25]Content-Length: 708 [15:34:25]Content-Type: application/json [15:34:25] [15:34:25]POST finish read [15:34:25]Found Content-Length = 708 [15:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164219", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\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" ] } } [15:34:25]execute_script... [15:34:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164219", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\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" ] } } [15:34:25]POST & json_proto [15:34:25]process_json_proto [15:34:25]json parsed OK: [15:34:25]protocol is kg_v1.0 [15:34:25]action value=close_receipt [15:34:25]process_action close_receipt [15:34:25]cmd_close_receipt [15:34:25]MH_GetDate [15:34:25]Write to MH i2c: F0 00 00 DF 11 DF [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 DF 11 00 85 17 19 67 BD 3B 11 67 74 [15:34:25]GetLastDocTimeStamp 1729697628 [15:34:25]current date 1729697669 [15:34:25]FM_GetShiftState [15:34:25]SAM_PROTO_GetShiftState [15:34:25]wFMCommunicate request_size=4 [15:34:25]MH_SAM_APDU [15:34:25]CAPDU: 80 13 01 00 [15:34:25]Write to MH i2c: E2 08 00 E0 11 80 13 01 00 00 00 00 00 6E [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:25]Read from MH i2c: E2 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 E0 11 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 BA [15:34:25]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:34:25]wFMCommunicate OK [15:34:25]SAM_PROTO_GetShiftState done [15:34:25]FM_GetShiftState done [15:34:25]opened in 1729642370 [15:34:25]opened+sec_in_day 1729728770 [15:34:25]quantity*price = 10000 [15:34:25]sum+1 = 10001 [15:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 58 23.10.2024 15:34 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50313 ФПД: 97439778663742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153429&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50313&fm=97439778663742&tin=02508201610067®Number=0000000000097022&sum=10000 0 [15:34:26]StoreToDocumentArchive [15:34:26]shift 491 fd 50313 [15:34:26]save to /storage/0491/doc_00050313 [15:34:26]save last doc name /storage/0491/doc_00050313 to /storage/kkm_last_doc_name [15:34:26]save OK [15:34:26]Clear old archive folders... [15:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:34:26]tlvbuf is 00220950 [15:34:26]SAM_PROTO_ClearQueue [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 09 00 00 [15:34:26]Write to MH i2c: E2 08 00 ED 11 80 09 00 00 00 00 00 00 70 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_ClearQueue done [15:34:26]KKMCreateOFDPacket [15:34:26]OFDProtocolAddRootSTLVToBuf [15:34:26]FM_MakeSignedData [15:34:26]FM_MakeSignedData [15:34:26]SAM_PROTO_SignData [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 01 02 [15:34:26]Write to MH i2c: E2 08 00 EE 11 80 0D 01 02 00 00 00 00 78 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=255 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 3A 00 00 00 F4 03 04 00 85 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 [15:34:26]Write to MH i2c: E2 02 01 EF 11 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 3A 00 00 00 F4 03 04 00 85 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 00 00 95 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=63 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C4 00 00 35 04 06 00 58 9E F7 64 ED 3E [15:34:26]Write to MH i2c: E2 42 00 F0 11 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C4 00 00 35 04 06 00 58 9E F7 64 ED 3E 00 00 7D [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 03 02 [15:34:27]Write to MH i2c: E2 08 00 F1 11 80 0D 03 02 00 00 00 00 7D [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 F1 11 00 F3 0F 76 9C AB 0B 36 55 90 00 D3 [15:34:27]RAPDU: F3 0F 76 9C AB 0B 36 55 90 00 [15:34:27]wFMCommunicate OK [15:34:27]SAM_PROTO_SignData done [15:34:27]FM_MakeSignedData done [15:34:27]CreateOFDProtocolMessage [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 11 00 00 [15:34:27]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 17 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C4 [15:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:34:27]wFMCommunicate OK [15:34:27]CreateOFDProtocolMessage done [15:34:27]OFDSenderStorePacket 50313 [15:34:27]StoreOFDPacket docnum=50313 [15:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 44 01 00 00 50 63 3C 01 08 FA 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 3A 00 00 00 F4 03 04 00 85 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C4 00 00 35 04 06 00 58 9E F7 64 ED 3E F3 0F 76 9C AB 0B 36 55 [15:34:27]CheckFolder [15:34:27]dirname=/storage/ofd_packets [15:34:27]CheckFolder done [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00050313 [15:34:27]NVStorageSaveData ofd_packets/00050313 [15:34:27]File name is /storage/ofd_packets/00050313 [15:34:27]Write 354 bytes [15:34:27]NVStorageSaveData done [15:34:27]OFDSenderStorePacket done [15:34:27]KKMCreateOFDPacket done [15:34:27]NVStorageSaveData kkm_last_timestamp [15:34:27]File name is /storage/kkm_last_timestamp [15:34:27]Write 4 bytes [15:34:27]NVStorageSaveData done [15:34:27]ExternCall_PrintAddStr [15:34:27]wPrintStart [15:34:27]Write to MH i2c: 01 00 00 F3 11 04 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 FF 0F 19 [15:34:27]RasterBufferAndPrint [15:34:27]line Счет N : (3)164219 [15:34:27]line ИНН: 02508201610067 [15:34:27]line Контрольно-Кассовый Чек [15:34:27]line ПРОДАЖА [15:34:27]line Товар: 5449000273680 [15:34:27]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [15:34:27]line 1.000 * 100.00 [15:34:27]line = 100.00 [15:34:27]line НДС 12% НСП 1% [15:34:27]line > о реализуемом товаре [15:34:27]line ИТОГО: 100.00 [15:34:27]line НСП 1% : 0.88 [15:34:27]line НДС 12% : 10.62 [15:34:27]line Наличными: 100.00 [15:34:27]line Безнал.: 0.00 [15:34:27]line Место: АЗС № 80 "Партнер Нефть" [15:34:27]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:34:27]line СНО: Общий режим [15:34:27]line Чек 58 23.10.2024 15:34 [15:34:27]line Смена: 491 ФФД: 1.0 [15:34:27]line ЗНМ: 0300000090 [15:34:27]line РНМ: 0000000000097022 [15:34:27]line Версия ККМ: 001 [15:34:27]line ФМ: 0000000000875000 [15:34:27]line ФД: 50313 [15:34:27]line ФПД: 97439778663742 [15:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153429&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50313&fm=97439778663742&tin=02508201610067®Number=0000000000097022&sum=10000 [15:34:27]line 0 [15:34:27]OFD Sender: Processing packet 50313 [packets to send 7, broken 6] [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00050313 [15:34:27]OFD Sender: To server: pG, [15:34:27]CommunicateWithHost lk.salyk.kg:30040 [15:34:27]ConnectInit lk.salyk.kg [15:34:27]written 0, free lines is 4095 [15:34:27]Connected sock=10 [15:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 44 01 00 00 50 63 3C 01 08 FA 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 3A 00 00 00 F4 03 04 00 85 17 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C4 00 00 35 04 06 00 58 9E F7 64 ED 3E F3 0F 76 9C AB 0B 36 55 [15:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 8E 7B 47 00 B4 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C4 00 00 F4 03 04 00 1C C3 18 67 B6 04 01 00 00 62 31 DA 07 42 1C 11 06 [15:34:27]CommunicateWithHost err = 0 [15:34:27]CheckOFDResponse [15:34:27]1017 (14) - 77093643461234 [15:34:27]1041 (16) - 0000000000875000 [15:34:27]1040 (4) - 50313 [15:34:27]1012 (4) - 23.10.2024 09:34 [15:34:27]1206 (1) - 0 [15:34:27]OFD Sender: Remove packet 50313 [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00050313 [15:34:27]NVStorageDeleteData [15:34:27]Write to MH i2c: 01 00 00 1C 12 2E [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 06 0D 48 [15:34:27]RasterBufferAndPrint [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]written 0, free lines is 3340 [15:34:27]process_action close_receipt done [15:34:27]requested_data is exist [15:34:27]produce_requested_data [15:34:27]requested_item fm.sn is exist - process it [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 11 00 00 [15:34:27]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:27]Read from MH i2c: E2 17 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F6 [15:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:34:27]wFMCommunicate OK [15:34:27]requested_item fd.num is exist - process it [15:34:27]SAM_PROTO_GetFieldsCounters [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 13 00 00 [15:34:27]Write to MH i2c: E2 08 00 24 12 80 13 00 00 00 00 00 00 B2 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 62 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 62 00 24 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 89 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 89 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:28]wFMCommunicate OK [15:34:28]SAM_PROTO_GetFieldsCounters done [15:34:28]requested_item shift.num is exist - process it [15:34:28]requested_item shift.opened is exist - process it [15:34:28]req_shift_opened [15:34:28]FM_GetShiftState [15:34:28]SAM_PROTO_GetShiftState [15:34:28]wFMCommunicate request_size=4 [15:34:28]MH_SAM_APDU [15:34:28]CAPDU: 80 13 01 00 [15:34:28]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0E 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 00 [15:34:28]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:34:28]wFMCommunicate OK [15:34:28]SAM_PROTO_GetShiftState done [15:34:28]FM_GetShiftState done [15:34:28]req_shift_opened done [15:34:28]requested_item shift.open_date is exist - process it [15:34:28]req_shift_open_date [15:34:28]req_shift_open_date done [15:34:28]produce_requested_data done [15:34:28]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50313,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:34:28]process_action_free close_receipt [15:34:28]json_value_free [15:34:28]json_value_free done [15:34:28]process_json_proto returns [15:34:28]Send response to host [15:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50313,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:34:28]free response buf [15:34:28]execute_script done [15:34:28]execute_script returns [15:34:28]free content buf [15:34:28]Sock 9.Close socket [15:34:28]Sock 9.Thread stoped [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [15:41:45]New connection [15:41:45]New thread 3067305316 created [15:41:45]Thread 3067161956 joined [15:41:45]Waiting for new connection... [15:41:45] Sock 7.Parse request [15:41:45]Sock 7.Check first char [15:41:45]Sock 7.First char is OK [15:41:45]request: POST /json_proto HTTP/1.0 [15:41:45]Method: POST [15:41:45]URL: /json_proto [15:41:45]Method is POST - this is cgi request [15:41:45]url: /json_proto [15:41:45]query_string will be loaded in cgi processing [15:41:45]execute_cgi json_proto POST (null) [15:41:45]execute_cgi path=json_proto method=POST [15:41:45]POST find Content-Length [15:41:45]Host: 172.17.49.196:8080 [15:41:45]Content-Length: 895 [15:41:45]Content-Type: application/json [15:41:45] [15:41:45]POST finish read [15:41:45]Found Content-Length = 895 [15:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164220", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:45]execute_script... [15:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164220", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:45]POST & json_proto [15:41:45]process_json_proto [15:41:45]json parsed OK: [15:41:45]protocol is kg_v1.0 [15:41:45]action value=close_receipt [15:41:45]process_action close_receipt [15:41:45]cmd_close_receipt [15:41:45]MH_GetDate [15:41:45]Write to MH i2c: F0 00 00 26 12 27 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 09 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 09 00 26 12 00 3D 19 19 67 BD 3B 11 67 76 [15:41:45]GetLastDocTimeStamp 1729697669 [15:41:45]current date 1729698109 [15:41:45]FM_GetShiftState [15:41:45]SAM_PROTO_GetShiftState [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 13 01 00 [15:41:45]Write to MH i2c: E2 08 00 27 12 80 13 01 00 00 00 00 00 B6 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:45]Read from MH i2c: E2 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 0E 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 0E 00 27 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 02 [15:41:45]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:41:45]wFMCommunicate OK [15:41:45]SAM_PROTO_GetShiftState done [15:41:45]FM_GetShiftState done [15:41:45]opened in 1729642370 [15:41:45]opened+sec_in_day 1729728770 [15:41:45]quantity*price = 12500 [15:41:45]sum+1 = 12501 [15:41:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 59 23.10.2024 15:41 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50314 ФПД: 157782329471443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154149&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50314&fm=157782329471443&tin=02508201610067®Number=0000000000097022&sum=26900 0 [15:41:46]StoreToDocumentArchive [15:41:46]shift 491 fd 50314 [15:41:46]save to /storage/0491/doc_00050314 [15:41:46]save last doc name /storage/0491/doc_00050314 to /storage/kkm_last_doc_name [15:41:46]save OK [15:41:46]Clear old archive folders... [15:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=381 [15:41:46]tlvbuf is 00228620 [15:41:46]SAM_PROTO_ClearQueue [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 09 00 00 [15:41:46]Write to MH i2c: E2 08 00 34 12 80 09 00 00 00 00 00 00 B8 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_ClearQueue done [15:41:46]KKMCreateOFDPacket [15:41:46]OFDProtocolAddRootSTLVToBuf [15:41:46]FM_MakeSignedData [15:41:46]FM_MakeSignedData [15:41:46]SAM_PROTO_SignData [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 01 02 [15:41:46]Write to MH i2c: E2 08 00 35 12 80 0D 01 02 00 00 00 00 C0 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=255 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 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 D0 BB 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 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 [15:41:46]Write to MH i2c: E2 02 01 36 12 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 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 D0 BB 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 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 2F [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 03 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [15:41:47]RAPDU: 90 00 [15:41:47]wFMCommunicate OK [15:41:47]wFMCommunicate request_size=140 [15:41:47]MH_SAM_APDU [15:41:47]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3D 19 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C4 00 00 35 04 06 00 8F 80 8F B3 31 D3 [15:41:47]Write to MH i2c: E2 8F 00 37 12 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3D 19 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C4 00 00 35 04 06 00 8F 80 8F B3 31 D3 00 00 3D [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 03 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [15:41:47]RAPDU: 90 00 [15:41:47]wFMCommunicate OK [15:41:47]wFMCommunicate request_size=4 [15:41:47]MH_SAM_APDU [15:41:47]CAPDU: 80 0D 03 02 [15:41:47]Write to MH i2c: E2 08 00 38 12 80 0D 03 02 00 00 00 00 C5 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0B 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0B 00 38 12 00 EC DA 2D 74 FF 23 4D A3 90 00 3F [15:41:47]RAPDU: EC DA 2D 74 FF 23 4D A3 90 00 [15:41:47]wFMCommunicate OK [15:41:47]SAM_PROTO_SignData done [15:41:47]FM_MakeSignedData done [15:41:47]CreateOFDProtocolMessage [15:41:47]wFMCommunicate request_size=4 [15:41:47]MH_SAM_APDU [15:41:47]CAPDU: 80 11 00 00 [15:41:47]Write to MH i2c: E2 08 00 39 12 80 11 00 00 00 00 00 00 C5 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 17 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 17 00 39 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0C [15:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:41:47]wFMCommunicate OK [15:41:47]CreateOFDProtocolMessage done [15:41:47]OFDSenderStorePacket 50314 [15:41:47]StoreOFDPacket docnum=50314 [15:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 91 01 00 00 B5 C6 89 01 D3 C2 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 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 D0 BB 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 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3D 19 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C4 00 00 35 04 06 00 8F 80 8F B3 31 D3 EC DA 2D 74 FF 23 4D A3 [15:41:47]CheckFolder [15:41:47]dirname=/storage/ofd_packets [15:41:47]CheckFolder done [15:41:47]ProducePacketName [15:41:47]name=ofd_packets/00050314 [15:41:47]NVStorageSaveData ofd_packets/00050314 [15:41:47]File name is /storage/ofd_packets/00050314 [15:41:47]Write 431 bytes [15:41:47]NVStorageSaveData done [15:41:47]OFDSenderStorePacket done [15:41:47]KKMCreateOFDPacket done [15:41:47]NVStorageSaveData kkm_last_timestamp [15:41:47]File name is /storage/kkm_last_timestamp [15:41:47]Write 4 bytes [15:41:47]NVStorageSaveData done [15:41:47]ExternCall_PrintAddStr [15:41:47]wPrintStart [15:41:47]Write to MH i2c: 01 00 00 3A 12 4C [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 FF 0F 61 [15:41:47]RasterBufferAndPrint [15:41:47]line Счет N : (3)164220 [15:41:47]line ИНН: 02508201610067 [15:41:47]line Контрольно-Кассовый Чек [15:41:47]line ПРОДАЖА [15:41:47]line Товар: 5449000054227 [15:41:47]line Напиток Кока-Кола 1л [15:41:47]line 1.000 * 125.00 [15:41:47]line = 125.00 [15:41:47]line НДС 12% НСП 1% [15:41:47]line > о реализуемом товаре [15:41:47]line Товар: 48743570 [15:41:47]line Сигареты Winston XStyle Blue [15:41:47]line 1.000 * 144.00 [15:41:47]line = 144.00 [15:41:47]line НДС 12% НСП 1% [15:41:47]line > о реализуемом товаре [15:41:47]line ИТОГО: 269.00 [15:41:47]line НСП 1% : 2.38 [15:41:47]line НДС 12% : 28.56 [15:41:47]line Наличными: 269.00 [15:41:47]line Безнал.: 0.00 [15:41:47]line Место: АЗС № 80 "Партнер Нефть" [15:41:47]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:41:47]line СНО: Общий режим [15:41:47]line Чек 59 23.10.2024 15:41 [15:41:47]line Смена: 491 ФФД: 1.0 [15:41:47]line ЗНМ: 0300000090 [15:41:47]line РНМ: 0000000000097022 [15:41:47]line Версия ККМ: 001 [15:41:47]line ФМ: 0000000000875000 [15:41:47]line ФД: 50314 [15:41:47]line ФПД: 157782329471443 [15:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154149&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50314&fm=157782329471443&tin=02508201610067®Number=0000000000097022&sum=26900 [15:41:47]line 0 [15:41:47]OFD Sender: Processing packet 50314 [packets to send 7, broken 6] [15:41:47]ProducePacketName [15:41:47]name=ofd_packets/00050314 [15:41:47]OFD Sender: To server: pG, [15:41:47]CommunicateWithHost lk.salyk.kg:30040 [15:41:47]ConnectInit lk.salyk.kg [15:41:47]written 0, free lines is 4095 [15:41:47]Connected sock=9 [15:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 91 01 00 00 B5 C6 89 01 D3 C2 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 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 D0 BB 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 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3D 19 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C4 00 00 35 04 06 00 8F 80 8F B3 31 D3 EC DA 2D 74 FF 23 4D A3 [15:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 14 28 47 00 B5 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C4 00 00 F4 03 04 00 D4 C4 18 67 B6 04 01 00 00 80 29 99 F4 AE C3 A8 E3 [15:41:48]CommunicateWithHost err = 0 [15:41:48]CheckOFDResponse [15:41:48]1017 (14) - 77093643461234 [15:41:48]1041 (16) - 0000000000875000 [15:41:48]1040 (4) - 50314 [15:41:48]1012 (4) - 23.10.2024 09:41 [15:41:48]1206 (1) - 0 [15:41:48]OFD Sender: Remove packet 50314 [15:41:48]ProducePacketName [15:41:48]name=ofd_packets/00050314 [15:41:48]NVStorageDeleteData [15:41:48]Write to MH i2c: 01 00 00 68 12 7A [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: 01 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: 01 07 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 DB 0C 68 [15:41:48]RasterBufferAndPrint [15:41:48]line [15:41:48]line [15:41:48]line [15:41:48]line [15:41:48]line [15:41:48]written 0, free lines is 3300 [15:41:48]process_action close_receipt done [15:41:48]requested_data is exist [15:41:48]produce_requested_data [15:41:48]requested_item fm.sn is exist - process it [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 11 00 00 [15:41:48]Write to MH i2c: E2 08 00 6F 12 80 11 00 00 00 00 00 00 FB [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 17 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 17 00 6F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 42 [15:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:41:48]wFMCommunicate OK [15:41:48]requested_item fd.num is exist - process it [15:41:48]SAM_PROTO_GetFieldsCounters [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 13 00 00 [15:41:48]Write to MH i2c: E2 08 00 70 12 80 13 00 00 00 00 00 00 FE [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 62 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 62 00 70 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [15:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_GetFieldsCounters done [15:41:48]requested_item shift.num is exist - process it [15:41:48]requested_item shift.opened is exist - process it [15:41:48]req_shift_opened [15:41:48]FM_GetShiftState [15:41:48]SAM_PROTO_GetShiftState [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 13 01 00 [15:41:48]Write to MH i2c: E2 08 00 71 12 80 13 01 00 00 00 00 00 00 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 0E 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 0E 00 71 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 4C [15:41:48]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_GetShiftState done [15:41:48]FM_GetShiftState done [15:41:48]req_shift_opened done [15:41:48]requested_item shift.open_date is exist - process it [15:41:48]req_shift_open_date [15:41:48]req_shift_open_date done [15:41:48]produce_requested_data done [15:41:48]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50314,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:41:48]process_action_free close_receipt [15:41:48]json_value_free [15:41:48]json_value_free done [15:41:48]process_json_proto returns [15:41:48]Send response to host [15:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50314,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:41:48]free response buf [15:41:48]execute_script done [15:41:48]execute_script returns [15:41:48]free content buf [15:41:48]Sock 7.Close socket [15:41:48]Sock 7.Thread stoped [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:16]accept exits with 10 [15:49:16]New connection [15:49:16]New thread 3067161956 created [15:49:16]Thread 3067305316 joined [15:49:16]Waiting for new connection... [15:49:16] Sock 10.Parse request [15:49:16]Sock 10.Check first char [15:49:16]Sock 10.First char is OK [15:49:16]request: POST /json_proto HTTP/1.0 [15:49:16]Method: POST [15:49:16]URL: /json_proto [15:49:16]Method is POST - this is cgi request [15:49:16]url: /json_proto [15:49:16]query_string will be loaded in cgi processing [15:49:16]execute_cgi json_proto POST (null) [15:49:16]execute_cgi path=json_proto method=POST [15:49:16]POST find Content-Length [15:49:16]Host: 172.17.49.196:8080 [15:49:16]Content-Length: 646 [15:49:16]Content-Type: application/json [15:49:16] [15:49:16]POST finish read [15:49:16]Found Content-Length = 646 [15:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164221", "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" ] } } [15:49:16]execute_script... [15:49: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)164221", "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" ] } } [15:49:16]POST & json_proto [15:49:16]process_json_proto [15:49:16]json parsed OK: [15:49:16]protocol is kg_v1.0 [15:49:16]action value=close_receipt [15:49:16]process_action close_receipt [15:49:16]cmd_close_receipt [15:49:16]MH_GetDate [15:49:16]Write to MH i2c: F0 00 00 72 12 73 [15:49:16]Write i2c OK [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 09 00 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 09 00 72 12 00 00 1B 19 67 BD 3B 11 67 87 [15:49:16]GetLastDocTimeStamp 1729698109 [15:49:16]current date 1729698560 [15:49:16]FM_GetShiftState [15:49:16]SAM_PROTO_GetShiftState [15:49:16]wFMCommunicate request_size=4 [15:49:16]MH_SAM_APDU [15:49:16]CAPDU: 80 13 01 00 [15:49:16]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [15:49:16]Write i2c OK [15:49:16]MH_I2C_Read... [15:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:16]Read from MH i2c: E2 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: E2 0E 00 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 4E [15:49:16]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:49:16]wFMCommunicate OK [15:49:16]SAM_PROTO_GetShiftState done [15:49:16]FM_GetShiftState done [15:49:16]opened in 1729642370 [15:49:16]opened+sec_in_day 1729728770 [15:49:16]quantity*price = 13000 [15:49:16]sum+1 = 13001 [15:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 60 23.10.2024 15:49 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50315 ФПД: 164509327248010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154920&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50315&fm=164509327248010&tin=02508201610067®Number=0000000000097022&sum=13000 0 [15:49:17]StoreToDocumentArchive [15:49:17]shift 491 fd 50315 [15:49:17]save to /storage/0491/doc_00050315 [15:49:17]save last doc name /storage/0491/doc_00050315 to /storage/kkm_last_doc_name [15:49:17]save OK [15:49:17]Clear old archive folders... [15:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:49:17]tlvbuf is 002448C0 [15:49:17]SAM_PROTO_ClearQueue [15:49:17]wFMCommunicate request_size=4 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 09 00 00 [15:49:17]Write to MH i2c: E2 08 00 80 12 80 09 00 00 00 00 00 00 04 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]SAM_PROTO_ClearQueue done [15:49:17]KKMCreateOFDPacket [15:49:17]OFDProtocolAddRootSTLVToBuf [15:49:17]FM_MakeSignedData [15:49:17]FM_MakeSignedData [15:49:17]SAM_PROTO_SignData [15:49:17]wFMCommunicate request_size=4 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 0D 01 02 [15:49:17]Write to MH i2c: E2 08 00 81 12 80 0D 01 02 00 00 00 00 0C [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]wFMCommunicate request_size=255 [15:49:17]MH_SAM_APDU [15:49:17]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 3C 00 00 00 F4 03 04 00 00 1B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [15:49:17]Write to MH i2c: E2 02 01 82 12 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 3C 00 00 00 F4 03 04 00 00 1B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 D9 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]wFMCommunicate request_size=41 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C4 00 00 35 04 06 00 95 9E D0 03 4A 8A [15:49:17]Write to MH i2c: E2 2C 00 83 12 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C4 00 00 35 04 06 00 95 9E D0 03 4A 8A 00 00 FB [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 03 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [15:49:18]RAPDU: 90 00 [15:49:18]wFMCommunicate OK [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 0D 03 02 [15:49:18]Write to MH i2c: E2 08 00 84 12 80 0D 03 02 00 00 00 00 11 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 0B 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 0B 00 84 12 00 DE 6A 6E F1 7F 8A A9 37 90 00 A2 [15:49:18]RAPDU: DE 6A 6E F1 7F 8A A9 37 90 00 [15:49:18]wFMCommunicate OK [15:49:18]SAM_PROTO_SignData done [15:49:18]FM_MakeSignedData done [15:49:18]CreateOFDProtocolMessage [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 11 00 00 [15:49:18]Write to MH i2c: E2 08 00 85 12 80 11 00 00 00 00 00 00 11 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 85 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 58 [15:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:49:18]wFMCommunicate OK [15:49:18]CreateOFDProtocolMessage done [15:49:18]OFDSenderStorePacket 50315 [15:49:18]StoreOFDPacket docnum=50315 [15:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 07 6E 26 01 5F EB 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 3C 00 00 00 F4 03 04 00 00 1B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C4 00 00 35 04 06 00 95 9E D0 03 4A 8A DE 6A 6E F1 7F 8A A9 37 [15:49:18]CheckFolder [15:49:18]dirname=/storage/ofd_packets [15:49:18]CheckFolder done [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00050315 [15:49:18]NVStorageSaveData ofd_packets/00050315 [15:49:18]File name is /storage/ofd_packets/00050315 [15:49:18]Write 332 bytes [15:49:18]NVStorageSaveData done [15:49:18]OFDSenderStorePacket done [15:49:18]KKMCreateOFDPacket done [15:49:18]NVStorageSaveData kkm_last_timestamp [15:49:18]File name is /storage/kkm_last_timestamp [15:49:18]Write 4 bytes [15:49:18]NVStorageSaveData done [15:49:18]ExternCall_PrintAddStr [15:49:18]wPrintStart [15:49:18]Write to MH i2c: 01 00 00 86 12 98 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 86 12 00 00 00 00 00 FF 0F AD [15:49:18]RasterBufferAndPrint [15:49:18]line Счет N : (3)164221 [15:49:18]line ИНН: 02508201610067 [15:49:18]line Контрольно-Кассовый Чек [15:49:18]line ПРОДАЖА [15:49:18]line Товар: 2000036220012 [15:49:18]line Кофе Капучино XL(GABB TRADE) [15:49:18]line 1.000 * 130.00 [15:49:18]line = 130.00 [15:49:18]line НДС 12% НСП 1% [15:49:18]line > о реализуемом товаре [15:49:18]line ИТОГО: 130.00 [15:49:18]line НСП 1% : 1.15 [15:49:18]line НДС 12% : 13.80 [15:49:18]line Наличными: 130.00 [15:49:18]line Безнал.: 0.00 [15:49:18]line Место: АЗС № 80 "Партнер Нефть" [15:49:18]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:49:18]line СНО: Общий режим [15:49:18]line Чек 60 23.10.2024 15:49 [15:49:18]line Смена: 491 ФФД: 1.0 [15:49:18]line ЗНМ: 0300000090 [15:49:18]line РНМ: 0000000000097022 [15:49:18]line Версия ККМ: 001 [15:49:18]line ФМ: 0000000000875000 [15:49:18]line ФД: 50315 [15:49:18]line ФПД: 164509327248010 [15:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154920&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50315&fm=164509327248010&tin=02508201610067®Number=0000000000097022&sum=13000 [15:49:18]line 0 [15:49:18]OFD Sender: Processing packet 50315 [packets to send 7, broken 6] [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00050315 [15:49:18]OFD Sender: To server: pG, [15:49:18]CommunicateWithHost lk.salyk.kg:30040 [15:49:18]ConnectInit lk.salyk.kg [15:49:18]written 0, free lines is 4095 [15:49:18]Connected sock=9 [15:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 07 6E 26 01 5F EB 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 3C 00 00 00 F4 03 04 00 00 1B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C4 00 00 35 04 06 00 95 9E D0 03 4A 8A DE 6A 6E F1 7F 8A A9 37 [15:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D0 FD 47 00 AC 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C4 00 00 F4 03 04 00 97 C6 18 67 B6 04 01 00 00 5C 47 4A 70 2D D6 1B CC [15:49:18]CommunicateWithHost err = 0 [15:49:18]CheckOFDResponse [15:49:18]1017 (14) - 77093643461234 [15:49:18]1041 (16) - 0000000000875000 [15:49:18]1040 (4) - 50315 [15:49:18]1012 (4) - 23.10.2024 09:49 [15:49:18]1206 (1) - 0 [15:49:18]OFD Sender: Remove packet 50315 [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00050315 [15:49:18]NVStorageDeleteData [15:49:18]Write to MH i2c: 01 00 00 AF 12 C1 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 02 0D D7 [15:49:18]RasterBufferAndPrint [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]written 0, free lines is 3336 [15:49:18]process_action close_receipt done [15:49:18]requested_data is exist [15:49:18]produce_requested_data [15:49:18]requested_item fm.sn is exist - process it [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 11 00 00 [15:49:18]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 B6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 89 [15:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:49:19]wFMCommunicate OK [15:49:19]requested_item fd.num is exist - process it [15:49:19]SAM_PROTO_GetFieldsCounters [15:49:19]wFMCommunicate request_size=4 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 13 00 00 [15:49:19]Write to MH i2c: E2 08 00 B7 12 80 13 00 00 00 00 00 00 45 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 62 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 62 00 B7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:19]wFMCommunicate OK [15:49:19]SAM_PROTO_GetFieldsCounters done [15:49:19]requested_item shift.num is exist - process it [15:49:19]requested_item shift.opened is exist - process it [15:49:19]req_shift_opened [15:49:19]FM_GetShiftState [15:49:19]SAM_PROTO_GetShiftState [15:49:19]wFMCommunicate request_size=4 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 13 01 00 [15:49:19]Write to MH i2c: E2 08 00 B8 12 80 13 01 00 00 00 00 00 47 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 0E 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 0E 00 B8 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 93 [15:49:19]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [15:49:19]wFMCommunicate OK [15:49:19]SAM_PROTO_GetShiftState done [15:49:19]FM_GetShiftState done [15:49:19]req_shift_opened done [15:49:19]requested_item shift.open_date is exist - process it [15:49:19]req_shift_open_date [15:49:19]req_shift_open_date done [15:49:19]produce_requested_data done [15:49:19]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50315,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [15:49:19]process_action_free close_receipt [15:49:19]json_value_free [15:49:19]json_value_free done [15:49:19]process_json_proto returns [15:49:19]Send response to host [15:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50315,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [15:49:19]free response buf [15:49:19]execute_script done [15:49:19]execute_script returns [15:49:19]free content buf [15:49:19]Sock 10.Close socket [15:49:19]Sock 10.Thread stoped [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]accept exits with 7 [16:01:49]New connection [16:01:49]New thread 3067305316 created [16:01:49]Thread 3067161956 joined [16:01:49]Waiting for new connection... [16:01:49] Sock 7.Parse request [16:01:49]Sock 7.Check first char [16:01:49]Sock 7.First char is OK [16:01:49]request: POST /json_proto HTTP/1.0 [16:01:49]Method: POST [16:01:49]URL: /json_proto [16:01:49]Method is POST - this is cgi request [16:01:49]url: /json_proto [16:01:49]query_string will be loaded in cgi processing [16:01:49]execute_cgi json_proto POST (null) [16:01:49]execute_cgi path=json_proto method=POST [16:01:49]POST find Content-Length [16:01:49]Host: 172.17.49.196:8080 [16:01:49]Content-Length: 623 [16:01:49]Content-Type: application/json [16:01:49] [16:01:49]POST finish read [16:01:49]Found Content-Length = 623 [16:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164222", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:49]execute_script... [16:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164222", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:49]POST & json_proto [16:01:49]process_json_proto [16:01:49]json parsed OK: [16:01:49]protocol is kg_v1.0 [16:01:49]action value=close_receipt [16:01:49]process_action close_receipt [16:01:49]cmd_close_receipt [16:01:49]MH_GetDate [16:01:49]Write to MH i2c: F0 00 00 B9 12 BA [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 09 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 09 00 B9 12 00 F1 1D 19 67 BD 3B 11 67 C1 [16:01:49]GetLastDocTimeStamp 1729698560 [16:01:49]current date 1729699313 [16:01:49]FM_GetShiftState [16:01:49]SAM_PROTO_GetShiftState [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 13 01 00 [16:01:49]Write to MH i2c: E2 08 00 BA 12 80 13 01 00 00 00 00 00 49 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0E 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0E 00 BA 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 95 [16:01:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:01:49]wFMCommunicate OK [16:01:49]SAM_PROTO_GetShiftState done [16:01:49]FM_GetShiftState done [16:01:49]opened in 1729642370 [16:01:49]opened+sec_in_day 1729728770 [16:01:49]quantity*price = 14400 [16:01:49]sum+1 = 14401 [16:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 61 23.10.2024 16:01 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50316 ФПД: 142448685223538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50316&fm=142448685223538&tin=02508201610067®Number=0000000000097022&sum=14400 0 [16:01:50]StoreToDocumentArchive [16:01:50]shift 491 fd 50316 [16:01:50]save to /storage/0491/doc_00050316 [16:01:50]save last doc name /storage/0491/doc_00050316 to /storage/kkm_last_doc_name [16:01:50]save OK [16:01:50]Clear old archive folders... [16:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:01:50]tlvbuf is 0025CE20 [16:01:50]SAM_PROTO_ClearQueue [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 09 00 00 [16:01:50]Write to MH i2c: E2 08 00 C7 12 80 09 00 00 00 00 00 00 4B [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [16:01:50]RAPDU: 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_ClearQueue done [16:01:50]KKMCreateOFDPacket [16:01:50]OFDProtocolAddRootSTLVToBuf [16:01:50]FM_MakeSignedData [16:01:50]FM_MakeSignedData [16:01:50]SAM_PROTO_SignData [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 0D 01 02 [16:01:50]Write to MH i2c: E2 08 00 C8 12 80 0D 01 02 00 00 00 00 53 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [16:01:50]RAPDU: 90 00 [16:01:50]wFMCommunicate OK [16:01:50]wFMCommunicate request_size=255 [16:01:50]MH_SAM_APDU [16:01:50]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3D 00 00 00 F4 03 04 00 F1 1D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [16:01:50]Write to MH i2c: E2 02 01 C9 12 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3D 00 00 00 F4 03 04 00 F1 1D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 0A [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [16:01:50]RAPDU: 90 00 [16:01:50]wFMCommunicate OK [16:01:50]wFMCommunicate request_size=34 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C4 00 00 35 04 06 00 81 8E 6B 48 0E 72 [16:01:50]Write to MH i2c: E2 25 00 CA 12 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C4 00 00 35 04 06 00 81 8E 6B 48 0E 72 00 00 9D [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [16:01:50]RAPDU: 90 00 [16:01:50]wFMCommunicate OK [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 0D 03 02 [16:01:50]Write to MH i2c: E2 08 00 CB 12 80 0D 03 02 00 00 00 00 58 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0B 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0B 00 CB 12 00 70 4F 2D BD 86 4B CB 82 90 00 20 [16:01:50]RAPDU: 70 4F 2D BD 86 4B CB 82 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_SignData done [16:01:50]FM_MakeSignedData done [16:01:50]CreateOFDProtocolMessage [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 11 00 00 [16:01:50]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 17 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9F [16:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:01:50]wFMCommunicate OK [16:01:50]CreateOFDProtocolMessage done [16:01:50]OFDSenderStorePacket 50316 [16:01:50]StoreOFDPacket docnum=50316 [16:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 73 94 1F 01 72 2F 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3D 00 00 00 F4 03 04 00 F1 1D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C4 00 00 35 04 06 00 81 8E 6B 48 0E 72 70 4F 2D BD 86 4B CB 82 [16:01:50]CheckFolder [16:01:50]dirname=/storage/ofd_packets [16:01:50]CheckFolder done [16:01:50]ProducePacketName [16:01:50]name=ofd_packets/00050316 [16:01:50]NVStorageSaveData ofd_packets/00050316 [16:01:50]File name is /storage/ofd_packets/00050316 [16:01:50]Write 325 bytes [16:01:50]NVStorageSaveData done [16:01:50]OFDSenderStorePacket done [16:01:50]KKMCreateOFDPacket done [16:01:50]NVStorageSaveData kkm_last_timestamp [16:01:50]File name is /storage/kkm_last_timestamp [16:01:50]Write 4 bytes [16:01:50]NVStorageSaveData done [16:01:50]ExternCall_PrintAddStr [16:01:50]wPrintStart [16:01:50]Write to MH i2c: 01 00 00 CD 12 DF [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: 01 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: 01 07 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [16:01:50]RasterBufferAndPrint [16:01:50]line Счет N : (3)164222 [16:01:50]line ИНН: 02508201610067 [16:01:50]line Контрольно-Кассовый Чек [16:01:50]line ПРОДАЖА [16:01:50]line Товар: 48743587 [16:01:50]line Сигареты Winston XStyle Silver [16:01:50]line 1.000 * 144.00 [16:01:50]line = 144.00 [16:01:50]line НДС 12% НСП 1% [16:01:50]line > о реализуемом товаре [16:01:50]line ИТОГО: 144.00 [16:01:50]line НСП 1% : 1.27 [16:01:50]line НДС 12% : 15.29 [16:01:50]line Наличными: 144.00 [16:01:50]line Безнал.: 0.00 [16:01:50]line Место: АЗС № 80 "Партнер Нефть" [16:01:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:01:51]line СНО: Общий режим [16:01:51]line Чек 61 23.10.2024 16:01 [16:01:51]line Смена: 491 ФФД: 1.0 [16:01:51]line ЗНМ: 0300000090 [16:01:51]line РНМ: 0000000000097022 [16:01:51]line Версия ККМ: 001 [16:01:51]line ФМ: 0000000000875000 [16:01:51]line ФД: 50316 [16:01:51]line ФПД: 142448685223538 [16:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50316&fm=142448685223538&tin=02508201610067®Number=0000000000097022&sum=14400 [16:01:51]OFD Sender: Processing packet 50316 [packets to send 7, broken 6] [16:01:51]ProducePacketName [16:01:51]name=ofd_packets/00050316 [16:01:51]OFD Sender: To server: pG, [16:01:51]CommunicateWithHost lk.salyk.kg:30040 [16:01:51]ConnectInit lk.salyk.kg [16:01:51]line 0 [16:01:51]written 0, free lines is 4095 [16:01:51]Connected sock=10 [16:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 73 94 1F 01 72 2F 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3D 00 00 00 F4 03 04 00 F1 1D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C4 00 00 35 04 06 00 81 8E 6B 48 0E 72 70 4F 2D BD 86 4B CB 82 [16:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 6C 22 47 00 31 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C4 00 00 F4 03 04 00 87 C9 18 67 B6 04 01 00 00 7E B7 5F 96 42 3A E4 EC [16:01:51]CommunicateWithHost err = 0 [16:01:51]CheckOFDResponse [16:01:51]1017 (14) - 77093643461234 [16:01:51]1041 (16) - 0000000000875000 [16:01:51]1040 (4) - 50316 [16:01:51]1012 (4) - 23.10.2024 10:01 [16:01:51]1206 (1) - 0 [16:01:51]OFD Sender: Remove packet 50316 [16:01:51]ProducePacketName [16:01:51]name=ofd_packets/00050316 [16:01:51]NVStorageDeleteData [16:01:51]Write to MH i2c: 01 00 00 F6 12 08 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 07 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 07 0D 23 [16:01:51]RasterBufferAndPrint [16:01:51]line [16:01:51]line [16:01:51]line [16:01:51]line [16:01:51]line [16:01:51]written 0, free lines is 3344 [16:01:51]process_action close_receipt done [16:01:51]requested_data is exist [16:01:51]produce_requested_data [16:01:51]requested_item fm.sn is exist - process it [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 11 00 00 [16:01:51]Write to MH i2c: E2 08 00 FD 12 80 11 00 00 00 00 00 00 89 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 FD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D0 [16:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:01:51]wFMCommunicate OK [16:01:51]requested_item fd.num is exist - process it [16:01:51]SAM_PROTO_GetFieldsCounters [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 13 00 00 [16:01:51]Write to MH i2c: E2 08 00 FE 12 80 13 00 00 00 00 00 00 8C [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 62 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 62 00 FE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [16:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:52]wFMCommunicate OK [16:01:52]SAM_PROTO_GetFieldsCounters done [16:01:52]requested_item shift.num is exist - process it [16:01:52]requested_item shift.opened is exist - process it [16:01:52]req_shift_opened [16:01:52]FM_GetShiftState [16:01:52]SAM_PROTO_GetShiftState [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 13 01 00 [16:01:52]Write to MH i2c: E2 08 00 FF 12 80 13 01 00 00 00 00 00 8E [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0E 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0E 00 FF 12 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 DA [16:01:52]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:01:52]wFMCommunicate OK [16:01:52]SAM_PROTO_GetShiftState done [16:01:52]FM_GetShiftState done [16:01:52]req_shift_opened done [16:01:52]requested_item shift.open_date is exist - process it [16:01:52]req_shift_open_date [16:01:52]req_shift_open_date done [16:01:52]produce_requested_data done [16:01:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50316,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:01:52]process_action_free close_receipt [16:01:52]json_value_free [16:01:52]json_value_free done [16:01:52]process_json_proto returns [16:01:52]Send response to host [16:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50316,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:01:52]free response buf [16:01:52]execute_script done [16:01:52]execute_script returns [16:01:52]free content buf [16:01:52]Sock 7.Close socket [16:01:52]Sock 7.Thread stoped [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:10]accept exits with 9 [16:02:10]New connection [16:02:10]New thread 3067161956 created [16:02:10]Thread 3067305316 joined [16:02:10]Waiting for new connection... [16:02:10] Sock 9.Parse request [16:02:10]Sock 9.Check first char [16:02:10]Sock 9.First char is OK [16:02:10]request: POST /json_proto HTTP/1.0 [16:02:10]Method: POST [16:02:10]URL: /json_proto [16:02:10]Method is POST - this is cgi request [16:02:10]url: /json_proto [16:02:10]query_string will be loaded in cgi processing [16:02:10]execute_cgi json_proto POST (null) [16:02:10]execute_cgi path=json_proto method=POST [16:02:10]POST find Content-Length [16:02:10]Host: 172.17.49.196:8080 [16:02:10]Content-Length: 751 [16:02:10]Content-Type: application/json [16:02:10] [16:02:10]POST finish read [16:02:10]Found Content-Length = 751 [16:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164224", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.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: Mbank", "payments": [ { "type": 1, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]execute_script... [16:02: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)164224", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.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: Mbank", "payments": [ { "type": 1, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]POST & json_proto [16:02:10]process_json_proto [16:02:10]json parsed OK: [16:02:10]protocol is kg_v1.0 [16:02:10]action value=close_receipt [16:02:10]process_action close_receipt [16:02:10]cmd_close_receipt [16:02:10]MH_GetDate [16:02:10]Write to MH i2c: F0 00 00 00 13 02 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 00 13 00 06 1E 19 67 BD 3B 11 67 1F [16:02:10]GetLastDocTimeStamp 1729699313 [16:02:10]current date 1729699334 [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 01 13 80 13 01 00 00 00 00 00 91 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 01 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 DD [16:02:10]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]opened in 1729642370 [16:02:10]opened+sec_in_day 1729728770 [16:02:10]quantity*price = 14700 [16:02:10]sum+1 = 14701 [16:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 0.00 Безнал.: 147.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 62 23.10.2024 16:02 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50317 ФПД: 222821630335547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160214&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50317&fm=222821630335547&tin=02508201610067®Number=0000000000097022&sum=14700 0 [16:02:11]StoreToDocumentArchive [16:02:11]shift 491 fd 50317 [16:02:11]save to /storage/0491/doc_00050317 [16:02:11]save last doc name /storage/0491/doc_00050317 to /storage/kkm_last_doc_name [16:02:11]save OK [16:02:11]Clear old archive folders... [16:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:02:11]tlvbuf is B6F170E0 [16:02:11]SAM_PROTO_ClearQueue [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 09 00 00 [16:02:11]Write to MH i2c: E2 08 00 0E 13 80 09 00 00 00 00 00 00 93 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_ClearQueue done [16:02:11]KKMCreateOFDPacket [16:02:11]OFDProtocolAddRootSTLVToBuf [16:02:11]FM_MakeSignedData [16:02:11]FM_MakeSignedData [16:02:11]SAM_PROTO_SignData [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 01 02 [16:02:11]Write to MH i2c: E2 08 00 0F 13 80 0D 01 02 00 00 00 00 9B [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=255 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 39 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 06 1E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [16:02:11]Write to MH i2c: E2 02 01 10 13 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 39 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 06 1E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 2A [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=35 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C4 00 00 35 04 06 00 CA A7 B4 1F DA 3B [16:02:11]Write to MH i2c: E2 26 00 11 13 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C4 00 00 35 04 06 00 CA A7 B4 1F DA 3B 00 00 2F [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 03 02 [16:02:11]Write to MH i2c: E2 08 00 12 13 80 0D 03 02 00 00 00 00 A0 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 12 13 00 A0 5D 11 45 EC 7C 96 1B 90 00 0D [16:02:11]RAPDU: A0 5D 11 45 EC 7C 96 1B 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_SignData done [16:02:11]FM_MakeSignedData done [16:02:11]CreateOFDProtocolMessage [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 11 00 00 [16:02:11]Write to MH i2c: E2 08 00 13 13 80 11 00 00 00 00 00 00 A0 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 13 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E7 [16:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:02:11]wFMCommunicate OK [16:02:11]CreateOFDProtocolMessage done [16:02:11]OFDSenderStorePacket 50317 [16:02:11]StoreOFDPacket docnum=50317 [16:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 39 28 20 01 2A 11 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 39 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 06 1E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C4 00 00 35 04 06 00 CA A7 B4 1F DA 3B A0 5D 11 45 EC 7C 96 1B [16:02:11]CheckFolder [16:02:11]dirname=/storage/ofd_packets [16:02:11]CheckFolder done [16:02:11]ProducePacketName [16:02:11]name=ofd_packets/00050317 [16:02:11]NVStorageSaveData ofd_packets/00050317 [16:02:11]File name is /storage/ofd_packets/00050317 [16:02:11]Write 326 bytes [16:02:11]NVStorageSaveData done [16:02:11]OFDSenderStorePacket done [16:02:11]KKMCreateOFDPacket done [16:02:11]NVStorageSaveData kkm_last_timestamp [16:02:11]File name is /storage/kkm_last_timestamp [16:02:11]Write 4 bytes [16:02:11]NVStorageSaveData done [16:02:11]ExternCall_PrintAddStr [16:02:11]wPrintStart [16:02:11]Write to MH i2c: 01 00 00 14 13 27 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FF 0F 3C [16:02:11]RasterBufferAndPrint [16:02:11]line Счет N : (3)164224 [16:02:11]line ИНН: 02508201610067 [16:02:11]line Контрольно-Кассовый Чек [16:02:11]line ПРОДАЖА [16:02:11]line Товар: 48744683 [16:02:11]line Сигареты Winston XStyle Caster+ [16:02:11]line 1.000 * 147.00 [16:02:11]line = 147.00 [16:02:11]line НДС 12% НСП 1% [16:02:11]line > о реализуемом товаре [16:02:11]line ИТОГО: 147.00 [16:02:11]line НСП 1% : 1.30 [16:02:11]line НДС 12% : 15.61 [16:02:11]line Наличными: 0.00 [16:02:11]line Безнал.: 147.00 [16:02:11]line Место: АЗС № 80 "Партнер Нефть" [16:02:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:02:11]line СНО: Общий режим [16:02:11]line Чек 62 23.10.2024 16:02 [16:02:11]line Смена: 491 ФФД: 1.0 [16:02:11]line ЗНМ: 0300000090 [16:02:11]line РНМ: 0000000000097022 [16:02:11]line Версия ККМ: 001 [16:02:11]line Платежная система: Mbank [16:02:11]line ФМ: 0000000000875000 [16:02:11]line ФД: 50317 [16:02:12]line ФПД: 222821630335547 [16:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160214&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50317&fm=222821630335547&tin=02508201610067®Number=0000000000097022&sum=14700 [16:02:12]OFD Sender: Processing packet 50317 [packets to send 7, broken 6] [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00050317 [16:02:12]OFD Sender: To server: pG, [16:02:12]CommunicateWithHost lk.salyk.kg:30040 [16:02:12]ConnectInit lk.salyk.kg [16:02:12]line 0 [16:02:12]written 0, free lines is 4095 [16:02:12]Connected sock=10 [16:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 39 28 20 01 2A 11 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 39 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 06 1E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C4 00 00 35 04 06 00 CA A7 B4 1F DA 3B A0 5D 11 45 EC 7C 96 1B [16:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 60 3F 47 00 8A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C4 00 00 F4 03 04 00 9C C9 18 67 B6 04 01 00 00 A4 86 DE B9 76 82 5B BC [16:02:12]CommunicateWithHost err = 0 [16:02:12]CheckOFDResponse [16:02:12]1017 (14) - 77093643461234 [16:02:12]1041 (16) - 0000000000875000 [16:02:12]1040 (4) - 50317 [16:02:12]1012 (4) - 23.10.2024 10:02 [16:02:12]1206 (1) - 0 [16:02:12]OFD Sender: Remove packet 50317 [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00050317 [16:02:12]NVStorageDeleteData [16:02:12]Write to MH i2c: 01 00 00 3E 13 51 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 EE 0C 52 [16:02:12]RasterBufferAndPrint [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]written 0, free lines is 3319 [16:02:12]process_action close_receipt done [16:02:12]requested_data is exist [16:02:12]produce_requested_data [16:02:12]requested_item fm.sn is exist - process it [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 11 00 00 [16:02:12]Write to MH i2c: E2 08 00 45 13 80 11 00 00 00 00 00 00 D2 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 45 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 19 [16:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:02:12]wFMCommunicate OK [16:02:12]requested_item fd.num is exist - process it [16:02:12]SAM_PROTO_GetFieldsCounters [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 13 00 00 [16:02:12]Write to MH i2c: E2 08 00 46 13 80 13 00 00 00 00 00 00 D5 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 62 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 62 00 46 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [16:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:13]wFMCommunicate OK [16:02:13]SAM_PROTO_GetFieldsCounters done [16:02:13]requested_item shift.num is exist - process it [16:02:13]requested_item shift.opened is exist - process it [16:02:13]req_shift_opened [16:02:13]FM_GetShiftState [16:02:13]SAM_PROTO_GetShiftState [16:02:13]wFMCommunicate request_size=4 [16:02:13]MH_SAM_APDU [16:02:13]CAPDU: 80 13 01 00 [16:02:13]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:13]Read from MH i2c: E2 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: E2 0E 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 23 [16:02:13]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:02:13]wFMCommunicate OK [16:02:13]SAM_PROTO_GetShiftState done [16:02:13]FM_GetShiftState done [16:02:13]req_shift_opened done [16:02:13]requested_item shift.open_date is exist - process it [16:02:13]req_shift_open_date [16:02:13]req_shift_open_date done [16:02:13]produce_requested_data done [16:02:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50317,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:02:13]process_action_free close_receipt [16:02:13]json_value_free [16:02:13]json_value_free done [16:02:13]process_json_proto returns [16:02:13]Send response to host [16:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50317,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:02:13]free response buf [16:02:13]execute_script done [16:02:13]execute_script returns [16:02:13]free content buf [16:02:13]Sock 9.Close socket [16:02:13]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:49]accept exits with 7 [16:10:49]New connection [16:10:49]New thread 3067305316 created [16:10:49]Thread 3067161956 joined [16:10:49]Waiting for new connection... [16:10:49] Sock 7.Parse request [16:10:49]Sock 7.Check first char [16:10:49]Sock 7.First char is OK [16:10:49]request: POST /json_proto HTTP/1.0 [16:10:49]Method: POST [16:10:49]URL: /json_proto [16:10:49]Method is POST - this is cgi request [16:10:49]url: /json_proto [16:10:49]query_string will be loaded in cgi processing [16:10:49]execute_cgi json_proto POST (null) [16:10:49]execute_cgi path=json_proto method=POST [16:10:49]POST find Content-Length [16:10:49]Host: 172.17.49.196:8080 [16:10:49]Content-Length: 1520 [16:10:49]Content-Type: application/json [16:10:49] [16:10:49]POST finish read [16:10:49]Found Content-Length = 1520 [16:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164225", "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" : 2.000, "sum" : 190.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" : 2.000, "sum" : 100.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 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:49]execute_script... [16:10: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)164225", "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" : 2.000, "sum" : 190.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" : 2.000, "sum" : 100.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 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:49]POST & json_proto [16:10:49]process_json_proto [16:10:49]json parsed OK: [16:10:49]protocol is kg_v1.0 [16:10:49]action value=close_receipt [16:10:49]process_action close_receipt [16:10:49]cmd_close_receipt [16:10:49]MH_GetDate [16:10:49]Write to MH i2c: F0 00 00 48 13 4A [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 09 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 09 00 48 13 00 0C 20 19 67 BD 3B 11 67 6F [16:10:49]GetLastDocTimeStamp 1729699334 [16:10:49]current date 1729699852 [16:10:49]FM_GetShiftState [16:10:49]SAM_PROTO_GetShiftState [16:10:49]wFMCommunicate request_size=4 [16:10:49]MH_SAM_APDU [16:10:49]CAPDU: 80 13 01 00 [16:10:49]Write to MH i2c: E2 08 00 49 13 80 13 01 00 00 00 00 00 D9 [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:49]Read from MH i2c: E2 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 49 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 25 [16:10:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:10:49]wFMCommunicate OK [16:10:49]SAM_PROTO_GetShiftState done [16:10:49]FM_GetShiftState done [16:10:49]opened in 1729642370 [16:10:49]opened+sec_in_day 1729728770 [16:10:49]quantity*price = 19000 [16:10:49]sum+1 = 19001 [16:10:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173822 Р/ж Orbit б/сах мята 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 63 23.10.2024 16:10 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50318 ФПД: 150826907744245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161053&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50318&fm=150826907744245&tin=02508201610067®Number=0000000000097022&sum=36000 0 [16:10:50]StoreToDocumentArchive [16:10:50]shift 491 fd 50318 [16:10:50]save to /storage/0491/doc_00050318 [16:10:50]save last doc name /storage/0491/doc_00050318 to /storage/kkm_last_doc_name [16:10:50]save OK [16:10:50]Clear old archive folders... [16:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=628 [16:10:50]tlvbuf is 0021C2D0 [16:10:50]SAM_PROTO_ClearQueue [16:10:50]wFMCommunicate request_size=4 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 09 00 00 [16:10:50]Write to MH i2c: E2 08 00 56 13 80 09 00 00 00 00 00 00 DB [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [16:10:50]RAPDU: 90 00 [16:10:50]wFMCommunicate OK [16:10:50]SAM_PROTO_ClearQueue done [16:10:50]KKMCreateOFDPacket [16:10:50]OFDProtocolAddRootSTLVToBuf [16:10:50]FM_MakeSignedData [16:10:50]FM_MakeSignedData [16:10:50]SAM_PROTO_SignData [16:10:50]wFMCommunicate request_size=4 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 0D 01 02 [16:10:50]Write to MH i2c: E2 08 00 57 13 80 0D 01 02 00 00 00 00 E3 [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [16:10:50]RAPDU: 90 00 [16:10:50]wFMCommunicate OK [16:10:50]wFMCommunicate request_size=255 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 0D 02 02 FA 03 00 74 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 [16:10:50]Write to MH i2c: E2 02 01 58 13 80 0D 02 02 FA 00 03 00 74 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 00 00 9F [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [16:10:50]RAPDU: 90 00 [16:10:50]wFMCommunicate OK [16:10:50]wFMCommunicate request_size=255 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 0D 02 02 FA 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 [16:10:50]Write to MH i2c: E2 02 01 59 13 80 0D 02 02 FA 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 00 00 67 [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=137 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 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 0D 20 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C4 00 00 35 04 06 00 89 2D 20 42 37 F5 [16:10:51]Write to MH i2c: E2 8C 00 5A 13 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 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 0D 20 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C4 00 00 35 04 06 00 89 2D 20 42 37 F5 00 00 A2 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 03 02 [16:10:51]Write to MH i2c: E2 08 00 5B 13 80 0D 03 02 00 00 00 00 E9 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 5B 13 00 2F 62 3D 24 E0 72 41 9A 90 00 09 [16:10:51]RAPDU: 2F 62 3D 24 E0 72 41 9A 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_SignData done [16:10:51]FM_MakeSignedData done [16:10:51]CreateOFDProtocolMessage [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 11 00 00 [16:10:51]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [16:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:10:51]wFMCommunicate OK [16:10:51]CreateOFDProtocolMessage done [16:10:51]OFDSenderStorePacket 50318 [16:10:51]StoreOFDPacket docnum=50318 [16:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 88 02 00 00 BE 6F 80 02 C0 61 5A 03 01 00 03 00 74 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 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 0D 20 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C4 00 00 35 04 06 00 89 2D 20 42 37 F5 2F 62 3D 24 E0 72 41 9A [16:10:51]CheckFolder [16:10:51]dirname=/storage/ofd_packets [16:10:51]CheckFolder done [16:10:51]ProducePacketName [16:10:51]name=ofd_packets/00050318 [16:10:51]NVStorageSaveData ofd_packets/00050318 [16:10:51]File name is /storage/ofd_packets/00050318 [16:10:51]Write 678 bytes [16:10:51]NVStorageSaveData done [16:10:51]OFDSenderStorePacket done [16:10:51]KKMCreateOFDPacket done [16:10:51]NVStorageSaveData kkm_last_timestamp [16:10:51]File name is /storage/kkm_last_timestamp [16:10:51]Write 4 bytes [16:10:51]NVStorageSaveData done [16:10:51]ExternCall_PrintAddStr [16:10:51]wPrintStart [16:10:51]Write to MH i2c: 01 00 00 5D 13 70 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 5D 13 00 00 00 00 00 FF 0F 85 [16:10:51]RasterBufferAndPrint [16:10:51]line Счет N : (3)164225 [16:10:51]line ИНН: 02508201610067 [16:10:51]line Контрольно-Кассовый Чек [16:10:51]line ПРОДАЖА [16:10:51]line Товар: 4700000480302 [16:10:51]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:10:51]line 2.000 * 95.00 [16:10:51]line = 190.00 [16:10:51]line НДС 12% НСП 1% [16:10:51]line > о реализуемом товаре [16:10:51]line Товар: 4700000160358 [16:10:51]line Вода Легенда 1л [16:10:51]line 2.000 * 50.00 [16:10:51]line = 100.00 [16:10:51]line НДС 12% НСП 1% [16:10:51]line > о реализуемом товаре [16:10:51]line Товар: 50173822 [16:10:51]line Р/ж Orbit б/сах мята 13,6г [16:10:51]line 1.000 * 45.00 [16:10:51]line = 45.00 [16:10:51]line НДС 12% НСП 1% [16:10:51]line > о реализуемом товаре [16:10:51]line Товар: 2000027340020 [16:10:51]line Пакет бумажный витая ручка [16:10:51]line 1.000 * 25.00 [16:10:51]line = 25.00 [16:10:51]line НДС 12% НСП 1% [16:10:51]line > о реализуемом товаре [16:10:51]line ИТОГО: 360.00 [16:10:51]line НСП 1% : 3.18 [16:10:51]line НДС 12% : 38.23 [16:10:51]line Наличными: 360.00 [16:10:51]line Безнал.: 0.00 [16:10:51]line Место: АЗС № 80 "Партнер Нефть" [16:10:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:10:51]line СНО: Общий режим [16:10:51]line Чек 63 23.10.2024 16:10 [16:10:51]line Смена: 491 ФФД: 1.0 [16:10:51]line ЗНМ: 0300000090 [16:10:51]line РНМ: 0000000000097022 [16:10:51]line Версия ККМ: 001 [16:10:51]line ФМ: 0000000000875000 [16:10:51]line ФД: 50318 [16:10:51]line ФПД: 150826907744245 [16:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161053&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50318&fm=150826907744245&tin=02508201610067®Number=0000000000097022&sum=36000 [16:10:51]line 0 [16:10:51]OFD Sender: Processing packet 50318 [packets to send 7, broken 6] [16:10:51]ProducePacketName [16:10:51]name=ofd_packets/00050318 [16:10:51]OFD Sender: To server: pG, [16:10:51]CommunicateWithHost lk.salyk.kg:30040 [16:10:51]ConnectInit lk.salyk.kg [16:10:51]written 0, free lines is 4095 [16:10:51]Connected sock=10 [16:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 88 02 00 00 BE 6F 80 02 C0 61 5A 03 01 00 03 00 74 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 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 0D 20 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C4 00 00 35 04 06 00 89 2D 20 42 37 F5 2F 62 3D 24 E0 72 41 9A [16:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 8A CD 47 00 BC 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C4 00 00 F4 03 04 00 A4 CB 18 67 B6 04 01 00 00 7D 96 F5 B8 3F 94 27 52 [16:10:52]CommunicateWithHost err = 0 [16:10:52]CheckOFDResponse [16:10:52]1017 (14) - 77093643461234 [16:10:52]1041 (16) - 0000000000875000 [16:10:52]1040 (4) - 50318 [16:10:52]1012 (4) - 23.10.2024 10:10 [16:10:52]1206 (1) - 0 [16:10:52]OFD Sender: Remove packet 50318 [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00050318 [16:10:52]NVStorageDeleteData [16:10:52]Write to MH i2c: 01 00 00 98 13 AB [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 98 13 00 00 00 00 00 21 0C DF [16:10:52]RasterBufferAndPrint [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]written 0, free lines is 3114 [16:10:52]process_action close_receipt done [16:10:52]requested_data is exist [16:10:52]produce_requested_data [16:10:52]requested_item fm.sn is exist - process it [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 11 00 00 [16:10:52]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 17 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 73 [16:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:10:52]wFMCommunicate OK [16:10:52]requested_item fd.num is exist - process it [16:10:52]SAM_PROTO_GetFieldsCounters [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 13 00 00 [16:10:52]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]OFD Sender: No OFD packet to send [16:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 62 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 62 00 A0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [16:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:52]wFMCommunicate OK [16:10:52]SAM_PROTO_GetFieldsCounters done [16:10:52]requested_item shift.num is exist - process it [16:10:52]requested_item shift.opened is exist - process it [16:10:52]req_shift_opened [16:10:52]FM_GetShiftState [16:10:52]SAM_PROTO_GetShiftState [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 13 01 00 [16:10:52]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 0E 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7D [16:10:52]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:10:52]wFMCommunicate OK [16:10:52]SAM_PROTO_GetShiftState done [16:10:52]FM_GetShiftState done [16:10:52]req_shift_opened done [16:10:52]requested_item shift.open_date is exist - process it [16:10:52]req_shift_open_date [16:10:52]req_shift_open_date done [16:10:52]produce_requested_data done [16:10:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50318,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:10:52]process_action_free close_receipt [16:10:52]json_value_free [16:10:52]json_value_free done [16:10:52]process_json_proto returns [16:10:52]Send response to host [16:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50318,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:10:52]free response buf [16:10:52]execute_script done [16:10:52]execute_script returns [16:10:52]free content buf [16:10:52]Sock 7.Close socket [16:10:52]Sock 7.Thread stoped [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:14]accept exits with 9 [16:40:14]New connection [16:40:14]New thread 3067161956 created [16:40:14]Thread 3067305316 joined [16:40:14]Waiting for new connection... [16:40:14] Sock 9.Parse request [16:40:14]Sock 9.Check first char [16:40:14]Sock 9.First char is OK [16:40:14]request: POST /json_proto HTTP/1.0 [16:40:14]Method: POST [16:40:14]URL: /json_proto [16:40:14]Method is POST - this is cgi request [16:40:14]url: /json_proto [16:40:14]query_string will be loaded in cgi processing [16:40:14]execute_cgi json_proto POST (null) [16:40:14]execute_cgi path=json_proto method=POST [16:40:14]POST find Content-Length [16:40:14]Host: 172.17.49.196:8080 [16:40:14]Content-Length: 946 [16:40:14]Content-Type: application/json [16:40:14] [16:40:14]POST finish read [16:40:14]Found Content-Length = 946 [16:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164226", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\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 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:14]execute_script... [16:40: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)164226", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\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 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:14]POST & json_proto [16:40:14]process_json_proto [16:40:14]json parsed OK: [16:40:14]protocol is kg_v1.0 [16:40:14]action value=close_receipt [16:40:14]process_action close_receipt [16:40:14]cmd_close_receipt [16:40:14]MH_GetDate [16:40:14]Write to MH i2c: F0 00 00 A2 13 A4 [16:40:14]Write i2c OK [16:40:14]MH_I2C_Read... [16:40:14]Read from MH i2c: F0 [16:40:14]MH_I2C_Read... [16:40:14]Read from MH i2c: F0 09 00 [16:40:14]MH_I2C_Read... [16:40:14]Read from MH i2c: F0 09 00 A2 13 00 F2 26 19 67 BD 3B 11 67 B5 [16:40:14]GetLastDocTimeStamp 1729699853 [16:40:14]current date 1729701618 [16:40:14]FM_GetShiftState [16:40:14]SAM_PROTO_GetShiftState [16:40:14]wFMCommunicate request_size=4 [16:40:14]MH_SAM_APDU [16:40:14]CAPDU: 80 13 01 00 [16:40:14]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [16:40:14]Write i2c OK [16:40:14]MH_I2C_Read... [16:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:14]Read from MH i2c: E2 [16:40:14]MH_I2C_Read... [16:40:14]Read from MH i2c: E2 0E 00 [16:40:14]MH_I2C_Read... [16:40:14]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7F [16:40:14]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:40:14]wFMCommunicate OK [16:40:14]SAM_PROTO_GetShiftState done [16:40:14]FM_GetShiftState done [16:40:14]opened in 1729642370 [16:40:14]opened+sec_in_day 1729728770 [16:40:14]quantity*price = 12000 [16:40:14]sum+1 = 12001 [16:40:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 64 23.10.2024 16:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50319 ФПД: 94803009059125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164018&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50319&fm=94803009059125&tin=02508201610067®Number=0000000000097022&sum=16500 0 [16:40:15]StoreToDocumentArchive [16:40:15]shift 491 fd 50319 [16:40:15]save to /storage/0491/doc_00050319 [16:40:15]save last doc name /storage/0491/doc_00050319 to /storage/kkm_last_doc_name [16:40:15]save OK [16:40:15]Clear old archive folders... [16:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=394 [16:40:15]tlvbuf is 00121A30 [16:40:15]SAM_PROTO_ClearQueue [16:40:15]wFMCommunicate request_size=4 [16:40:15]MH_SAM_APDU [16:40:15]CAPDU: 80 09 00 00 [16:40:15]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:15]Read from MH i2c: E2 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [16:40:15]RAPDU: 90 00 [16:40:15]wFMCommunicate OK [16:40:15]SAM_PROTO_ClearQueue done [16:40:15]KKMCreateOFDPacket [16:40:15]OFDProtocolAddRootSTLVToBuf [16:40:15]FM_MakeSignedData [16:40:15]FM_MakeSignedData [16:40:15]SAM_PROTO_SignData [16:40:15]wFMCommunicate request_size=4 [16:40:15]MH_SAM_APDU [16:40:15]CAPDU: 80 0D 01 02 [16:40:15]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:15]Read from MH i2c: E2 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [16:40:15]RAPDU: 90 00 [16:40:15]wFMCommunicate OK [16:40:15]wFMCommunicate request_size=255 [16:40:15]MH_SAM_APDU [16:40:15]CAPDU: 80 0D 02 02 FA 03 00 8A 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 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 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F [16:40:15]Write to MH i2c: E2 02 01 B2 13 80 0D 02 02 FA 00 03 00 8A 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 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 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 A3 [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:15]Read from MH i2c: E2 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [16:40:15]RAPDU: 90 00 [16:40:15]wFMCommunicate OK [16:40:15]wFMCommunicate request_size=153 [16:40:15]MH_SAM_APDU [16:40:15]CAPDU: 80 0D 02 02 94 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 40 00 00 00 F4 03 04 00 F2 26 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C4 00 00 35 04 06 00 56 39 0B AD B9 35 [16:40:15]Write to MH i2c: E2 9C 00 B3 13 80 0D 02 02 94 00 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 40 00 00 00 F4 03 04 00 F2 26 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C4 00 00 35 04 06 00 56 39 0B AD B9 35 00 00 EF [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [16:40:16]RAPDU: 90 00 [16:40:16]wFMCommunicate OK [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 0D 03 02 [16:40:16]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0B 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0B 00 B4 13 00 98 8B 43 9C 76 89 05 B9 90 00 02 [16:40:16]RAPDU: 98 8B 43 9C 76 89 05 B9 90 00 [16:40:16]wFMCommunicate OK [16:40:16]SAM_PROTO_SignData done [16:40:16]FM_MakeSignedData done [16:40:16]CreateOFDProtocolMessage [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 11 00 00 [16:40:16]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 89 [16:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:40:16]wFMCommunicate OK [16:40:16]CreateOFDProtocolMessage done [16:40:16]OFDSenderStorePacket 50319 [16:40:16]StoreOFDPacket docnum=50319 [16:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9E 01 00 00 A8 28 96 01 2F 1E 5A 03 01 00 03 00 8A 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 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 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 40 00 00 00 F4 03 04 00 F2 26 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C4 00 00 35 04 06 00 56 39 0B AD B9 35 98 8B 43 9C 76 89 05 B9 [16:40:16]CheckFolder [16:40:16]dirname=/storage/ofd_packets [16:40:16]CheckFolder done [16:40:16]ProducePacketName [16:40:16]name=ofd_packets/00050319 [16:40:16]NVStorageSaveData ofd_packets/00050319 [16:40:16]File name is /storage/ofd_packets/00050319 [16:40:16]Write 444 bytes [16:40:16]NVStorageSaveData done [16:40:16]OFDSenderStorePacket done [16:40:16]KKMCreateOFDPacket done [16:40:16]NVStorageSaveData kkm_last_timestamp [16:40:16]File name is /storage/kkm_last_timestamp [16:40:16]Write 4 bytes [16:40:16]NVStorageSaveData done [16:40:16]ExternCall_PrintAddStr [16:40:16]wPrintStart [16:40:16]Write to MH i2c: 01 00 00 B6 13 C9 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [16:40:16]RasterBufferAndPrint [16:40:16]line Счет N : (3)164226 [16:40:16]line ИНН: 02508201610067 [16:40:16]line Контрольно-Кассовый Чек [16:40:16]line ПРОДАЖА [16:40:16]line Товар: 5449000189332 [16:40:16]line Холодный чай Fuse персик 1л [16:40:16]line 1.000 * 120.00 [16:40:16]line = 120.00 [16:40:16]line НДС 12% НСП 1% [16:40:16]line > о реализуемом товаре [16:40:16]line Товар: 42203100 [16:40:16]line Жев Orbit банан-клубника [16:40:16]line 1.000 * 45.00 [16:40:16]line = 45.00 [16:40:16]line НДС 12% НСП 1% [16:40:16]line > о реализуемом товаре [16:40:16]line ИТОГО: 165.00 [16:40:16]line НСП 1% : 1.46 [16:40:16]line НДС 12% : 17.52 [16:40:16]line Наличными: 165.00 [16:40:16]line Безнал.: 0.00 [16:40:16]line Место: АЗС № 80 "Партнер Нефть" [16:40:16]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:40:16]line СНО: Общий режим [16:40:16]line Чек 64 23.10.2024 16:40 [16:40:16]line Смена: 491 ФФД: 1.0 [16:40:16]line ЗНМ: 0300000090 [16:40:16]line РНМ: 0000000000097022 [16:40:16]line Версия ККМ: 001 [16:40:16]line ФМ: 0000000000875000 [16:40:16]line ФД: 50319 [16:40:16]line ФПД: 94803009059125 [16:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164018&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50319&fm=94803009059125&tin=02508201610067®Number=0000000000097022&sum=16500 [16:40:16]line 0 [16:40:16]written 0, free lines is 4095 [16:40:16]OFD Sender: Processing packet 50319 [packets to send 7, broken 6] [16:40:16]ProducePacketName [16:40:16]name=ofd_packets/00050319 [16:40:16]OFD Sender: To server: pG, [16:40:16]CommunicateWithHost lk.salyk.kg:30040 [16:40:16]ConnectInit lk.salyk.kg [16:40:16]Connected sock=10 [16:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9E 01 00 00 A8 28 96 01 2F 1E 5A 03 01 00 03 00 8A 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 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 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 40 00 00 00 F4 03 04 00 F2 26 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C4 00 00 35 04 06 00 56 39 0B AD B9 35 98 8B 43 9C 76 89 05 B9 [16:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CC 33 47 00 80 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C4 00 00 F4 03 04 00 88 D2 18 67 B6 04 01 00 00 A0 98 8C 8B CB F1 D7 CF [16:40:16]CommunicateWithHost err = 0 [16:40:16]CheckOFDResponse [16:40:16]1017 (14) - 77093643461234 [16:40:16]1041 (16) - 0000000000875000 [16:40:16]1040 (4) - 50319 [16:40:16]1012 (4) - 23.10.2024 10:40 [16:40:16]1206 (1) - 0 [16:40:16]OFD Sender: Remove packet 50319 [16:40:16]ProducePacketName [16:40:16]name=ofd_packets/00050319 [16:40:16]NVStorageDeleteData [16:40:16]Write to MH i2c: 01 00 00 E4 13 F7 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 D9 0C E3 [16:40:16]RasterBufferAndPrint [16:40:16]line [16:40:16]line [16:40:16]line [16:40:16]line [16:40:16]line [16:40:16]written 0, free lines is 3295 [16:40:16]process_action close_receipt done [16:40:16]requested_data is exist [16:40:16]produce_requested_data [16:40:16]requested_item fm.sn is exist - process it [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 11 00 00 [16:40:16]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BF [16:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:40:16]wFMCommunicate OK [16:40:16]requested_item fd.num is exist - process it [16:40:16]SAM_PROTO_GetFieldsCounters [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 13 00 00 [16:40:16]Write to MH i2c: E2 08 00 EC 13 80 13 00 00 00 00 00 00 7B [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 62 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 62 00 EC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:16]wFMCommunicate OK [16:40:16]SAM_PROTO_GetFieldsCounters done [16:40:16]requested_item shift.num is exist - process it [16:40:16]requested_item shift.opened is exist - process it [16:40:16]req_shift_opened [16:40:16]FM_GetShiftState [16:40:16]SAM_PROTO_GetShiftState [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 13 01 00 [16:40:16]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C9 [16:40:17]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:40:17]wFMCommunicate OK [16:40:17]SAM_PROTO_GetShiftState done [16:40:17]FM_GetShiftState done [16:40:17]req_shift_opened done [16:40:17]requested_item shift.open_date is exist - process it [16:40:17]req_shift_open_date [16:40:17]req_shift_open_date done [16:40:17]produce_requested_data done [16:40:17]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50319,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:40:17]process_action_free close_receipt [16:40:17]json_value_free [16:40:17]json_value_free done [16:40:17]process_json_proto returns [16:40:17]Send response to host [16:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50319,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:40:17]free response buf [16:40:17]execute_script done [16:40:17]execute_script returns [16:40:17]free content buf [16:40:17]Sock 9.Close socket [16:40:17]Sock 9.Thread stoped [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:46]accept exits with 7 [16:40:46]New connection [16:40:46]New thread 3067305316 created [16:40:46]Thread 3067161956 joined [16:40:46]Waiting for new connection... [16:40:46] Sock 7.Parse request [16:40:46]Sock 7.Check first char [16:40:46]Sock 7.First char is OK [16:40:46]request: POST /json_proto HTTP/1.0 [16:40:46]Method: POST [16:40:46]URL: /json_proto [16:40:46]Method is POST - this is cgi request [16:40:46]url: /json_proto [16:40:46]query_string will be loaded in cgi processing [16:40:46]execute_cgi json_proto POST (null) [16:40:46]execute_cgi path=json_proto method=POST [16:40:46]POST find Content-Length [16:40:46]Host: 172.17.49.196:8080 [16:40:46]Content-Length: 663 [16:40:46]Content-Type: application/json [16:40:46] [16:40:46]POST finish read [16:40:46]Found Content-Length = 663 [16:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164227", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:46]execute_script... [16:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164227", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:46]POST & json_proto [16:40:46]process_json_proto [16:40:46]json parsed OK: [16:40:46]protocol is kg_v1.0 [16:40:46]action value=close_receipt [16:40:46]process_action close_receipt [16:40:46]cmd_close_receipt [16:40:46]MH_GetDate [16:40:46]Write to MH i2c: F0 00 00 EE 13 F0 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 EE 13 00 12 27 19 67 BD 3B 11 67 22 [16:40:46]GetLastDocTimeStamp 1729701618 [16:40:46]current date 1729701650 [16:40:46]FM_GetShiftState [16:40:46]SAM_PROTO_GetShiftState [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 01 00 [16:40:46]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CB [16:40:46]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetShiftState done [16:40:46]FM_GetShiftState done [16:40:46]opened in 1729642370 [16:40:46]opened+sec_in_day 1729728770 [16:40:46]quantity*price = 17000 [16:40:46]sum+1 = 17001 [16:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 65 23.10.2024 16:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50320 ФПД: 73443588521231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164050&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50320&fm=73443588521231&tin=02508201610067®Number=0000000000097022&sum=17000 0 [16:40:47]StoreToDocumentArchive [16:40:47]shift 491 fd 50320 [16:40:47]save to /storage/0491/doc_00050320 [16:40:47]save last doc name /storage/0491/doc_00050320 to /storage/kkm_last_doc_name [16:40:47]save OK [16:40:47]Clear old archive folders... [16:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:40:47]tlvbuf is B6F17130 [16:40:47]SAM_PROTO_ClearQueue [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 09 00 00 [16:40:47]Write to MH i2c: E2 08 00 FC 13 80 09 00 00 00 00 00 00 81 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]SAM_PROTO_ClearQueue done [16:40:47]KKMCreateOFDPacket [16:40:47]OFDProtocolAddRootSTLVToBuf [16:40:47]FM_MakeSignedData [16:40:47]FM_MakeSignedData [16:40:47]SAM_PROTO_SignData [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 01 02 [16:40:47]Write to MH i2c: E2 08 00 FD 13 80 0D 01 02 00 00 00 00 89 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=255 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 27 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 [16:40:47]Write to MH i2c: E2 02 01 FE 13 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 27 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 00 00 F7 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=46 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 02 02 29 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C4 00 00 35 04 06 00 42 CB EB 01 3D 0F [16:40:47]Write to MH i2c: E2 31 00 FF 13 80 0D 02 02 29 00 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C4 00 00 35 04 06 00 42 CB EB 01 3D 0F 00 00 9B [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 03 02 [16:40:47]Write to MH i2c: E2 08 00 00 14 80 0D 03 02 00 00 00 00 8F [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 0B 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 0B 00 00 14 00 65 4C 2B F7 BA CB 47 6F 90 00 9E [16:40:48]RAPDU: 65 4C 2B F7 BA CB 47 6F 90 00 [16:40:48]wFMCommunicate OK [16:40:48]SAM_PROTO_SignData done [16:40:48]FM_MakeSignedData done [16:40:48]CreateOFDProtocolMessage [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 11 00 00 [16:40:48]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D6 [16:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:40:48]wFMCommunicate OK [16:40:48]CreateOFDProtocolMessage done [16:40:48]OFDSenderStorePacket 50320 [16:40:48]StoreOFDPacket docnum=50320 [16:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 33 01 00 00 9D 70 2B 01 E9 A8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 27 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C4 00 00 35 04 06 00 42 CB EB 01 3D 0F 65 4C 2B F7 BA CB 47 6F [16:40:48]CheckFolder [16:40:48]dirname=/storage/ofd_packets [16:40:48]CheckFolder done [16:40:48]ProducePacketName [16:40:48]name=ofd_packets/00050320 [16:40:48]NVStorageSaveData ofd_packets/00050320 [16:40:48]File name is /storage/ofd_packets/00050320 [16:40:48]Write 337 bytes [16:40:48]NVStorageSaveData done [16:40:48]OFDSenderStorePacket done [16:40:48]KKMCreateOFDPacket done [16:40:48]NVStorageSaveData kkm_last_timestamp [16:40:48]File name is /storage/kkm_last_timestamp [16:40:48]Write 4 bytes [16:40:48]NVStorageSaveData done [16:40:48]ExternCall_PrintAddStr [16:40:48]wPrintStart [16:40:48]Write to MH i2c: 01 00 00 02 14 16 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [16:40:48]RasterBufferAndPrint [16:40:48]line Счет N : (3)164227 [16:40:48]line ИНН: 02508201610067 [16:40:48]line Контрольно-Кассовый Чек [16:40:48]line ПРОДАЖА [16:40:48]line Товар: 5449000176448 [16:40:48]line Сок Piko Pulpy апельсин ПЭТ 1л [16:40:48]line 1.000 * 170.00 [16:40:48]line = 170.00 [16:40:48]line НДС 12% НСП 1% [16:40:48]line > о реализуемом товаре [16:40:48]line ИТОГО: 170.00 [16:40:48]line НСП 1% : 1.50 [16:40:48]line НДС 12% : 18.05 [16:40:48]line Наличными: 170.00 [16:40:48]line Безнал.: 0.00 [16:40:48]line Место: АЗС № 80 "Партнер Нефть" [16:40:48]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:40:48]line СНО: Общий режим [16:40:48]line Чек 65 23.10.2024 16:40 [16:40:48]line Смена: 491 ФФД: 1.0 [16:40:48]line ЗНМ: 0300000090 [16:40:48]line РНМ: 0000000000097022 [16:40:48]line Версия ККМ: 001 [16:40:48]line ФМ: 0000000000875000 [16:40:48]line ФД: 50320 [16:40:48]line ФПД: 73443588521231 [16:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164050&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50320&fm=73443588521231&tin=02508201610067®Number=0000000000097022&sum=17000 [16:40:48]line 0 [16:40:48]OFD Sender: Processing packet 50320 [packets to send 7, broken 6] [16:40:48]ProducePacketName [16:40:48]name=ofd_packets/00050320 [16:40:48]OFD Sender: To server: pG, [16:40:48]CommunicateWithHost lk.salyk.kg:30040 [16:40:48]ConnectInit lk.salyk.kg [16:40:48]written 0, free lines is 4095 [16:40:48]Connected sock=11 [16:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 33 01 00 00 9D 70 2B 01 E9 A8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 27 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C4 00 00 35 04 06 00 42 CB EB 01 3D 0F 65 4C 2B F7 BA CB 47 6F [16:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 88 47 00 4A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C4 00 00 F4 03 04 00 A9 D2 18 67 B6 04 01 00 00 99 6D 18 74 DA 6A 34 F7 [16:40:48]CommunicateWithHost err = 0 [16:40:48]CheckOFDResponse [16:40:48]1017 (14) - 77093643461234 [16:40:48]1041 (16) - 0000000000875000 [16:40:48]1040 (4) - 50320 [16:40:48]1012 (4) - 23.10.2024 10:40 [16:40:48]1206 (1) - 0 [16:40:48]OFD Sender: Remove packet 50320 [16:40:48]ProducePacketName [16:40:48]name=ofd_packets/00050320 [16:40:48]NVStorageDeleteData [16:40:48]Write to MH i2c: 01 00 00 2B 14 3F [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 2B 14 00 00 00 00 00 03 0D 56 [16:40:48]RasterBufferAndPrint [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]written 0, free lines is 3337 [16:40:48]process_action close_receipt done [16:40:48]requested_data is exist [16:40:48]produce_requested_data [16:40:48]requested_item fm.sn is exist - process it [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 11 00 00 [16:40:48]Write to MH i2c: E2 08 00 32 14 80 11 00 00 00 00 00 00 C0 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 32 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 07 [16:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:40:48]wFMCommunicate OK [16:40:48]requested_item fd.num is exist - process it [16:40:48]SAM_PROTO_GetFieldsCounters [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 13 00 00 [16:40:48]Write to MH i2c: E2 08 00 33 14 80 13 00 00 00 00 00 00 C3 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:49]Read from MH i2c: E2 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 62 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 62 00 33 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 90 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 90 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:49]wFMCommunicate OK [16:40:49]SAM_PROTO_GetFieldsCounters done [16:40:49]requested_item shift.num is exist - process it [16:40:49]requested_item shift.opened is exist - process it [16:40:49]req_shift_opened [16:40:49]FM_GetShiftState [16:40:49]SAM_PROTO_GetShiftState [16:40:49]wFMCommunicate request_size=4 [16:40:49]MH_SAM_APDU [16:40:49]CAPDU: 80 13 01 00 [16:40:49]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:49]Read from MH i2c: E2 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 0E 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 11 [16:40:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:40:49]wFMCommunicate OK [16:40:49]SAM_PROTO_GetShiftState done [16:40:49]FM_GetShiftState done [16:40:49]req_shift_opened done [16:40:49]requested_item shift.open_date is exist - process it [16:40:49]req_shift_open_date [16:40:49]req_shift_open_date done [16:40:49]produce_requested_data done [16:40:49]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50320,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:40:49]process_action_free close_receipt [16:40:49]json_value_free [16:40:49]json_value_free done [16:40:49]process_json_proto returns [16:40:49]Send response to host [16:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50320,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:40:49]free response buf [16:40:49]execute_script done [16:40:49]execute_script returns [16:40:49]free content buf [16:40:49]Sock 7.Close socket [16:40:49]Sock 7.Thread stoped [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57: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:47]accept exits with 9 [16:58:47]New connection [16:58:47]New thread 3067161956 created [16:58:47]Thread 3067305316 joined [16:58:47]Waiting for new connection... [16:58:47] Sock 9.Parse request [16:58:47]Sock 9.Check first char [16:58:47]Sock 9.First char is OK [16:58:47]request: POST /json_proto HTTP/1.0 [16:58:47]Method: POST [16:58:47]URL: /json_proto [16:58:47]Method is POST - this is cgi request [16:58:47]url: /json_proto [16:58:47]query_string will be loaded in cgi processing [16:58:47]execute_cgi json_proto POST (null) [16:58:47]execute_cgi path=json_proto method=POST [16:58:47]POST find Content-Length [16:58:47]Host: 172.17.49.196:8080 [16:58:47]Content-Length: 570 [16:58:47]Content-Type: application/json [16:58:47] [16:58:47]POST finish read [16:58:47]Found Content-Length = 570 [16:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164228", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:47]execute_script... [16:58:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164228", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:47]POST & json_proto [16:58:47]process_json_proto [16:58:47]json parsed OK: [16:58:47]protocol is kg_v1.0 [16:58:47]action value=close_receipt [16:58:47]process_action close_receipt [16:58:47]cmd_close_receipt [16:58:47]MH_GetDate [16:58:47]Write to MH i2c: F0 00 00 35 14 38 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: F0 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: F0 09 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: F0 09 00 35 14 00 4B 2B 19 67 BD 3B 11 67 A7 [16:58:47]GetLastDocTimeStamp 1729701650 [16:58:47]current date 1729702731 [16:58:47]FM_GetShiftState [16:58:47]SAM_PROTO_GetShiftState [16:58:47]wFMCommunicate request_size=4 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 13 01 00 [16:58:47]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 0E 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 13 [16:58:47]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:58:47]wFMCommunicate OK [16:58:47]SAM_PROTO_GetShiftState done [16:58:47]FM_GetShiftState done [16:58:47]opened in 1729642370 [16:58:47]opened+sec_in_day 1729728770 [16:58:47]quantity*price = 13400 [16:58:47]sum+1 = 13401 [16:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 66 23.10.2024 16:58 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50321 ФПД: 89778358919174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165851&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50321&fm=89778358919174&tin=02508201610067®Number=0000000000097022&sum=13400 0 [16:58:48]StoreToDocumentArchive [16:58:48]shift 491 fd 50321 [16:58:48]save to /storage/0491/doc_00050321 [16:58:48]save last doc name /storage/0491/doc_00050321 to /storage/kkm_last_doc_name [16:58:48]save OK [16:58:48]Clear old archive folders... [16:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=254 [16:58:48]tlvbuf is B6F17220 [16:58:48]SAM_PROTO_ClearQueue [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 09 00 00 [16:58:48]Write to MH i2c: E2 08 00 43 14 80 09 00 00 00 00 00 00 C9 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [16:58:48]RAPDU: 90 00 [16:58:48]wFMCommunicate OK [16:58:48]SAM_PROTO_ClearQueue done [16:58:48]KKMCreateOFDPacket [16:58:48]OFDProtocolAddRootSTLVToBuf [16:58:48]FM_MakeSignedData [16:58:48]FM_MakeSignedData [16:58:48]SAM_PROTO_SignData [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 0D 01 02 [16:58:48]Write to MH i2c: E2 08 00 44 14 80 0D 01 02 00 00 00 00 D1 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [16:58:48]RAPDU: 90 00 [16:58:48]wFMCommunicate OK [16:58:48]wFMCommunicate request_size=255 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 42 00 00 00 F4 03 04 00 4B 2B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C4 00 00 35 04 [16:58:48]Write to MH i2c: E2 02 01 45 14 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 42 00 00 00 F4 03 04 00 4B 2B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C4 00 00 35 04 00 00 B4 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [16:58:48]RAPDU: 90 00 [16:58:48]wFMCommunicate OK [16:58:48]wFMCommunicate request_size=13 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 0D 02 02 08 06 00 51 A7 27 31 20 06 [16:58:48]Write to MH i2c: E2 10 00 46 14 80 0D 02 02 08 00 06 00 51 A7 27 31 20 06 00 00 60 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [16:58:48]RAPDU: 90 00 [16:58:48]wFMCommunicate OK [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 0D 03 02 [16:58:48]Write to MH i2c: E2 08 00 47 14 80 0D 03 02 00 00 00 00 D6 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 0B 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 0B 00 47 14 00 B9 34 C0 50 7B 72 A7 86 90 00 EE [16:58:48]RAPDU: B9 34 C0 50 7B 72 A7 86 90 00 [16:58:48]wFMCommunicate OK [16:58:48]SAM_PROTO_SignData done [16:58:48]FM_MakeSignedData done [16:58:48]CreateOFDProtocolMessage [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 11 00 00 [16:58:48]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 17 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1D [16:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:58:48]wFMCommunicate OK [16:58:48]CreateOFDProtocolMessage done [16:58:48]OFDSenderStorePacket 50321 [16:58:48]StoreOFDPacket docnum=50321 [16:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 12 01 00 00 9A 7E 0A 01 9C BE 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 42 00 00 00 F4 03 04 00 4B 2B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C4 00 00 35 04 06 00 51 A7 27 31 20 06 B9 34 C0 50 7B 72 A7 86 [16:58:48]CheckFolder [16:58:48]dirname=/storage/ofd_packets [16:58:48]CheckFolder done [16:58:48]ProducePacketName [16:58:48]name=ofd_packets/00050321 [16:58:48]NVStorageSaveData ofd_packets/00050321 [16:58:48]File name is /storage/ofd_packets/00050321 [16:58:48]Write 304 bytes [16:58:48]NVStorageSaveData done [16:58:48]OFDSenderStorePacket done [16:58:48]KKMCreateOFDPacket done [16:58:48]NVStorageSaveData kkm_last_timestamp [16:58:48]File name is /storage/kkm_last_timestamp [16:58:48]Write 4 bytes [16:58:48]NVStorageSaveData done [16:58:48]ExternCall_PrintAddStr [16:58:48]wPrintStart [16:58:48]Write to MH i2c: 01 00 00 49 14 5D [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 07 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 FF 0F 72 [16:58:48]RasterBufferAndPrint [16:58:48]line Счет N : (3)164228 [16:58:48]line ИНН: 02508201610067 [16:58:48]line Контрольно-Кассовый Чек [16:58:48]line ПРОДАЖА [16:58:48]line Товар: 48744546 [16:58:48]line LD Compact Silver [16:58:48]line 1.000 * 134.00 [16:58:48]line = 134.00 [16:58:48]line НДС 12% НСП 1% [16:58:48]line > о реализуемом товаре [16:58:48]line ИТОГО: 134.00 [16:58:48]line НСП 1% : 1.19 [16:58:48]line НДС 12% : 14.23 [16:58:48]line Наличными: 134.00 [16:58:48]line Безнал.: 0.00 [16:58:48]line Место: АЗС № 80 "Партнер Нефть" [16:58:48]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:58:48]line СНО: Общий режим [16:58:48]line Чек 66 23.10.2024 16:58 [16:58:48]line Смена: 491 ФФД: 1.0 [16:58:48]line ЗНМ: 0300000090 [16:58:48]line РНМ: 0000000000097022 [16:58:48]line Версия ККМ: 001 [16:58:48]line ФМ: 0000000000875000 [16:58:48]line ФД: 50321 [16:58:48]line ФПД: 89778358919174 [16:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165851&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50321&fm=89778358919174&tin=02508201610067®Number=0000000000097022&sum=13400 [16:58:49]line 0 [16:58:49]OFD Sender: Processing packet 50321 [packets to send 7, broken 6] [16:58:49]ProducePacketName [16:58:49]name=ofd_packets/00050321 [16:58:49]OFD Sender: To server: pG, [16:58:49]CommunicateWithHost lk.salyk.kg:30040 [16:58:49]ConnectInit lk.salyk.kg [16:58:49]written 0, free lines is 4095 [16:58:49]Connected sock=10 [16:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 12 01 00 00 9A 7E 0A 01 9C BE 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 42 00 00 00 F4 03 04 00 4B 2B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C4 00 00 35 04 06 00 51 A7 27 31 20 06 B9 34 C0 50 7B 72 A7 86 [16:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DA D9 47 00 51 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C4 00 00 F4 03 04 00 E1 D6 18 67 B6 04 01 00 00 A2 F6 A3 15 CA 76 94 F8 [16:58:49]CommunicateWithHost err = 0 [16:58:49]CheckOFDResponse [16:58:49]1017 (14) - 77093643461234 [16:58:49]1041 (16) - 0000000000875000 [16:58:49]1040 (4) - 50321 [16:58:49]1012 (4) - 23.10.2024 10:58 [16:58:49]1206 (1) - 0 [16:58:49]OFD Sender: Remove packet 50321 [16:58:49]ProducePacketName [16:58:49]name=ofd_packets/00050321 [16:58:49]NVStorageDeleteData [16:58:49]Write to MH i2c: 01 00 00 71 14 85 [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: 01 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: 01 07 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 15 0D AE [16:58:49]RasterBufferAndPrint [16:58:49]line [16:58:49]line [16:58:49]line [16:58:49]line [16:58:49]line [16:58:49]written 0, free lines is 3353 [16:58:49]process_action close_receipt done [16:58:49]requested_data is exist [16:58:49]produce_requested_data [16:58:49]requested_item fm.sn is exist - process it [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 11 00 00 [16:58:49]Write to MH i2c: E2 08 00 78 14 80 11 00 00 00 00 00 00 06 [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 17 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 17 00 78 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4D [16:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:58:49]wFMCommunicate OK [16:58:49]requested_item fd.num is exist - process it [16:58:49]SAM_PROTO_GetFieldsCounters [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 13 00 00 [16:58:49]Write to MH i2c: E2 08 00 79 14 80 13 00 00 00 00 00 00 09 [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 62 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 62 00 79 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 91 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 91 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:49]wFMCommunicate OK [16:58:49]SAM_PROTO_GetFieldsCounters done [16:58:49]requested_item shift.num is exist - process it [16:58:49]requested_item shift.opened is exist - process it [16:58:49]req_shift_opened [16:58:49]FM_GetShiftState [16:58:49]SAM_PROTO_GetShiftState [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 13 01 00 [16:58:49]Write to MH i2c: E2 08 00 7A 14 80 13 01 00 00 00 00 00 0B [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 0E 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 0E 00 7A 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 57 [16:58:49]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [16:58:49]wFMCommunicate OK [16:58:49]SAM_PROTO_GetShiftState done [16:58:49]FM_GetShiftState done [16:58:49]req_shift_opened done [16:58:49]requested_item shift.open_date is exist - process it [16:58:49]req_shift_open_date [16:58:49]req_shift_open_date done [16:58:49]produce_requested_data done [16:58:49]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50321,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [16:58:49]process_action_free close_receipt [16:58:49]json_value_free [16:58:49]json_value_free done [16:58:49]process_json_proto returns [16:58:49]Send response to host [16:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50321,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [16:58:49]free response buf [16:58:49]execute_script done [16:58:49]execute_script returns [16:58:49]free content buf [16:58:49]Sock 9.Close socket [16:58:49]Sock 9.Thread stoped [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: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:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:02]accept exits with 7 [17:09:02]New connection [17:09:02]New thread 3067305316 created [17:09:02]Thread 3067161956 joined [17:09:02]Waiting for new connection... [17:09:02] Sock 7.Parse request [17:09:02]Sock 7.Check first char [17:09:02]Sock 7.First char is OK [17:09:02]request: POST /json_proto HTTP/1.0 [17:09:02]Method: POST [17:09:02]URL: /json_proto [17:09:02]Method is POST - this is cgi request [17:09:02]url: /json_proto [17:09:02]query_string will be loaded in cgi processing [17:09:02]execute_cgi json_proto POST (null) [17:09:02]execute_cgi path=json_proto method=POST [17:09:02]POST find Content-Length [17:09:02]Host: 172.17.49.196:8080 [17:09:02]Content-Length: 658 [17:09:02]Content-Type: application/json [17:09:02] [17:09:02]POST finish read [17:09:02]Found Content-Length = 658 [17:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164229", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:02]execute_script... [17: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)164229", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:02]POST & json_proto [17:09:02]process_json_proto [17:09:02]json parsed OK: [17:09:02]protocol is kg_v1.0 [17:09:02]action value=close_receipt [17:09:02]process_action close_receipt [17:09:02]cmd_close_receipt [17:09:02]MH_GetDate [17:09:02]Write to MH i2c: F0 00 00 7B 14 7E [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 09 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 09 00 7B 14 00 B2 2D 19 67 BD 3B 11 67 56 [17:09:02]GetLastDocTimeStamp 1729702731 [17:09:02]current date 1729703346 [17:09:02]FM_GetShiftState [17:09:02]SAM_PROTO_GetShiftState [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 13 01 00 [17:09:02]Write to MH i2c: E2 08 00 7C 14 80 13 01 00 00 00 00 00 0D [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 7C 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 59 [17:09:02]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_GetShiftState done [17:09:02]FM_GetShiftState done [17:09:02]opened in 1729642370 [17:09:02]opened+sec_in_day 1729728770 [17:09:02]quantity*price = 14100 [17:09:02]sum+1 = 14101 [17:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 67 23.10.2024 17:09 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50322 ФПД: 225927914971524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170906&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50322&fm=225927914971524&tin=02508201610067®Number=0000000000097022&sum=14100 0 [17:09:03]StoreToDocumentArchive [17:09:03]shift 491 fd 50322 [17:09:03]save to /storage/0491/doc_00050322 [17:09:03]save last doc name /storage/0491/doc_00050322 to /storage/kkm_last_doc_name [17:09:03]save OK [17:09:03]Clear old archive folders... [17:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:09:03]tlvbuf is B6F17600 [17:09:03]SAM_PROTO_ClearQueue [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 09 00 00 [17:09:03]Write to MH i2c: E2 08 00 89 14 80 09 00 00 00 00 00 00 0F [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_ClearQueue done [17:09:03]KKMCreateOFDPacket [17:09:03]OFDProtocolAddRootSTLVToBuf [17:09:03]FM_MakeSignedData [17:09:03]FM_MakeSignedData [17:09:03]SAM_PROTO_SignData [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 01 02 [17:09:03]Write to MH i2c: E2 08 00 8A 14 80 0D 01 02 00 00 00 00 17 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 8A 14 00 90 00 12 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=255 [17:09:03]MH_SAM_APDU [17:09:03]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 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 B2 2D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:09:03]Write to MH i2c: E2 02 01 8B 14 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 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 B2 2D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4E [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=53 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C4 00 00 35 04 06 00 CD 7A F1 1D E1 84 [17:09:03]Write to MH i2c: E2 38 00 8C 14 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C4 00 00 35 04 06 00 CD 7A F1 1D E1 84 00 00 0E [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 03 02 [17:09:03]Write to MH i2c: E2 08 00 8D 14 80 0D 03 02 00 00 00 00 1C [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 8D 14 00 F9 9E 7A 15 50 C1 F5 75 90 00 BE [17:09:03]RAPDU: F9 9E 7A 15 50 C1 F5 75 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_SignData done [17:09:03]FM_MakeSignedData done [17:09:03]CreateOFDProtocolMessage [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 11 00 00 [17:09:03]Write to MH i2c: E2 08 00 8E 14 80 11 00 00 00 00 00 00 1C [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 17 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 17 00 8E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 63 [17:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:09:03]wFMCommunicate OK [17:09:03]CreateOFDProtocolMessage done [17:09:03]OFDSenderStorePacket 50322 [17:09:03]StoreOFDPacket docnum=50322 [17:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 24 A3 32 01 19 0D 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 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 B2 2D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C4 00 00 35 04 06 00 CD 7A F1 1D E1 84 F9 9E 7A 15 50 C1 F5 75 [17:09:03]CheckFolder [17:09:03]dirname=/storage/ofd_packets [17:09:03]CheckFolder done [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00050322 [17:09:03]NVStorageSaveData ofd_packets/00050322 [17:09:03]File name is /storage/ofd_packets/00050322 [17:09:03]Write 344 bytes [17:09:03]NVStorageSaveData done [17:09:03]OFDSenderStorePacket done [17:09:03]KKMCreateOFDPacket done [17:09:03]NVStorageSaveData kkm_last_timestamp [17:09:03]File name is /storage/kkm_last_timestamp [17:09:03]Write 4 bytes [17:09:03]NVStorageSaveData done [17:09:03]ExternCall_PrintAddStr [17:09:03]wPrintStart [17:09:03]Write to MH i2c: 01 00 00 8F 14 A3 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 8F 14 00 00 00 00 00 FF 0F B8 [17:09:03]RasterBufferAndPrint [17:09:03]line Счет N : (3)164229 [17:09:03]line ИНН: 02508201610067 [17:09:03]line Контрольно-Кассовый Чек [17:09:03]line ПРОДАЖА [17:09:03]line Товар: 4870216764968 [17:09:03]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [17:09:03]line 1.000 * 141.00 [17:09:03]line = 141.00 [17:09:03]line НДС 12% НСП 1% [17:09:03]line > о реализуемом товаре [17:09:03]line ИТОГО: 141.00 [17:09:03]line НСП 1% : 1.25 [17:09:03]line НДС 12% : 14.97 [17:09:03]line Наличными: 141.00 [17:09:03]line Безнал.: 0.00 [17:09:03]line Место: АЗС № 80 "Партнер Нефть" [17:09:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:09:03]line СНО: Общий режим [17:09:03]line Чек 67 23.10.2024 17:09 [17:09:03]line Смена: 491 ФФД: 1.0 [17:09:03]line ЗНМ: 0300000090 [17:09:03]line РНМ: 0000000000097022 [17:09:03]line Версия ККМ: 001 [17:09:03]line ФМ: 0000000000875000 [17:09:03]line ФД: 50322 [17:09:03]line ФПД: 225927914971524 [17:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170906&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50322&fm=225927914971524&tin=02508201610067®Number=0000000000097022&sum=14100 [17:09:04]line 0 [17:09:04]OFD Sender: Processing packet 50322 [packets to send 7, broken 6] [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00050322 [17:09:04]OFD Sender: To server: pG, [17:09:04]CommunicateWithHost lk.salyk.kg:30040 [17:09:04]ConnectInit lk.salyk.kg [17:09:04]written 0, free lines is 4095 [17:09:04]Connected sock=10 [17:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 24 A3 32 01 19 0D 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 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 B2 2D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C4 00 00 35 04 06 00 CD 7A F1 1D E1 84 F9 9E 7A 15 50 C1 F5 75 [17:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C3 41 47 00 EE 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C4 00 00 F4 03 04 00 49 D9 18 67 B6 04 01 00 00 6B 8D BA 03 93 10 F8 7C [17:09:04]CommunicateWithHost err = 0 [17:09:04]CheckOFDResponse [17:09:04]1017 (14) - 77093643461234 [17:09:04]1041 (16) - 0000000000875000 [17:09:04]1040 (4) - 50322 [17:09:04]1012 (4) - 23.10.2024 11:08 [17:09:04]1206 (1) - 0 [17:09:04]OFD Sender: Remove packet 50322 [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00050322 [17:09:04]NVStorageDeleteData [17:09:04]Write to MH i2c: 01 00 00 B8 14 CC [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 0F 0D EF [17:09:04]RasterBufferAndPrint [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]written 0, free lines is 3349 [17:09:04]process_action close_receipt done [17:09:04]requested_data is exist [17:09:04]produce_requested_data [17:09:04]requested_item fm.sn is exist - process it [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 11 00 00 [17:09:04]Write to MH i2c: E2 08 00 BF 14 80 11 00 00 00 00 00 00 4D [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 BF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 94 [17:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:09:04]wFMCommunicate OK [17:09:04]requested_item fd.num is exist - process it [17:09:04]SAM_PROTO_GetFieldsCounters [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 13 00 00 [17:09:04]Write to MH i2c: E2 08 00 C0 14 80 13 00 00 00 00 00 00 50 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 62 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 62 00 C0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 92 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 92 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:04]wFMCommunicate OK [17:09:04]SAM_PROTO_GetFieldsCounters done [17:09:04]requested_item shift.num is exist - process it [17:09:04]requested_item shift.opened is exist - process it [17:09:04]req_shift_opened [17:09:04]FM_GetShiftState [17:09:04]SAM_PROTO_GetShiftState [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 13 01 00 [17:09:04]Write to MH i2c: E2 08 00 C1 14 80 13 01 00 00 00 00 00 52 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 C1 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 9E [17:09:05]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]req_shift_opened done [17:09:05]requested_item shift.open_date is exist - process it [17:09:05]req_shift_open_date [17:09:05]req_shift_open_date done [17:09:05]produce_requested_data done [17:09:05]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50322,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [17:09:05]process_action_free close_receipt [17:09:05]json_value_free [17:09:05]json_value_free done [17:09:05]process_json_proto returns [17:09:05]Send response to host [17:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50322,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [17:09:05]free response buf [17:09:05]execute_script done [17:09:05]execute_script returns [17:09:05]free content buf [17:09:05]Sock 7.Close socket [17:09:05]Sock 7.Thread stoped [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:34]accept exits with 9 [17:26:34]New connection [17:26:34]New thread 3067161956 created [17:26:34]Thread 3067305316 joined [17:26:34]Waiting for new connection... [17:26:34] Sock 9.Parse request [17:26:34]Sock 9.Check first char [17:26:34]Sock 9.First char is OK [17:26:34]request: POST /json_proto HTTP/1.0 [17:26:34]Method: POST [17:26:34]URL: /json_proto [17:26:34]Method is POST - this is cgi request [17:26:34]url: /json_proto [17:26:34]query_string will be loaded in cgi processing [17:26:34]execute_cgi json_proto POST (null) [17:26:34]execute_cgi path=json_proto method=POST [17:26:34]POST find Content-Length [17:26:34]Host: 172.17.49.196:8080 [17:26:34]Content-Length: 1078 [17:26:34]Content-Type: application/json [17:26:34] [17:26:34]POST finish read [17:26:34]Found Content-Length = 1078 [17:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164230", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: Mbank", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:34]execute_script... [17:26: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)164230", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: Mbank", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:34]POST & json_proto [17:26:34]process_json_proto [17:26:34]json parsed OK: [17:26:34]protocol is kg_v1.0 [17:26:34]action value=close_receipt [17:26:34]process_action close_receipt [17:26:34]cmd_close_receipt [17:26:34]MH_GetDate [17:26:34]Write to MH i2c: F0 00 00 C2 14 C5 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 09 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 09 00 C2 14 00 CE 31 19 67 BD 3B 11 67 BD [17:26:34]GetLastDocTimeStamp 1729703346 [17:26:34]current date 1729704398 [17:26:34]FM_GetShiftState [17:26:34]SAM_PROTO_GetShiftState [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 13 01 00 [17:26:34]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A0 [17:26:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_GetShiftState done [17:26:34]FM_GetShiftState done [17:26:34]opened in 1729642370 [17:26:34]opened+sec_in_day 1729728770 [17:26:34]quantity*price = 8000 [17:26:34]sum+1 = 8001 [17:26:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.59 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 68 23.10.2024 17:26 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50323 ФПД: 133556735025954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50323&fm=133556735025954&tin=02508201610067®Number=0000000000097022&sum=17500 0 [17:26:35]StoreToDocumentArchive [17:26:35]shift 491 fd 50323 [17:26:35]save to /storage/0491/doc_00050323 [17:26:35]save last doc name /storage/0491/doc_00050323 to /storage/kkm_last_doc_name [17:26:35]save OK [17:26:35]Clear old archive folders... [17:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=417 [17:26:35]tlvbuf is 0013A1E0 [17:26:35]SAM_PROTO_ClearQueue [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 09 00 00 [17:26:35]Write to MH i2c: E2 08 00 D0 14 80 09 00 00 00 00 00 00 56 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [17:26:35]RAPDU: 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_ClearQueue done [17:26:35]KKMCreateOFDPacket [17:26:35]OFDProtocolAddRootSTLVToBuf [17:26:35]FM_MakeSignedData [17:26:35]FM_MakeSignedData [17:26:35]SAM_PROTO_SignData [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 0D 01 02 [17:26:35]Write to MH i2c: E2 08 00 D1 14 80 0D 01 02 00 00 00 00 5E [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 D1 14 00 90 00 59 [17:26:35]RAPDU: 90 00 [17:26:35]wFMCommunicate OK [17:26:35]wFMCommunicate request_size=255 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [17:26:35]Write to MH i2c: E2 02 01 D2 14 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 C6 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [17:26:35]RAPDU: 90 00 [17:26:35]wFMCommunicate OK [17:26:35]wFMCommunicate request_size=176 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CE 31 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C4 00 00 35 04 06 00 79 78 19 BF A3 22 [17:26:35]Write to MH i2c: E2 B3 00 D3 14 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CE 31 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C4 00 00 35 04 06 00 79 78 19 BF A3 22 00 00 64 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]OFD Sender: No OFD packet to send [17:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 03 02 [17:26:36]Write to MH i2c: E2 08 00 D4 14 80 0D 03 02 00 00 00 00 63 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 D4 14 00 57 40 77 B1 33 3E A6 BD 90 00 F7 [17:26:36]RAPDU: 57 40 77 B1 33 3E A6 BD 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_SignData done [17:26:36]FM_MakeSignedData done [17:26:36]CreateOFDProtocolMessage [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 11 00 00 [17:26:36]Write to MH i2c: E2 08 00 D5 14 80 11 00 00 00 00 00 00 63 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 D5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AA [17:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:26:36]wFMCommunicate OK [17:26:36]CreateOFDProtocolMessage done [17:26:36]OFDSenderStorePacket 50323 [17:26:36]StoreOFDPacket docnum=50323 [17:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B5 01 00 00 CF E0 AD 01 90 5D 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CE 31 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C4 00 00 35 04 06 00 79 78 19 BF A3 22 57 40 77 B1 33 3E A6 BD [17:26:36]CheckFolder [17:26:36]dirname=/storage/ofd_packets [17:26:36]CheckFolder done [17:26:36]ProducePacketName [17:26:36]name=ofd_packets/00050323 [17:26:36]NVStorageSaveData ofd_packets/00050323 [17:26:36]File name is /storage/ofd_packets/00050323 [17:26:36]Write 467 bytes [17:26:36]NVStorageSaveData done [17:26:36]OFDSenderStorePacket done [17:26:36]KKMCreateOFDPacket done [17:26:36]NVStorageSaveData kkm_last_timestamp [17:26:36]File name is /storage/kkm_last_timestamp [17:26:36]Write 4 bytes [17:26:36]NVStorageSaveData done [17:26:36]ExternCall_PrintAddStr [17:26:36]wPrintStart [17:26:36]Write to MH i2c: 01 00 00 D6 14 EA [17:26:36]OFD Sender: Processing packet 50323 [packets to send 7, broken 6] [17:26:36]ProducePacketName [17:26:36]name=ofd_packets/00050323 [17:26:36]OFD Sender: To server: pG, [17:26:36]CommunicateWithHost lk.salyk.kg:30040 [17:26:36]ConnectInit lk.salyk.kg [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 D6 14 00 00 00 00 00 FF 0F FF [17:26:36]RasterBufferAndPrint [17:26:36]line Счет N : (3)164230 [17:26:36]line ИНН: 02508201610067 [17:26:36]line Контрольно-Кассовый Чек [17:26:36]line ПРОДАЖА [17:26:36]line Товар: 4700003010353 [17:26:36]line Напиток Let`s Go! с/с груша ПЭТ 1л [17:26:36]line 1.000 * 80.00 [17:26:36]line = 80.00 [17:26:36]line НДС 12% НСП 1% [17:26:36]line > о реализуемом товаре [17:26:36]line Товар: 4700000480050 [17:26:36]line Напиток Nitro Energy эн green ж/б 0,45л [17:26:36]line 1.000 * 95.00 [17:26:36]line = 95.00 [17:26:36]line НДС 12% НСП 1% [17:26:36]line > о реализуемом товаре [17:26:36]line ИТОГО: 175.00 [17:26:36]line НСП 1% : 1.55 [17:26:36]line НДС 12% : 18.59 [17:26:36]line Наличными: 0.00 [17:26:36]line Безнал.: 175.00 [17:26:36]line Место: АЗС № 80 "Партнер Нефть" [17:26:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:26:36]line СНО: Общий режим [17:26:36]line Чек 68 23.10.2024 17:26 [17:26:36]line Смена: 491 ФФД: 1.0 [17:26:36]line ЗНМ: 0300000090 [17:26:36]line РНМ: 0000000000097022 [17:26:36]line Версия ККМ: 001 [17:26:36]line Платежная система: Mbank [17:26:36]line ФМ: 0000000000875000 [17:26:36]line ФД: 50323 [17:26:36]line ФПД: 133556735025954 [17:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50323&fm=133556735025954&tin=02508201610067®Number=0000000000097022&sum=17500 [17:26:36]line 0 [17:26:36]written 0, free lines is 4095 [17:26:36]Connected sock=10 [17:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B5 01 00 00 CF E0 AD 01 90 5D 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CE 31 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C4 00 00 35 04 06 00 79 78 19 BF A3 22 57 40 77 B1 33 3E A6 BD [17:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CD 80 47 00 3E 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C4 00 00 F4 03 04 00 65 DD 18 67 B6 04 01 00 00 26 71 1A F0 7C BC 07 93 [17:26:36]CommunicateWithHost err = 0 [17:26:36]CheckOFDResponse [17:26:36]1017 (14) - 77093643461234 [17:26:36]1041 (16) - 0000000000875000 [17:26:36]1040 (4) - 50323 [17:26:36]1012 (4) - 23.10.2024 11:26 [17:26:36]1206 (1) - 0 [17:26:36]OFD Sender: Remove packet 50323 [17:26:36]ProducePacketName [17:26:36]name=ofd_packets/00050323 [17:26:36]NVStorageDeleteData [17:26:37]Write to MH i2c: 01 00 00 07 15 1C [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 07 15 00 00 00 00 00 9E 0C CD [17:26:37]RasterBufferAndPrint [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]written 0, free lines is 3237 [17:26:37]process_action close_receipt done [17:26:37]requested_data is exist [17:26:37]produce_requested_data [17:26:37]requested_item fm.sn is exist - process it [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 11 00 00 [17:26:37]Write to MH i2c: E2 08 00 0E 15 80 11 00 00 00 00 00 00 9D [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 0E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E4 [17:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:26:37]wFMCommunicate OK [17:26:37]requested_item fd.num is exist - process it [17:26:37]SAM_PROTO_GetFieldsCounters [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 00 00 [17:26:37]Write to MH i2c: E2 08 00 0F 15 80 13 00 00 00 00 00 00 A0 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 62 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 62 00 0F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 93 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 93 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetFieldsCounters done [17:26:37]requested_item shift.num is exist - process it [17:26:37]requested_item shift.opened is exist - process it [17:26:37]req_shift_opened [17:26:37]FM_GetShiftState [17:26:37]SAM_PROTO_GetShiftState [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 01 00 [17:26:37]Write to MH i2c: E2 08 00 10 15 80 13 01 00 00 00 00 00 A2 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:37]OFD Sender: No OFD packet to send [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 10 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 EE [17:26:37]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetShiftState done [17:26:37]FM_GetShiftState done [17:26:37]req_shift_opened done [17:26:37]requested_item shift.open_date is exist - process it [17:26:37]req_shift_open_date [17:26:37]req_shift_open_date done [17:26:37]produce_requested_data done [17:26:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50323,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [17:26:37]process_action_free close_receipt [17:26:37]json_value_free [17:26:37]json_value_free done [17:26:37]process_json_proto returns [17:26:37]Send response to host [17:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50323,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [17:26:37]free response buf [17:26:37]execute_script done [17:26:37]execute_script returns [17:26:37]free content buf [17:26:37]Sock 9.Close socket [17:26:37]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]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:29]accept exits with 7 [17:42:29]New connection [17:42:29]New thread 3067305316 created [17:42:29]Thread 3067161956 joined [17:42:29]Waiting for new connection... [17:42:29] Sock 7.Parse request [17:42:29]Sock 7.Check first char [17:42:29]Sock 7.First char is OK [17:42:29]request: POST /json_proto HTTP/1.0 [17:42:29]Method: POST [17:42:29]URL: /json_proto [17:42:29]Method is POST - this is cgi request [17:42:29]url: /json_proto [17:42:29]query_string will be loaded in cgi processing [17:42:29]execute_cgi json_proto POST (null) [17:42:29]execute_cgi path=json_proto method=POST [17:42:29]POST find Content-Length [17:42:29]Host: 172.17.49.196:8080 [17:42:29]Content-Length: 672 [17:42:29]Content-Type: application/json [17:42:29] [17:42:29]POST finish read [17:42:29]Found Content-Length = 672 [17:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164231", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "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" ] } } [17:42:29]execute_script... [17:42: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)164231", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "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" ] } } [17:42:29]POST & json_proto [17:42:29]process_json_proto [17:42:29]json parsed OK: [17:42:29]protocol is kg_v1.0 [17:42:29]action value=close_receipt [17:42:29]process_action close_receipt [17:42:29]cmd_close_receipt [17:42:29]MH_GetDate [17:42:29]Write to MH i2c: F0 00 00 11 15 15 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: F0 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: F0 09 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: F0 09 00 11 15 00 89 35 19 67 BD 3B 11 67 CC [17:42:29]GetLastDocTimeStamp 1729704398 [17:42:29]current date 1729705353 [17:42:29]FM_GetShiftState [17:42:29]SAM_PROTO_GetShiftState [17:42:29]wFMCommunicate request_size=4 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 13 01 00 [17:42:29]Write to MH i2c: E2 08 00 12 15 80 13 01 00 00 00 00 00 A4 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0E 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0E 00 12 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F0 [17:42:29]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:42:29]wFMCommunicate OK [17:42:29]SAM_PROTO_GetShiftState done [17:42:29]FM_GetShiftState done [17:42:29]opened in 1729642370 [17:42:29]opened+sec_in_day 1729728770 [17:42:29]quantity*price = 14000 [17:42:29]sum+1 = 14001 [17:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 69 23.10.2024 17:42 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50324 ФПД: 101420776740290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174233&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50324&fm=101420776740290&tin=02508201610067®Number=0000000000097022&sum=14000 0 [17:42:30]StoreToDocumentArchive [17:42:30]shift 491 fd 50324 [17:42:30]save to /storage/0491/doc_00050324 [17:42:30]save last doc name /storage/0491/doc_00050324 to /storage/kkm_last_doc_name [17:42:30]save OK [17:42:30]Clear old archive folders... [17:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=284 [17:42:30]tlvbuf is B6F17760 [17:42:30]SAM_PROTO_ClearQueue [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 09 00 00 [17:42:30]Write to MH i2c: E2 08 00 1F 15 80 09 00 00 00 00 00 00 A6 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]SAM_PROTO_ClearQueue done [17:42:30]KKMCreateOFDPacket [17:42:30]OFDProtocolAddRootSTLVToBuf [17:42:30]FM_MakeSignedData [17:42:30]FM_MakeSignedData [17:42:30]SAM_PROTO_SignData [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 01 02 [17:42:30]Write to MH i2c: E2 08 00 20 15 80 0D 01 02 00 00 00 00 AE [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 20 15 00 90 00 A9 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=255 [17:42:30]MH_SAM_APDU [17:42:30]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 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 45 00 00 00 F4 03 04 00 89 35 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [17:42:30]Write to MH i2c: E2 02 01 21 15 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 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 45 00 00 00 F4 03 04 00 89 35 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 97 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 21 15 00 90 00 AA [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=43 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C4 00 00 35 04 06 00 5C 3D DD 5E D5 C2 [17:42:30]Write to MH i2c: E2 2E 00 22 15 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C4 00 00 35 04 06 00 5C 3D DD 5E D5 C2 00 00 50 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 22 15 00 90 00 AB [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 03 02 [17:42:30]Write to MH i2c: E2 08 00 23 15 80 0D 03 02 00 00 00 00 B3 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 0B 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 0B 00 23 15 00 3D 25 C0 B5 09 3C 0E 3A 90 00 18 [17:42:30]RAPDU: 3D 25 C0 B5 09 3C 0E 3A 90 00 [17:42:30]wFMCommunicate OK [17:42:30]SAM_PROTO_SignData done [17:42:30]FM_MakeSignedData done [17:42:30]CreateOFDProtocolMessage [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 11 00 00 [17:42:30]Write to MH i2c: E2 08 00 24 15 80 11 00 00 00 00 00 00 B3 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 24 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FA [17:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:42:30]wFMCommunicate OK [17:42:30]CreateOFDProtocolMessage done [17:42:30]OFDSenderStorePacket 50324 [17:42:30]StoreOFDPacket docnum=50324 [17:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 3C 42 28 01 DA 97 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 45 00 00 00 F4 03 04 00 89 35 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C4 00 00 35 04 06 00 5C 3D DD 5E D5 C2 3D 25 C0 B5 09 3C 0E 3A [17:42:30]CheckFolder [17:42:30]dirname=/storage/ofd_packets [17:42:30]CheckFolder done [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00050324 [17:42:30]NVStorageSaveData ofd_packets/00050324 [17:42:30]File name is /storage/ofd_packets/00050324 [17:42:30]Write 334 bytes [17:42:30]NVStorageSaveData done [17:42:30]OFDSenderStorePacket done [17:42:30]KKMCreateOFDPacket done [17:42:30]NVStorageSaveData kkm_last_timestamp [17:42:30]File name is /storage/kkm_last_timestamp [17:42:30]Write 4 bytes [17:42:30]NVStorageSaveData done [17:42:30]ExternCall_PrintAddStr [17:42:30]wPrintStart [17:42:30]Write to MH i2c: 01 00 00 25 15 3A [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [17:42:30]RasterBufferAndPrint [17:42:30]line Счет N : (3)164231 [17:42:30]line ИНН: 02508201610067 [17:42:30]line Контрольно-Кассовый Чек [17:42:30]line ПРОДАЖА [17:42:30]line Товар: 4620006995702 [17:42:30]line Водка Зеленая Марка 0,1л [17:42:30]line 1.000 * 140.00 [17:42:30]line = 140.00 [17:42:30]line НДС 12% НСП 1% [17:42:30]line > о реализуемом товаре [17:42:30]line ИТОГО: 140.00 [17:42:30]line НСП 1% : 1.24 [17:42:30]line НДС 12% : 14.87 [17:42:30]line Наличными: 140.00 [17:42:30]line Безнал.: 0.00 [17:42:30]line Место: АЗС № 80 "Партнер Нефть" [17:42:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:42:30]line СНО: Общий режим [17:42:30]line Чек 69 23.10.2024 17:42 [17:42:30]line Смена: 491 ФФД: 1.0 [17:42:30]line ЗНМ: 0300000090 [17:42:30]line РНМ: 0000000000097022 [17:42:30]line Версия ККМ: 001 [17:42:30]line ФМ: 0000000000875000 [17:42:30]line ФД: 50324 [17:42:30]line ФПД: 101420776740290 [17:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174233&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50324&fm=101420776740290&tin=02508201610067®Number=0000000000097022&sum=14000 [17:42:31]OFD Sender: Processing packet 50324 [packets to send 7, broken 6] [17:42:31]ProducePacketName [17:42:31]name=ofd_packets/00050324 [17:42:31]OFD Sender: To server: pG, [17:42:31]CommunicateWithHost lk.salyk.kg:30040 [17:42:31]ConnectInit lk.salyk.kg [17:42:31]line 0 [17:42:31]written 0, free lines is 4095 [17:42:31]Connected sock=11 [17:42:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 3C 42 28 01 DA 97 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 45 00 00 00 F4 03 04 00 89 35 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C4 00 00 35 04 06 00 5C 3D DD 5E D5 C2 3D 25 C0 B5 09 3C 0E 3A [17:42:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 35 D7 47 00 4C 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C4 00 00 F4 03 04 00 20 E1 18 67 B6 04 01 00 00 60 FF F5 DE F7 B4 51 77 [17:42:31]CommunicateWithHost err = 0 [17:42:31]CheckOFDResponse [17:42:31]1017 (14) - 77093643461234 [17:42:31]1041 (16) - 0000000000875000 [17:42:31]1040 (4) - 50324 [17:42:31]1012 (4) - 23.10.2024 11:42 [17:42:31]1206 (1) - 0 [17:42:31]OFD Sender: Remove packet 50324 [17:42:31]ProducePacketName [17:42:31]name=ofd_packets/00050324 [17:42:31]NVStorageDeleteData [17:42:31]Write to MH i2c: 01 00 00 4D 15 62 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 07 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 26 0D 9C [17:42:31]RasterBufferAndPrint [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]written 0, free lines is 3372 [17:42:31]process_action close_receipt done [17:42:31]requested_data is exist [17:42:31]produce_requested_data [17:42:31]requested_item fm.sn is exist - process it [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 11 00 00 [17:42:31]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 17 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2A [17:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:42:31]wFMCommunicate OK [17:42:31]requested_item fd.num is exist - process it [17:42:31]SAM_PROTO_GetFieldsCounters [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 13 00 00 [17:42:31]Write to MH i2c: E2 08 00 55 15 80 13 00 00 00 00 00 00 E6 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 62 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 62 00 55 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 94 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 94 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:31]wFMCommunicate OK [17:42:31]SAM_PROTO_GetFieldsCounters done [17:42:31]requested_item shift.num is exist - process it [17:42:31]requested_item shift.opened is exist - process it [17:42:31]req_shift_opened [17:42:31]FM_GetShiftState [17:42:31]SAM_PROTO_GetShiftState [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 13 01 00 [17:42:31]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 34 [17:42:31]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:42:31]wFMCommunicate OK [17:42:31]SAM_PROTO_GetShiftState done [17:42:31]FM_GetShiftState done [17:42:31]req_shift_opened done [17:42:31]requested_item shift.open_date is exist - process it [17:42:31]req_shift_open_date [17:42:31]req_shift_open_date done [17:42:31]produce_requested_data done [17:42:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50324,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [17:42:31]process_action_free close_receipt [17:42:31]json_value_free [17:42:31]json_value_free done [17:42:31]process_json_proto returns [17:42:31]Send response to host [17:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50324,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [17:42:31]free response buf [17:42:31]execute_script done [17:42:31]execute_script returns [17:42:31]free content buf [17:42:31]Sock 7.Close socket [17:42:31]Sock 7.Thread stoped [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:08]accept exits with 9 [17:51:08]New connection [17:51:08]New thread 3067161956 created [17:51:08]Thread 3067305316 joined [17:51:08]Waiting for new connection... [17:51:08] Sock 9.Parse request [17:51:08]Sock 9.Check first char [17:51:08]Sock 9.First char is OK [17:51:08]request: POST /json_proto HTTP/1.0 [17:51:08]Method: POST [17:51:08]URL: /json_proto [17:51:08]Method is POST - this is cgi request [17:51:08]url: /json_proto [17:51:08]query_string will be loaded in cgi processing [17:51:08]execute_cgi json_proto POST (null) [17:51:08]execute_cgi path=json_proto method=POST [17:51:08]POST find Content-Length [17:51:08]Host: 172.17.49.196:8080 [17:51:08]Content-Length: 644 [17:51:08]Content-Type: application/json [17:51:08] [17:51:08]POST finish read [17:51:08]Found Content-Length = 644 [17:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164232", "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" : 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" ] } } [17:51:08]execute_script... [17:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164232", "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" : 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" ] } } [17:51:08]POST & json_proto [17:51:08]process_json_proto [17:51:08]json parsed OK: [17:51:08]protocol is kg_v1.0 [17:51:08]action value=close_receipt [17:51:08]process_action close_receipt [17:51:08]cmd_close_receipt [17:51:08]MH_GetDate [17:51:08]Write to MH i2c: F0 00 00 57 15 5B [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: F0 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: F0 09 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: F0 09 00 57 15 00 90 37 19 67 BD 3B 11 67 1B [17:51:08]GetLastDocTimeStamp 1729705353 [17:51:08]current date 1729705872 [17:51:08]FM_GetShiftState [17:51:08]SAM_PROTO_GetShiftState [17:51:08]wFMCommunicate request_size=4 [17:51:08]MH_SAM_APDU [17:51:08]CAPDU: 80 13 01 00 [17:51:08]Write to MH i2c: E2 08 00 58 15 80 13 01 00 00 00 00 00 EA [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:08]Read from MH i2c: E2 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: E2 0E 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: E2 0E 00 58 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 36 [17:51:08]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:51:08]wFMCommunicate OK [17:51:08]SAM_PROTO_GetShiftState done [17:51:08]FM_GetShiftState done [17:51:08]opened in 1729642370 [17:51:08]opened+sec_in_day 1729728770 [17:51:08]quantity*price = 23000 [17:51:08]sum+1 = 23001 [17:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 70 23.10.2024 17:51 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50325 ФПД: 15516918873791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175112&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50325&fm=15516918873791&tin=02508201610067®Number=0000000000097022&sum=23000 0 [17:51:09]StoreToDocumentArchive [17:51:09]shift 491 fd 50325 [17:51:09]save to /storage/0491/doc_00050325 [17:51:09]save last doc name /storage/0491/doc_00050325 to /storage/kkm_last_doc_name [17:51:09]save OK [17:51:09]Clear old archive folders... [17:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:51:09]tlvbuf is 00252CC0 [17:51:09]SAM_PROTO_ClearQueue [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 09 00 00 [17:51:09]Write to MH i2c: E2 08 00 65 15 80 09 00 00 00 00 00 00 EC [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [17:51:09]RAPDU: 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_ClearQueue done [17:51:09]KKMCreateOFDPacket [17:51:09]OFDProtocolAddRootSTLVToBuf [17:51:09]FM_MakeSignedData [17:51:09]FM_MakeSignedData [17:51:09]SAM_PROTO_SignData [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 0D 01 02 [17:51:09]Write to MH i2c: E2 08 00 66 15 80 0D 01 02 00 00 00 00 F4 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [17:51:09]RAPDU: 90 00 [17:51:09]wFMCommunicate OK [17:51:09]wFMCommunicate request_size=255 [17:51:09]MH_SAM_APDU [17:51:09]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 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 46 00 00 00 F4 03 04 00 90 37 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [17:51:09]Write to MH i2c: E2 02 01 67 15 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 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 46 00 00 00 F4 03 04 00 90 37 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 0E [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [17:51:09]RAPDU: 90 00 [17:51:09]wFMCommunicate OK [17:51:09]wFMCommunicate request_size=39 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C4 00 00 35 04 06 00 0E 1C D0 6F FE BF [17:51:09]Write to MH i2c: E2 2A 00 68 15 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C4 00 00 35 04 06 00 0E 1C D0 6F FE BF 00 00 25 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [17:51:09]RAPDU: 90 00 [17:51:09]wFMCommunicate OK [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 0D 03 02 [17:51:09]Write to MH i2c: E2 08 00 69 15 80 0D 03 02 00 00 00 00 F9 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0B 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0B 00 69 15 00 22 88 FA 99 4B E0 48 55 90 00 FF [17:51:09]RAPDU: 22 88 FA 99 4B E0 48 55 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_SignData done [17:51:09]FM_MakeSignedData done [17:51:09]CreateOFDProtocolMessage [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 11 00 00 [17:51:09]Write to MH i2c: E2 08 00 6A 15 80 11 00 00 00 00 00 00 F9 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 6A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 40 [17:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:51:09]wFMCommunicate OK [17:51:09]CreateOFDProtocolMessage done [17:51:09]OFDSenderStorePacket 50325 [17:51:09]StoreOFDPacket docnum=50325 [17:51:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 9E 42 24 01 F8 74 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 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 46 00 00 00 F4 03 04 00 90 37 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C4 00 00 35 04 06 00 0E 1C D0 6F FE BF 22 88 FA 99 4B E0 48 55 [17:51:09]CheckFolder [17:51:09]dirname=/storage/ofd_packets [17:51:09]CheckFolder done [17:51:09]ProducePacketName [17:51:09]name=ofd_packets/00050325 [17:51:09]NVStorageSaveData ofd_packets/00050325 [17:51:09]File name is /storage/ofd_packets/00050325 [17:51:09]Write 330 bytes [17:51:09]NVStorageSaveData done [17:51:09]OFDSenderStorePacket done [17:51:09]KKMCreateOFDPacket done [17:51:09]NVStorageSaveData kkm_last_timestamp [17:51:09]File name is /storage/kkm_last_timestamp [17:51:09]Write 4 bytes [17:51:09]NVStorageSaveData done [17:51:09]ExternCall_PrintAddStr [17:51:09]wPrintStart [17:51:09]Write to MH i2c: 01 00 00 6B 15 80 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 07 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FF 0F 95 [17:51:09]RasterBufferAndPrint [17:51:09]line Счет N : (3)164232 [17:51:09]line ИНН: 02508201610067 [17:51:09]line Контрольно-Кассовый Чек [17:51:09]line ПРОДАЖА [17:51:09]line Товар: 2000036210013 [17:51:09]line Кофе Капучино (GABB TRADE) [17:51:09]line 2.000 * 115.00 [17:51:09]line = 230.00 [17:51:09]line НДС 12% НСП 1% [17:51:09]line > о реализуемом товаре [17:51:09]line ИТОГО: 230.00 [17:51:09]line НСП 1% : 2.03 [17:51:09]line НДС 12% : 24.42 [17:51:09]line Наличными: 230.00 [17:51:09]line Безнал.: 0.00 [17:51:09]line Место: АЗС № 80 "Партнер Нефть" [17:51:09]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:51:09]line СНО: Общий режим [17:51:09]line Чек 70 23.10.2024 17:51 [17:51:09]line Смена: 491 ФФД: 1.0 [17:51:09]line ЗНМ: 0300000090 [17:51:09]line РНМ: 0000000000097022 [17:51:09]line Версия ККМ: 001 [17:51:09]line ФМ: 0000000000875000 [17:51:09]line ФД: 50325 [17:51:09]line ФПД: 15516918873791 [17:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175112&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50325&fm=15516918873791&tin=02508201610067®Number=0000000000097022&sum=23000 [17:51:10]line 0 [17:51:10]OFD Sender: Processing packet 50325 [packets to send 7, broken 6] [17:51:10]ProducePacketName [17:51:10]name=ofd_packets/00050325 [17:51:10]OFD Sender: To server: pG, [17:51:10]CommunicateWithHost lk.salyk.kg:30040 [17:51:10]ConnectInit lk.salyk.kg [17:51:10]written 0, free lines is 4095 [17:51:10]Connected sock=10 [17:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 9E 42 24 01 F8 74 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 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 46 00 00 00 F4 03 04 00 90 37 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C4 00 00 35 04 06 00 0E 1C D0 6F FE BF 22 88 FA 99 4B E0 48 55 [17:51:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 54 02 47 00 5C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C4 00 00 F4 03 04 00 26 E3 18 67 B6 04 01 00 00 AA 26 A8 6F 21 0B E1 78 [17:51:10]CommunicateWithHost err = 0 [17:51:10]CheckOFDResponse [17:51:10]1017 (14) - 77093643461234 [17:51:10]1041 (16) - 0000000000875000 [17:51:10]1040 (4) - 50325 [17:51:10]1012 (4) - 23.10.2024 11:51 [17:51:10]1206 (1) - 0 [17:51:10]OFD Sender: Remove packet 50325 [17:51:10]ProducePacketName [17:51:10]name=ofd_packets/00050325 [17:51:10]NVStorageDeleteData [17:51:10]Write to MH i2c: 01 00 00 93 15 A8 [17:51:10]Write i2c OK [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: 01 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: 01 07 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 20 0D DC [17:51:10]RasterBufferAndPrint [17:51:10]line [17:51:10]line [17:51:10]line [17:51:10]line [17:51:10]line [17:51:10]written 0, free lines is 3366 [17:51:10]process_action close_receipt done [17:51:10]requested_data is exist [17:51:10]produce_requested_data [17:51:10]requested_item fm.sn is exist - process it [17:51:10]wFMCommunicate request_size=4 [17:51:10]MH_SAM_APDU [17:51:10]CAPDU: 80 11 00 00 [17:51:10]Write to MH i2c: E2 08 00 9A 15 80 11 00 00 00 00 00 00 29 [17:51:10]Write i2c OK [17:51:10]MH_I2C_Read... [17:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:10]Read from MH i2c: E2 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 17 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 17 00 9A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 70 [17:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:51:10]wFMCommunicate OK [17:51:10]requested_item fd.num is exist - process it [17:51:10]SAM_PROTO_GetFieldsCounters [17:51:10]wFMCommunicate request_size=4 [17:51:10]MH_SAM_APDU [17:51:10]CAPDU: 80 13 00 00 [17:51:10]Write to MH i2c: E2 08 00 9B 15 80 13 00 00 00 00 00 00 2C [17:51:10]Write i2c OK [17:51:10]MH_I2C_Read... [17:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:10]Read from MH i2c: E2 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 62 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 62 00 9B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 95 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 95 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:10]wFMCommunicate OK [17:51:10]SAM_PROTO_GetFieldsCounters done [17:51:10]requested_item shift.num is exist - process it [17:51:10]requested_item shift.opened is exist - process it [17:51:10]req_shift_opened [17:51:10]FM_GetShiftState [17:51:10]SAM_PROTO_GetShiftState [17:51:10]wFMCommunicate request_size=4 [17:51:10]MH_SAM_APDU [17:51:10]CAPDU: 80 13 01 00 [17:51:10]Write to MH i2c: E2 08 00 9C 15 80 13 01 00 00 00 00 00 2E [17:51:10]Write i2c OK [17:51:10]MH_I2C_Read... [17:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:10]Read from MH i2c: E2 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 0E 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 0E 00 9C 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7A [17:51:10]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:51:10]wFMCommunicate OK [17:51:10]SAM_PROTO_GetShiftState done [17:51:10]FM_GetShiftState done [17:51:10]req_shift_opened done [17:51:10]requested_item shift.open_date is exist - process it [17:51:10]req_shift_open_date [17:51:10]req_shift_open_date done [17:51:10]produce_requested_data done [17:51:10]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50325,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [17:51:10]process_action_free close_receipt [17:51:10]json_value_free [17:51:10]json_value_free done [17:51:10]process_json_proto returns [17:51:10]Send response to host [17:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50325,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [17:51:10]free response buf [17:51:10]execute_script done [17:51:10]execute_script returns [17:51:10]free content buf [17:51:10]Sock 9.Close socket [17:51:10]Sock 9.Thread stoped [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]accept exits with 7 [17:56:16]New connection [17:56:16]New thread 3067305316 created [17:56:16]Thread 3067161956 joined [17:56:16]Waiting for new connection... [17:56:16] Sock 7.Parse request [17:56:16]Sock 7.Check first char [17:56:16]Sock 7.First char is OK [17:56:16]request: POST /json_proto HTTP/1.0 [17:56:16]Method: POST [17:56:16]URL: /json_proto [17:56:16]Method is POST - this is cgi request [17:56:16]url: /json_proto [17:56:16]query_string will be loaded in cgi processing [17:56:16]execute_cgi json_proto POST (null) [17:56:16]execute_cgi path=json_proto method=POST [17:56:16]POST find Content-Length [17:56:16]Host: 172.17.49.196:8080 [17:56:16]Content-Length: 623 [17:56:16]Content-Type: application/json [17:56:16] [17:56:16]POST finish read [17:56:16]Found Content-Length = 623 [17:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164233", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:16]execute_script... [17:56: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)164233", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:16]POST & json_proto [17:56:16]process_json_proto [17:56:16]json parsed OK: [17:56:16]protocol is kg_v1.0 [17:56:16]action value=close_receipt [17:56:16]process_action close_receipt [17:56:16]cmd_close_receipt [17:56:16]MH_GetDate [17:56:16]Write to MH i2c: F0 00 00 9D 15 A1 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 09 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 09 00 9D 15 00 C4 38 19 67 BD 3B 11 67 96 [17:56:16]GetLastDocTimeStamp 1729705872 [17:56:16]current date 1729706180 [17:56:16]FM_GetShiftState [17:56:16]SAM_PROTO_GetShiftState [17:56:16]wFMCommunicate request_size=4 [17:56:16]MH_SAM_APDU [17:56:16]CAPDU: 80 13 01 00 [17:56:16]Write to MH i2c: E2 08 00 9E 15 80 13 01 00 00 00 00 00 30 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:16]OFD Sender: No OFD packet to send [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 9E 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 7C [17:56:16]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:56:16]wFMCommunicate OK [17:56:16]SAM_PROTO_GetShiftState done [17:56:16]FM_GetShiftState done [17:56:16]opened in 1729642370 [17:56:16]opened+sec_in_day 1729728770 [17:56:16]quantity*price = 28800 [17:56:16]sum+1 = 28801 [17:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 71 23.10.2024 17:56 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50326 ФПД: 30898988876899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175620&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50326&fm=30898988876899&tin=02508201610067®Number=0000000000097022&sum=28800 0 [17:56:17]StoreToDocumentArchive [17:56:17]shift 491 fd 50326 [17:56:17]save to /storage/0491/doc_00050326 [17:56:17]save last doc name /storage/0491/doc_00050326 to /storage/kkm_last_doc_name [17:56:17]save OK [17:56:17]Clear old archive folders... [17:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:56:17]tlvbuf is 001383A0 [17:56:17]SAM_PROTO_ClearQueue [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 09 00 00 [17:56:17]Write to MH i2c: E2 08 00 AB 15 80 09 00 00 00 00 00 00 32 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_ClearQueue done [17:56:17]KKMCreateOFDPacket [17:56:17]OFDProtocolAddRootSTLVToBuf [17:56:17]FM_MakeSignedData [17:56:17]FM_MakeSignedData [17:56:17]SAM_PROTO_SignData [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 01 02 [17:56:17]Write to MH i2c: E2 08 00 AC 15 80 0D 01 02 00 00 00 00 3A [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=255 [17:56:17]MH_SAM_APDU [17:56: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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 38 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [17:56:17]Write to MH i2c: E2 02 01 AD 15 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 38 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 BC [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=34 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C4 00 00 35 04 06 00 1C 1A 3B 41 84 63 [17:56:17]Write to MH i2c: E2 25 00 AE 15 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C4 00 00 35 04 06 00 1C 1A 3B 41 84 63 00 00 E5 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 03 02 [17:56:17]Write to MH i2c: E2 08 00 AF 15 80 0D 03 02 00 00 00 00 3F [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 AF 15 00 39 F2 FA 0E A7 8C A9 1F 90 00 6E [17:56:17]RAPDU: 39 F2 FA 0E A7 8C A9 1F 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_SignData done [17:56:17]FM_MakeSignedData done [17:56:17]CreateOFDProtocolMessage [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 11 00 00 [17:56:17]Write to MH i2c: E2 08 00 B0 15 80 11 00 00 00 00 00 00 3F [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 B0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 86 [17:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:56:17]wFMCommunicate OK [17:56:17]CreateOFDProtocolMessage done [17:56:17]OFDSenderStorePacket 50326 [17:56:17]StoreOFDPacket docnum=50326 [17:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 7A E5 1F 01 18 E0 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 38 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C4 00 00 35 04 06 00 1C 1A 3B 41 84 63 39 F2 FA 0E A7 8C A9 1F [17:56:17]CheckFolder [17:56:17]dirname=/storage/ofd_packets [17:56:17]CheckFolder done [17:56:17]ProducePacketName [17:56:17]name=ofd_packets/00050326 [17:56:17]NVStorageSaveData ofd_packets/00050326 [17:56:17]File name is /storage/ofd_packets/00050326 [17:56:17]Write 325 bytes [17:56:17]NVStorageSaveData done [17:56:17]OFDSenderStorePacket done [17:56:17]KKMCreateOFDPacket done [17:56:17]NVStorageSaveData kkm_last_timestamp [17:56:17]File name is /storage/kkm_last_timestamp [17:56:17]Write 4 bytes [17:56:17]NVStorageSaveData done [17:56:17]ExternCall_PrintAddStr [17:56:17]wPrintStart [17:56:17]Write to MH i2c: 01 00 00 B1 15 C6 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 B1 15 00 00 00 00 00 FF 0F DB [17:56:17]RasterBufferAndPrint [17:56:17]line Счет N : (3)164233 [17:56:17]line ИНН: 02508201610067 [17:56:17]line Контрольно-Кассовый Чек [17:56:17]line ПРОДАЖА [17:56:17]line Товар: 48743587 [17:56:17]line Сигареты Winston XStyle Silver [17:56:17]line 2.000 * 144.00 [17:56:17]line = 288.00 [17:56:17]line НДС 12% НСП 1% [17:56:17]line > о реализуемом товаре [17:56:17]line ИТОГО: 288.00 [17:56:17]line НСП 1% : 2.55 [17:56:17]line НДС 12% : 30.58 [17:56:17]line Наличными: 288.00 [17:56:17]line Безнал.: 0.00 [17:56:17]line Место: АЗС № 80 "Партнер Нефть" [17:56:17]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:56:17]line СНО: Общий режим [17:56:17]line Чек 71 23.10.2024 17:56 [17:56:17]line Смена: 491 ФФД: 1.0 [17:56:17]line ЗНМ: 0300000090 [17:56:17]line РНМ: 0000000000097022 [17:56:17]line Версия ККМ: 001 [17:56:17]line ФМ: 0000000000875000 [17:56:17]line ФД: 50326 [17:56:17]line ФПД: 30898988876899 [17:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175620&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50326&fm=30898988876899&tin=02508201610067®Number=0000000000097022&sum=28800 [17:56:18]line 0 [17:56:18]OFD Sender: Processing packet 50326 [packets to send 7, broken 6] [17:56:18]ProducePacketName [17:56:18]name=ofd_packets/00050326 [17:56:18]OFD Sender: To server: pG, [17:56:18]CommunicateWithHost lk.salyk.kg:30040 [17:56:18]ConnectInit lk.salyk.kg [17:56:18]written 0, free lines is 4095 [17:56:18]Connected sock=9 [17:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 7A E5 1F 01 18 E0 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 38 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C4 00 00 35 04 06 00 1C 1A 3B 41 84 63 39 F2 FA 0E A7 8C A9 1F [17:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 88 65 47 00 01 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C4 00 00 F4 03 04 00 5A E4 18 67 B6 04 01 00 00 21 25 7E CE 34 81 5A D1 [17:56:18]CommunicateWithHost err = 0 [17:56:18]CheckOFDResponse [17:56:18]1017 (14) - 77093643461234 [17:56:18]1041 (16) - 0000000000875000 [17:56:18]1040 (4) - 50326 [17:56:18]1012 (4) - 23.10.2024 11:56 [17:56:18]1206 (1) - 0 [17:56:18]OFD Sender: Remove packet 50326 [17:56:18]ProducePacketName [17:56:18]name=ofd_packets/00050326 [17:56:18]NVStorageDeleteData [17:56:18]Write to MH i2c: 01 00 00 DA 15 EF [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 05 0D 08 [17:56:18]RasterBufferAndPrint [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]written 0, free lines is 3342 [17:56:18]process_action close_receipt done [17:56:18]requested_data is exist [17:56:18]produce_requested_data [17:56:18]requested_item fm.sn is exist - process it [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 11 00 00 [17:56:18]Write to MH i2c: E2 08 00 E1 15 80 11 00 00 00 00 00 00 70 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 17 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 17 00 E1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B7 [17:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:56:18]wFMCommunicate OK [17:56:18]requested_item fd.num is exist - process it [17:56:18]SAM_PROTO_GetFieldsCounters [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 13 00 00 [17:56:18]Write to MH i2c: E2 08 00 E2 15 80 13 00 00 00 00 00 00 73 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 62 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 62 00 E2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 96 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [17:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 96 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetFieldsCounters done [17:56:18]requested_item shift.num is exist - process it [17:56:18]requested_item shift.opened is exist - process it [17:56:18]req_shift_opened [17:56:18]FM_GetShiftState [17:56:18]SAM_PROTO_GetShiftState [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 13 01 00 [17:56:18]Write to MH i2c: E2 08 00 E3 15 80 13 01 00 00 00 00 00 75 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 E3 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C1 [17:56:18]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetShiftState done [17:56:18]FM_GetShiftState done [17:56:18]req_shift_opened done [17:56:18]requested_item shift.open_date is exist - process it [17:56:18]req_shift_open_date [17:56:18]req_shift_open_date done [17:56:18]produce_requested_data done [17:56:18]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50326,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [17:56:18]process_action_free close_receipt [17:56:18]json_value_free [17:56:18]json_value_free done [17:56:18]process_json_proto returns [17:56:18]Send response to host [17:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50326,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [17:56:18]free response buf [17:56:18]execute_script done [17:56:18]execute_script returns [17:56:18]free content buf [17:56:18]Sock 7.Close socket [17:56:18]Sock 7.Thread stoped [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:37]accept exits with 10 [18:01:37]New connection [18:01:37]New thread 3067161956 created [18:01:37]Thread 3067305316 joined [18:01:37]Waiting for new connection... [18:01:37] Sock 10.Parse request [18:01:37]Sock 10.Check first char [18:01:37]Sock 10.First char is OK [18:01:37]request: POST /json_proto HTTP/1.0 [18:01:37]Method: POST [18:01:37]URL: /json_proto [18:01:37]Method is POST - this is cgi request [18:01:37]url: /json_proto [18:01:37]query_string will be loaded in cgi processing [18:01:37]execute_cgi json_proto POST (null) [18:01:37]execute_cgi path=json_proto method=POST [18:01:37]POST find Content-Length [18:01:37]Host: 172.17.49.196:8080 [18:01:37]Content-Length: 914 [18:01:37]Content-Type: application/json [18:01:37] [18:01:37]POST finish read [18:01:37]Found Content-Length = 914 [18:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164234", "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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:37]execute_script... [18:01: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)164234", "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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:37]POST & json_proto [18:01:37]process_json_proto [18:01:37]json parsed OK: [18:01:37]protocol is kg_v1.0 [18:01:37]action value=close_receipt [18:01:37]process_action close_receipt [18:01:37]cmd_close_receipt [18:01:37]MH_GetDate [18:01:37]Write to MH i2c: F0 00 00 E4 15 E8 [18:01:37]Write i2c OK [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: F0 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: F0 09 00 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: F0 09 00 E4 15 00 05 3A 19 67 BD 3B 11 67 20 [18:01:37]GetLastDocTimeStamp 1729706180 [18:01:37]current date 1729706501 [18:01:37]FM_GetShiftState [18:01:37]SAM_PROTO_GetShiftState [18:01:37]wFMCommunicate request_size=4 [18:01:37]MH_SAM_APDU [18:01:37]CAPDU: 80 13 01 00 [18:01:37]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [18:01:37]Write i2c OK [18:01:37]MH_I2C_Read... [18:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:37]Read from MH i2c: E2 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 0E 00 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 C3 [18:01:37]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:01:37]wFMCommunicate OK [18:01:37]SAM_PROTO_GetShiftState done [18:01:37]FM_GetShiftState done [18:01:37]opened in 1729642370 [18:01:37]opened+sec_in_day 1729728770 [18:01:37]quantity*price = 13000 [18:01:37]sum+1 = 13001 [18:01:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 72 23.10.2024 18:01 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50327 ФПД: 217926297925256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180141&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50327&fm=217926297925256&tin=02508201610067®Number=0000000000097022&sum=25500 0 [18:01:38]StoreToDocumentArchive [18:01:38]shift 491 fd 50327 [18:01:38]save to /storage/0491/doc_00050327 [18:01:38]save last doc name /storage/0491/doc_00050327 to /storage/kkm_last_doc_name [18:01:38]save OK [18:01:38]Clear old archive folders... [18:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=396 [18:01:38]tlvbuf is 0025DA30 [18:01:38]SAM_PROTO_ClearQueue [18:01:38]wFMCommunicate request_size=4 [18:01:38]MH_SAM_APDU [18:01:38]CAPDU: 80 09 00 00 [18:01:38]Write to MH i2c: E2 08 00 F2 15 80 09 00 00 00 00 00 00 79 [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:38]Read from MH i2c: E2 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 F2 15 00 90 00 7B [18:01:38]RAPDU: 90 00 [18:01:38]wFMCommunicate OK [18:01:38]SAM_PROTO_ClearQueue done [18:01:38]KKMCreateOFDPacket [18:01:38]OFDProtocolAddRootSTLVToBuf [18:01:38]FM_MakeSignedData [18:01:38]FM_MakeSignedData [18:01:38]SAM_PROTO_SignData [18:01:38]wFMCommunicate request_size=4 [18:01:38]MH_SAM_APDU [18:01:38]CAPDU: 80 0D 01 02 [18:01:38]Write to MH i2c: E2 08 00 F3 15 80 0D 01 02 00 00 00 00 81 [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:38]Read from MH i2c: E2 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 F3 15 00 90 00 7C [18:01:38]RAPDU: 90 00 [18:01:38]wFMCommunicate OK [18:01:38]wFMCommunicate request_size=255 [18:01:38]MH_SAM_APDU [18:01:38]CAPDU: 80 0D 02 02 FA 03 00 8C 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 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 9C 63 00 00 00 00 EB 03 26 00 EF [18:01:38]Write to MH i2c: E2 02 01 F4 15 80 0D 02 02 FA 00 03 00 8C 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 94 [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:38]Read from MH i2c: E2 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [18:01:38]RAPDU: 90 00 [18:01:38]wFMCommunicate OK [18:01:38]wFMCommunicate request_size=155 [18:01:38]MH_SAM_APDU [18:01:38]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 05 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C4 00 00 35 04 06 00 C6 33 EB 93 36 88 [18:01:38]Write to MH i2c: E2 9E 00 F5 15 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 05 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C4 00 00 35 04 06 00 C6 33 EB 93 36 88 00 00 DA [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:38]Read from MH i2c: E2 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [18:01:38]RAPDU: 90 00 [18:01:39]wFMCommunicate OK [18:01:39]wFMCommunicate request_size=4 [18:01:39]MH_SAM_APDU [18:01:39]CAPDU: 80 0D 03 02 [18:01:39]Write to MH i2c: E2 08 00 F6 15 80 0D 03 02 00 00 00 00 86 [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:39]Read from MH i2c: E2 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 0B 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 0B 00 F6 15 00 B2 50 9F 97 21 B4 16 E9 90 00 93 [18:01:39]RAPDU: B2 50 9F 97 21 B4 16 E9 90 00 [18:01:39]wFMCommunicate OK [18:01:39]SAM_PROTO_SignData done [18:01:39]FM_MakeSignedData done [18:01:39]CreateOFDProtocolMessage [18:01:39]wFMCommunicate request_size=4 [18:01:39]MH_SAM_APDU [18:01:39]CAPDU: 80 11 00 00 [18:01:39]Write to MH i2c: E2 08 00 F7 15 80 11 00 00 00 00 00 00 86 [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:39]Read from MH i2c: E2 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 17 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 17 00 F7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CD [18:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:01:39]wFMCommunicate OK [18:01:39]CreateOFDProtocolMessage done [18:01:39]OFDSenderStorePacket 50327 [18:01:39]StoreOFDPacket docnum=50327 [18:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A0 01 00 00 74 82 98 01 F1 96 5A 03 01 00 03 00 8C 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 05 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C4 00 00 35 04 06 00 C6 33 EB 93 36 88 B2 50 9F 97 21 B4 16 E9 [18:01:39]CheckFolder [18:01:39]dirname=/storage/ofd_packets [18:01:39]CheckFolder done [18:01:39]ProducePacketName [18:01:39]name=ofd_packets/00050327 [18:01:39]NVStorageSaveData ofd_packets/00050327 [18:01:39]File name is /storage/ofd_packets/00050327 [18:01:39]Write 446 bytes [18:01:39]NVStorageSaveData done [18:01:39]OFDSenderStorePacket done [18:01:39]KKMCreateOFDPacket done [18:01:39]NVStorageSaveData kkm_last_timestamp [18:01:39]File name is /storage/kkm_last_timestamp [18:01:39]Write 4 bytes [18:01:39]NVStorageSaveData done [18:01:39]ExternCall_PrintAddStr [18:01:39]wPrintStart [18:01:39]Write to MH i2c: 01 00 00 F8 15 0D [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 07 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 07 00 F8 15 00 00 00 00 00 FF 0F 22 [18:01:39]RasterBufferAndPrint [18:01:39]line Счет N : (3)164234 [18:01:39]line ИНН: 02508201610067 [18:01:39]line Контрольно-Кассовый Чек [18:01:39]line ПРОДАЖА [18:01:39]line Товар: 2000036220012 [18:01:39]line Кофе Капучино XL(GABB TRADE) [18:01:39]line 1.000 * 130.00 [18:01:39]line = 130.00 [18:01:39]line НДС 12% НСП 1% [18:01:39]line > о реализуемом товаре [18:01:39]line Товар: 2000036190018 [18:01:39]line Кофе Американо XL(GABB TRADE) [18:01:39]line 1.000 * 125.00 [18:01:39]line = 125.00 [18:01:39]line НДС 12% НСП 1% [18:01:39]line > о реализуемом товаре [18:01:39]line ИТОГО: 255.00 [18:01:39]line НСП 1% : 2.26 [18:01:39]line НДС 12% : 27.07 [18:01:39]line Наличными: 255.00 [18:01:39]line Безнал.: 0.00 [18:01:39]line Место: АЗС № 80 "Партнер Нефть" [18:01:39]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:01:39]line СНО: Общий режим [18:01:39]line Чек 72 23.10.2024 18:01 [18:01:39]line Смена: 491 ФФД: 1.0 [18:01:39]line ЗНМ: 0300000090 [18:01:39]line РНМ: 0000000000097022 [18:01:39]line Версия ККМ: 001 [18:01:39]line ФМ: 0000000000875000 [18:01:39]line ФД: 50327 [18:01:39]line ФПД: 217926297925256 [18:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180141&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50327&fm=217926297925256&tin=02508201610067®Number=0000000000097022&sum=25500 [18:01:39]line 0 [18:01:39]OFD Sender: Processing packet 50327 [packets to send 7, broken 6] [18:01:39]ProducePacketName [18:01:39]name=ofd_packets/00050327 [18:01:39]OFD Sender: To server: pG, [18:01:39]CommunicateWithHost lk.salyk.kg:30040 [18:01:39]ConnectInit lk.salyk.kg [18:01:39]written 0, free lines is 4095 [18:01:39]Connected sock=9 [18:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A0 01 00 00 74 82 98 01 F1 96 5A 03 01 00 03 00 8C 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 05 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C4 00 00 35 04 06 00 C6 33 EB 93 36 88 B2 50 9F 97 21 B4 16 E9 [18:01:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 FA 27 47 00 98 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C4 00 00 F4 03 04 00 9C E5 18 67 B6 04 01 00 00 4C 85 47 61 52 BF 43 10 [18:01:39]CommunicateWithHost err = 0 [18:01:39]CheckOFDResponse [18:01:39]1017 (14) - 77093643461234 [18:01:39]1041 (16) - 0000000000875000 [18:01:39]1040 (4) - 50327 [18:01:39]1012 (4) - 23.10.2024 12:01 [18:01:39]1206 (1) - 0 [18:01:39]OFD Sender: Remove packet 50327 [18:01:39]ProducePacketName [18:01:39]name=ofd_packets/00050327 [18:01:39]NVStorageDeleteData [18:01:39]Write to MH i2c: 01 00 00 28 16 3E [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 07 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 BF 0C 10 [18:01:39]RasterBufferAndPrint [18:01:39]line [18:01:39]line [18:01:39]line [18:01:39]line [18:01:39]line [18:01:39]written 0, free lines is 3269 [18:01:39]process_action close_receipt done [18:01:39]requested_data is exist [18:01:39]produce_requested_data [18:01:39]requested_item fm.sn is exist - process it [18:01:39]wFMCommunicate request_size=4 [18:01:39]MH_SAM_APDU [18:01:39]CAPDU: 80 11 00 00 [18:01:39]Write to MH i2c: E2 08 00 2F 16 80 11 00 00 00 00 00 00 BF [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 17 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 17 00 2F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 06 [18:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:01:40]wFMCommunicate OK [18:01:40]requested_item fd.num is exist - process it [18:01:40]SAM_PROTO_GetFieldsCounters [18:01:40]wFMCommunicate request_size=4 [18:01:40]MH_SAM_APDU [18:01:40]CAPDU: 80 13 00 00 [18:01:40]Write to MH i2c: E2 08 00 30 16 80 13 00 00 00 00 00 00 C2 [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 62 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 62 00 30 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 97 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [18:01:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 97 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:40]wFMCommunicate OK [18:01:40]SAM_PROTO_GetFieldsCounters done [18:01:40]requested_item shift.num is exist - process it [18:01:40]requested_item shift.opened is exist - process it [18:01:40]req_shift_opened [18:01:40]FM_GetShiftState [18:01:40]SAM_PROTO_GetShiftState [18:01:40]wFMCommunicate request_size=4 [18:01:40]MH_SAM_APDU [18:01:40]CAPDU: 80 13 01 00 [18:01:40]Write to MH i2c: E2 08 00 31 16 80 13 01 00 00 00 00 00 C4 [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 0E 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 0E 00 31 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 10 [18:01:40]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:01:40]wFMCommunicate OK [18:01:40]SAM_PROTO_GetShiftState done [18:01:40]FM_GetShiftState done [18:01:40]req_shift_opened done [18:01:40]requested_item shift.open_date is exist - process it [18:01:40]req_shift_open_date [18:01:40]req_shift_open_date done [18:01:40]produce_requested_data done [18:01:40]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50327,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [18:01:40]process_action_free close_receipt [18:01:40]json_value_free [18:01:40]json_value_free done [18:01:40]process_json_proto returns [18:01:40]Send response to host [18:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50327,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [18:01:40]free response buf [18:01:40]execute_script done [18:01:40]execute_script returns [18:01:40]free content buf [18:01:40]Sock 10.Close socket [18:01:40]Sock 10.Thread stoped [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:13]accept exits with 7 [18:03:13]New connection [18:03:13]New thread 3067305316 created [18:03:13]Thread 3067161956 joined [18:03:13]Waiting for new connection... [18:03:13] Sock 7.Parse request [18:03:13]Sock 7.Check first char [18:03:13]Sock 7.First char is OK [18:03:13]request: POST /json_proto HTTP/1.0 [18:03:13]Method: POST [18:03:13]URL: /json_proto [18:03:13]Method is POST - this is cgi request [18:03:13]url: /json_proto [18:03:13]query_string will be loaded in cgi processing [18:03:13]execute_cgi json_proto POST (null) [18:03:13]execute_cgi path=json_proto method=POST [18:03:13]POST find Content-Length [18:03:13]Host: 172.17.49.196:8080 [18:03:13]Content-Length: 776 [18:03:13]Content-Type: application/json [18:03:13] [18:03:13]POST finish read [18:03:13]Found Content-Length = 776 [18:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164235", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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: Mbank", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:13]execute_script... [18:03:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164235", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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: Mbank", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:13]POST & json_proto [18:03:13]process_json_proto [18:03:13]json parsed OK: [18:03:13]protocol is kg_v1.0 [18:03:13]action value=close_receipt [18:03:13]process_action close_receipt [18:03:13]cmd_close_receipt [18:03:13]MH_GetDate [18:03:13]Write to MH i2c: F0 00 00 32 16 37 [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: F0 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: F0 09 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: F0 09 00 32 16 00 65 3A 19 67 BD 3B 11 67 CF [18:03:13]GetLastDocTimeStamp 1729706501 [18:03:13]current date 1729706597 [18:03:13]FM_GetShiftState [18:03:13]SAM_PROTO_GetShiftState [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 13 01 00 [18:03:13]Write to MH i2c: E2 08 00 33 16 80 13 01 00 00 00 00 00 C6 [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0E 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0E 00 33 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 12 [18:03:13]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:03:13]wFMCommunicate OK [18:03:13]SAM_PROTO_GetShiftState done [18:03:13]FM_GetShiftState done [18:03:13]opened in 1729642370 [18:03:13]opened+sec_in_day 1729728770 [18:03:13]quantity*price = 17000 [18:03:13]sum+1 = 17001 [18:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 73 23.10.2024 18:03 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50328 ФПД: 246253635418643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180317&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50328&fm=246253635418643&tin=02508201610067®Number=0000000000097022&sum=17000 0 [18:03:14]StoreToDocumentArchive [18:03:14]shift 491 fd 50328 [18:03:14]save to /storage/0491/doc_00050328 [18:03:14]save last doc name /storage/0491/doc_00050328 to /storage/kkm_last_doc_name [18:03:14]save OK [18:03:14]Clear old archive folders... [18:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:03:14]tlvbuf is 000FD400 [18:03:14]SAM_PROTO_ClearQueue [18:03:14]wFMCommunicate request_size=4 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 09 00 00 [18:03:14]Write to MH i2c: E2 08 00 40 16 80 09 00 00 00 00 00 00 C8 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:14]Read from MH i2c: E2 03 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [18:03:14]RAPDU: 90 00 [18:03:14]wFMCommunicate OK [18:03:14]SAM_PROTO_ClearQueue done [18:03:14]KKMCreateOFDPacket [18:03:14]OFDProtocolAddRootSTLVToBuf [18:03:14]FM_MakeSignedData [18:03:14]FM_MakeSignedData [18:03:14]SAM_PROTO_SignData [18:03:14]wFMCommunicate request_size=4 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 0D 01 02 [18:03:14]Write to MH i2c: E2 08 00 41 16 80 0D 01 02 00 00 00 00 D0 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [18:03:14]RAPDU: 90 00 [18:03:14]wFMCommunicate OK [18:03:14]wFMCommunicate request_size=255 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [18:03:14]Write to MH i2c: E2 02 01 42 16 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 4E [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [18:03:14]RAPDU: 90 00 [18:03:14]wFMCommunicate OK [18:03:14]wFMCommunicate request_size=36 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C4 00 00 35 04 06 00 DF F7 64 76 BA 13 [18:03:14]Write to MH i2c: E2 27 00 43 16 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C4 00 00 35 04 06 00 DF F7 64 76 BA 13 00 00 C5 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [18:03:14]RAPDU: 90 00 [18:03:14]wFMCommunicate OK [18:03:14]wFMCommunicate request_size=4 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 0D 03 02 [18:03:14]Write to MH i2c: E2 08 00 44 16 80 0D 03 02 00 00 00 00 D5 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 0B 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 0B 00 44 16 00 B2 E3 B8 3E 62 9A 1C 39 90 00 B2 [18:03:14]RAPDU: B2 E3 B8 3E 62 9A 1C 39 90 00 [18:03:14]wFMCommunicate OK [18:03:14]SAM_PROTO_SignData done [18:03:14]FM_MakeSignedData done [18:03:14]CreateOFDProtocolMessage [18:03:14]wFMCommunicate request_size=4 [18:03:14]MH_SAM_APDU [18:03:14]CAPDU: 80 11 00 00 [18:03:14]Write to MH i2c: E2 08 00 45 16 80 11 00 00 00 00 00 00 D5 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:14]Read from MH i2c: E2 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 17 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: E2 17 00 45 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1C [18:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:03:14]wFMCommunicate OK [18:03:14]CreateOFDProtocolMessage done [18:03:14]OFDSenderStorePacket 50328 [18:03:14]StoreOFDPacket docnum=50328 [18:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 99 E5 21 01 1A EE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C4 00 00 35 04 06 00 DF F7 64 76 BA 13 B2 E3 B8 3E 62 9A 1C 39 [18:03:14]CheckFolder [18:03:14]dirname=/storage/ofd_packets [18:03:14]CheckFolder done [18:03:14]ProducePacketName [18:03:14]name=ofd_packets/00050328 [18:03:14]NVStorageSaveData ofd_packets/00050328 [18:03:14]File name is /storage/ofd_packets/00050328 [18:03:14]Write 327 bytes [18:03:14]NVStorageSaveData done [18:03:14]OFDSenderStorePacket done [18:03:14]KKMCreateOFDPacket done [18:03:14]NVStorageSaveData kkm_last_timestamp [18:03:14]File name is /storage/kkm_last_timestamp [18:03:14]Write 4 bytes [18:03:14]NVStorageSaveData done [18:03:14]ExternCall_PrintAddStr [18:03:14]wPrintStart [18:03:14]Write to MH i2c: 01 00 00 46 16 5C [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 07 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 07 00 46 16 00 00 00 00 00 FF 0F 71 [18:03:14]RasterBufferAndPrint [18:03:14]line Счет N : (3)164235 [18:03:14]line ИНН: 02508201610067 [18:03:14]line Контрольно-Кассовый Чек [18:03:14]line ПРОДАЖА [18:03:14]line Товар: 8901086040008 [18:03:14]line Жид/ст ПН летняя 4,5л [18:03:14]line 1.000 * 170.00 [18:03:14]line = 170.00 [18:03:14]line НДС 12% НСП 1% [18:03:14]line > о реализуемом товаре [18:03:14]line ИТОГО: 170.00 [18:03:14]line НСП 1% : 1.50 [18:03:14]line НДС 12% : 18.05 [18:03:14]line Наличными: 0.00 [18:03:14]line Безнал.: 170.00 [18:03:14]line Место: АЗС № 80 "Партнер Нефть" [18:03:14]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:03:14]line СНО: Общий режим [18:03:14]line Чек 73 23.10.2024 18:03 [18:03:14]line Смена: 491 ФФД: 1.0 [18:03:14]line ЗНМ: 0300000090 [18:03:14]line РНМ: 0000000000097022 [18:03:15]line Версия ККМ: 001 [18:03:15]line Платежная система: Mbank [18:03:15]line ФМ: 0000000000875000 [18:03:15]line ФД: 50328 [18:03:15]line ФПД: 246253635418643 [18:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180317&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50328&fm=246253635418643&tin=02508201610067®Number=0000000000097022&sum=17000 [18:03:15]line 0 [18:03:15]OFD Sender: Processing packet 50328 [packets to send 7, broken 6] [18:03:15]ProducePacketName [18:03:15]name=ofd_packets/00050328 [18:03:15]OFD Sender: To server: pG, [18:03:15]CommunicateWithHost lk.salyk.kg:30040 [18:03:15]ConnectInit lk.salyk.kg [18:03:15]written 0, free lines is 4095 [18:03:15]Connected sock=10 [18:03:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 99 E5 21 01 1A EE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C4 00 00 35 04 06 00 DF F7 64 76 BA 13 B2 E3 B8 3E 62 9A 1C 39 [18:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 63 6F 47 00 FF 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C4 00 00 F4 03 04 00 FB E5 18 67 B6 04 01 00 00 E1 31 5A BB A2 08 4F 82 [18:03:15]CommunicateWithHost err = 0 [18:03:15]CheckOFDResponse [18:03:15]1017 (14) - 77093643461234 [18:03:15]1041 (16) - 0000000000875000 [18:03:15]1040 (4) - 50328 [18:03:15]1012 (4) - 23.10.2024 12:03 [18:03:15]1206 (1) - 0 [18:03:15]OFD Sender: Remove packet 50328 [18:03:15]ProducePacketName [18:03:15]name=ofd_packets/00050328 [18:03:15]NVStorageDeleteData [18:03:15]Write to MH i2c: 01 00 00 6F 16 85 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: 01 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: 01 07 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 11 0D AA [18:03:15]RasterBufferAndPrint [18:03:15]line [18:03:15]line [18:03:15]line [18:03:15]line [18:03:15]line [18:03:15]written 0, free lines is 3351 [18:03:15]process_action close_receipt done [18:03:15]requested_data is exist [18:03:15]produce_requested_data [18:03:15]requested_item fm.sn is exist - process it [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 11 00 00 [18:03:15]Write to MH i2c: E2 08 00 76 16 80 11 00 00 00 00 00 00 06 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 17 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 17 00 76 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4D [18:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:03:15]wFMCommunicate OK [18:03:15]requested_item fd.num is exist - process it [18:03:15]SAM_PROTO_GetFieldsCounters [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 13 00 00 [18:03:15]Write to MH i2c: E2 08 00 77 16 80 13 00 00 00 00 00 00 09 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 62 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 62 00 77 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 98 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [18:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 98 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:15]wFMCommunicate OK [18:03:15]SAM_PROTO_GetFieldsCounters done [18:03:15]requested_item shift.num is exist - process it [18:03:15]requested_item shift.opened is exist - process it [18:03:15]req_shift_opened [18:03:15]FM_GetShiftState [18:03:15]SAM_PROTO_GetShiftState [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 13 01 00 [18:03:15]Write to MH i2c: E2 08 00 78 16 80 13 01 00 00 00 00 00 0B [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 0E 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 0E 00 78 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 57 [18:03:15]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:03:15]wFMCommunicate OK [18:03:15]SAM_PROTO_GetShiftState done [18:03:15]FM_GetShiftState done [18:03:15]req_shift_opened done [18:03:15]requested_item shift.open_date is exist - process it [18:03:15]req_shift_open_date [18:03:15]req_shift_open_date done [18:03:15]produce_requested_data done [18:03:15]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50328,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [18:03:15]process_action_free close_receipt [18:03:15]json_value_free [18:03:15]json_value_free done [18:03:15]process_json_proto returns [18:03:15]Send response to host [18:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50328,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [18:03:15]free response buf [18:03:15]execute_script done [18:03:15]execute_script returns [18:03:15]free content buf [18:03:15]Sock 7.Close socket [18:03:15]Sock 7.Thread stoped [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:54]accept exits with 9 [18:03:54]New connection [18:03:54]New thread 3067161956 created [18:03:54]Thread 3067305316 joined [18:03:54]Waiting for new connection... [18:03:54] Sock 9.Parse request [18:03:54]Sock 9.Check first char [18:03:54]Sock 9.First char is OK [18:03:54]request: POST /json_proto HTTP/1.0 [18:03:54]Method: POST [18:03:54]URL: /json_proto [18:03:54]Method is POST - this is cgi request [18:03:54]url: /json_proto [18:03:54]query_string will be loaded in cgi processing [18:03:54]execute_cgi json_proto POST (null) [18:03:54]execute_cgi path=json_proto method=POST [18:03:54]POST find Content-Length [18:03:54]Host: 172.17.49.196:8080 [18:03:54]Content-Length: 1110 [18:03:54]Content-Type: application/json [18:03:54] [18:03:54]POST finish read [18:03:54]Found Content-Length = 1110 [18:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164236", "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 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]execute_script... [18:03: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)164236", "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 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]POST & json_proto [18:03:54]process_json_proto [18:03:54]json parsed OK: [18:03:54]protocol is kg_v1.0 [18:03:54]action value=close_receipt [18:03:54]process_action close_receipt [18:03:54]cmd_close_receipt [18:03:54]MH_GetDate [18:03:54]Write to MH i2c: F0 00 00 79 16 7E [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 79 16 00 8E 3A 19 67 BD 3B 11 67 3F [18:03:54]GetLastDocTimeStamp 1729706597 [18:03:54]current date 1729706638 [18:03:54]FM_GetShiftState [18:03:54]SAM_PROTO_GetShiftState [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 13 01 00 [18:03:54]Write to MH i2c: E2 08 00 7A 16 80 13 01 00 00 00 00 00 0D [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 7A 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 59 [18:03:54]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_GetShiftState done [18:03:54]FM_GetShiftState done [18:03:54]opened in 1729642370 [18:03:54]opened+sec_in_day 1729728770 [18:03:54]quantity*price = 11500 [18:03:54]sum+1 = 11501 [18:03:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039440011 Чай черный 200 мл 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 34.00 = 34.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 74 23.10.2024 18:03 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50329 ФПД: 120199018418171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180358&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50329&fm=120199018418171&tin=02508201610067®Number=0000000000097022&sum=18900 0 [18:03:55]StoreToDocumentArchive [18:03:55]shift 491 fd 50329 [18:03:55]save to /storage/0491/doc_00050329 [18:03:55]save last doc name /storage/0491/doc_00050329 to /storage/kkm_last_doc_name [18:03:55]save OK [18:03:55]Clear old archive folders... [18:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=478 [18:03:55]tlvbuf is 00220220 [18:03:55]SAM_PROTO_ClearQueue [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 09 00 00 [18:03:55]Write to MH i2c: E2 08 00 87 16 80 09 00 00 00 00 00 00 0F [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]SAM_PROTO_ClearQueue done [18:03:55]KKMCreateOFDPacket [18:03:55]OFDProtocolAddRootSTLVToBuf [18:03:55]FM_MakeSignedData [18:03:55]FM_MakeSignedData [18:03:55]SAM_PROTO_SignData [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 01 02 [18:03:55]Write to MH i2c: E2 08 00 88 16 80 0D 01 02 00 00 00 00 17 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=255 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 02 02 FA 03 00 DE 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 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 [18:03:55]Write to MH i2c: E2 02 01 89 16 80 0D 02 02 FA 00 03 00 DE 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 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 00 00 57 [18:03:56]OFD Sender: No OFD packet to send [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=237 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 02 02 E8 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C4 00 00 35 04 06 00 6D 52 03 CB 8F FB [18:03:56]Write to MH i2c: E2 F0 00 8A 16 80 0D 02 02 E8 00 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C4 00 00 35 04 06 00 6D 52 03 CB 8F FB 00 00 66 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 03 02 [18:03:56]Write to MH i2c: E2 08 00 8B 16 80 0D 03 02 00 00 00 00 1C [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 8B 16 00 2E 0D 6A C9 D8 57 E1 6E 90 00 09 [18:03:56]RAPDU: 2E 0D 6A C9 D8 57 E1 6E 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_SignData done [18:03:56]FM_MakeSignedData done [18:03:56]CreateOFDProtocolMessage [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 11 00 00 [18:03:56]Write to MH i2c: E2 08 00 8C 16 80 11 00 00 00 00 00 00 1C [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 8C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 63 [18:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:03:56]wFMCommunicate OK [18:03:56]CreateOFDProtocolMessage done [18:03:56]OFDSenderStorePacket 50329 [18:03:56]StoreOFDPacket docnum=50329 [18:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 F2 01 00 00 D7 7A EA 01 15 8F 5A 03 01 00 03 00 DE 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 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C4 00 00 35 04 06 00 6D 52 03 CB 8F FB 2E 0D 6A C9 D8 57 E1 6E [18:03:56]CheckFolder [18:03:56]dirname=/storage/ofd_packets [18:03:56]CheckFolder done [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00050329 [18:03:56]NVStorageSaveData ofd_packets/00050329 [18:03:56]File name is /storage/ofd_packets/00050329 [18:03:56]Write 528 bytes [18:03:56]NVStorageSaveData done [18:03:56]OFDSenderStorePacket done [18:03:56]KKMCreateOFDPacket done [18:03:56]NVStorageSaveData kkm_last_timestamp [18:03:56]File name is /storage/kkm_last_timestamp [18:03:56]Write 4 bytes [18:03:56]NVStorageSaveData done [18:03:56]ExternCall_PrintAddStr [18:03:56]wPrintStart [18:03:56]Write to MH i2c: 01 00 00 8D 16 A3 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 8D 16 00 00 00 00 00 FF 0F B8 [18:03:56]RasterBufferAndPrint [18:03:56]line Счет N : (3)164236 [18:03:56]line ИНН: 02508201610067 [18:03:56]line Контрольно-Кассовый Чек [18:03:56]line ПРОДАЖА [18:03:56]line Товар: 2000036210013 [18:03:56]line Кофе Капучино (GABB TRADE) [18:03:56]line 1.000 * 115.00 [18:03:56]line = 115.00 [18:03:56]line НДС 12% НСП 1% [18:03:56]line > о реализуемом товаре [18:03:56]line Товар: 2000039440011 [18:03:56]line Чай черный 200 мл [18:03:56]line 1.000 * 40.00 [18:03:56]line = 40.00 [18:03:56]line НДС 12% НСП 1% [18:03:56]line > о реализуемом товаре [18:03:56]line Товар: 50173976 [18:03:56]line Жев Orbit Winterfresh под [18:03:56]line 1.000 * 34.00 [18:03:56]line = 34.00 [18:03:56]line НДС 12% НСП 1% [18:03:56]line > о реализуемом товаре [18:03:56]line ИТОГО: 189.00 [18:03:56]line НСП 1% : 1.67 [18:03:56]line НДС 12% : 20.07 [18:03:56]line Наличными: 189.00 [18:03:56]line Безнал.: 0.00 [18:03:56]line Место: АЗС № 80 "Партнер Нефть" [18:03:56]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:03:56]line СНО: Общий режим [18:03:56]line Чек 74 23.10.2024 18:03 [18:03:56]line Смена: 491 ФФД: 1.0 [18:03:56]line ЗНМ: 0300000090 [18:03:56]line РНМ: 0000000000097022 [18:03:56]line Версия ККМ: 001 [18:03:56]line ФМ: 0000000000875000 [18:03:56]line ФД: 50329 [18:03:56]line ФПД: 120199018418171 [18:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180358&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50329&fm=120199018418171&tin=02508201610067®Number=0000000000097022&sum=18900 [18:03:56]line 0 [18:03:56]written 0, free lines is 4095 [18:03:56]OFD Sender: Processing packet 50329 [packets to send 7, broken 6] [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00050329 [18:03:56]OFD Sender: To server: pG, [18:03:56]CommunicateWithHost lk.salyk.kg:30040 [18:03:56]ConnectInit lk.salyk.kg [18:03:56]Connected sock=10 [18:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 F2 01 00 00 D7 7A EA 01 15 8F 5A 03 01 00 03 00 DE 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 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 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 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 0D 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E 3A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C4 00 00 35 04 06 00 6D 52 03 CB 8F FB 2E 0D 6A C9 D8 57 E1 6E [18:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2C 10 47 00 8B D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C4 00 00 F4 03 04 00 25 E6 18 67 B6 04 01 00 00 42 EF B3 11 51 02 BA 19 [18:03:57]CommunicateWithHost err = 0 [18:03:57]CheckOFDResponse [18:03:57]1017 (14) - 77093643461234 [18:03:57]1041 (16) - 0000000000875000 [18:03:57]1040 (4) - 50329 [18:03:57]1012 (4) - 23.10.2024 12:03 [18:03:57]1206 (1) - 0 [18:03:57]OFD Sender: Remove packet 50329 [18:03:57]ProducePacketName [18:03:57]name=ofd_packets/00050329 [18:03:57]NVStorageDeleteData [18:03:57]Write to MH i2c: 01 00 00 C1 16 D7 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 C1 16 00 00 00 00 00 8C 0C 76 [18:03:57]RasterBufferAndPrint [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]written 0, free lines is 3221 [18:03:57]process_action close_receipt done [18:03:57]requested_data is exist [18:03:57]produce_requested_data [18:03:57]requested_item fm.sn is exist - process it [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 11 00 00 [18:03:57]Write to MH i2c: E2 08 00 C8 16 80 11 00 00 00 00 00 00 58 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 17 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 17 00 C8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9F [18:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:03:57]wFMCommunicate OK [18:03:57]requested_item fd.num is exist - process it [18:03:57]SAM_PROTO_GetFieldsCounters [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 13 00 00 [18:03:57]Write to MH i2c: E2 08 00 C9 16 80 13 00 00 00 00 00 00 5B [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 62 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 62 00 C9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 99 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:03:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 99 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:57]wFMCommunicate OK [18:03:57]SAM_PROTO_GetFieldsCounters done [18:03:57]requested_item shift.num is exist - process it [18:03:57]requested_item shift.opened is exist - process it [18:03:57]req_shift_opened [18:03:57]FM_GetShiftState [18:03:57]SAM_PROTO_GetShiftState [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 13 01 00 [18:03:57]Write to MH i2c: E2 08 00 CA 16 80 13 01 00 00 00 00 00 5D [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 0E 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 0E 00 CA 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A9 [18:03:57]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:03:57]wFMCommunicate OK [18:03:57]SAM_PROTO_GetShiftState done [18:03:57]FM_GetShiftState done [18:03:57]req_shift_opened done [18:03:57]requested_item shift.open_date is exist - process it [18:03:57]req_shift_open_date [18:03:57]req_shift_open_date done [18:03:57]produce_requested_data done [18:03:57]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50329,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [18:03:57]process_action_free close_receipt [18:03:57]json_value_free [18:03:57]json_value_free done [18:03:57]process_json_proto returns [18:03:57]Send response to host [18:03:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50329,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [18:03:57]free response buf [18:03:57]execute_script done [18:03:57]execute_script returns [18:03:57]free content buf [18:03:57]Sock 9.Close socket [18:03:57]Sock 9.Thread stoped [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:19]accept exits with 7 [18:17:19]New connection [18:17:19]New thread 3067305316 created [18:17:19]Thread 3067161956 joined [18:17:19]Waiting for new connection... [18:17:19] Sock 7.Parse request [18:17:19]Sock 7.Check first char [18:17:19]Sock 7.First char is OK [18:17:19]request: POST /json_proto HTTP/1.0 [18:17:19]Method: POST [18:17:19]URL: /json_proto [18:17:19]Method is POST - this is cgi request [18:17:19]url: /json_proto [18:17:19]query_string will be loaded in cgi processing [18:17:19]execute_cgi json_proto POST (null) [18:17:19]execute_cgi path=json_proto method=POST [18:17:19]POST find Content-Length [18:17:19]Host: 172.17.49.196:8080 [18:17:19]Content-Length: 833 [18:17:19]Content-Type: application/json [18:17:19] [18:17:19]POST finish read [18:17:19]Found Content-Length = 833 [18:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164237", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:19]execute_script... [18:17: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)164237", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:19]POST & json_proto [18:17:19]process_json_proto [18:17:19]json parsed OK: [18:17:19]protocol is kg_v1.0 [18:17:19]action value=close_receipt [18:17:19]process_action close_receipt [18:17:19]cmd_close_receipt [18:17:19]MH_GetDate [18:17:19]Write to MH i2c: F0 00 00 CB 16 D0 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: F0 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: F0 09 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: F0 09 00 CB 16 00 B3 3D 19 67 BD 3B 11 67 B9 [18:17:19]GetLastDocTimeStamp 1729706638 [18:17:19]current date 1729707443 [18:17:19]FM_GetShiftState [18:17:19]SAM_PROTO_GetShiftState [18:17:19]wFMCommunicate request_size=4 [18:17:19]MH_SAM_APDU [18:17:19]CAPDU: 80 13 01 00 [18:17:19]Write to MH i2c: E2 08 00 CC 16 80 13 01 00 00 00 00 00 5F [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:19]Read from MH i2c: E2 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 0E 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 0E 00 CC 16 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AB [18:17:19]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:17:19]wFMCommunicate OK [18:17:19]SAM_PROTO_GetShiftState done [18:17:19]FM_GetShiftState done [18:17:19]opened in 1729642370 [18:17:19]opened+sec_in_day 1729728770 [18:17:19]quantity*price = 12000 [18:17:19]sum+1 = 12001 [18:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 75 23.10.2024 18:17 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50330 ФПД: 266101656267689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181723&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50330&fm=266101656267689&tin=02508201610067®Number=0000000000097022&sum=12000 0 [18:17:20]StoreToDocumentArchive [18:17:20]shift 491 fd 50330 [18:17:20]save to /storage/0491/doc_00050330 [18:17:20]save last doc name /storage/0491/doc_00050330 to /storage/kkm_last_doc_name [18:17:20]save OK [18:17:20]Clear old archive folders... [18:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=298 [18:17:20]tlvbuf is 000FD550 [18:17:20]SAM_PROTO_ClearQueue [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 09 00 00 [18:17:20]Write to MH i2c: E2 08 00 D9 16 80 09 00 00 00 00 00 00 61 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [18:17:20]RAPDU: 90 00 [18:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_ClearQueue done [18:17:20]KKMCreateOFDPacket [18:17:20]OFDProtocolAddRootSTLVToBuf [18:17:20]FM_MakeSignedData [18:17:20]FM_MakeSignedData [18:17:20]SAM_PROTO_SignData [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 0D 01 02 [18:17:20]Write to MH i2c: E2 08 00 DA 16 80 0D 01 02 00 00 00 00 69 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [18:17:20]RAPDU: 90 00 [18:17:20]wFMCommunicate OK [18:17:20]wFMCommunicate request_size=255 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 3D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [18:17:20]Write to MH i2c: E2 02 01 DB 16 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 3D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 0E [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [18:17:20]RAPDU: 90 00 [18:17:20]wFMCommunicate OK [18:17:20]wFMCommunicate request_size=57 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C4 00 00 35 04 06 00 F2 04 9E B2 2B A9 [18:17:20]Write to MH i2c: E2 3C 00 DC 16 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C4 00 00 35 04 06 00 F2 04 9E B2 2B A9 00 00 90 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [18:17:20]RAPDU: 90 00 [18:17:20]wFMCommunicate OK [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 0D 03 02 [18:17:20]Write to MH i2c: E2 08 00 DD 16 80 0D 03 02 00 00 00 00 6E [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0B 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0B 00 DD 16 00 D6 B0 D2 09 0E B0 1A B3 90 00 5B [18:17:20]RAPDU: D6 B0 D2 09 0E B0 1A B3 90 00 [18:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_SignData done [18:17:20]FM_MakeSignedData done [18:17:20]CreateOFDProtocolMessage [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 11 00 00 [18:17:20]Write to MH i2c: E2 08 00 DE 16 80 11 00 00 00 00 00 00 6E [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 17 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 17 00 DE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B5 [18:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:17:20]wFMCommunicate OK [18:17:20]CreateOFDProtocolMessage done [18:17:20]OFDSenderStorePacket 50330 [18:17:20]StoreOFDPacket docnum=50330 [18:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 3F 01 36 01 31 D8 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 3D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C4 00 00 35 04 06 00 F2 04 9E B2 2B A9 D6 B0 D2 09 0E B0 1A B3 [18:17:20]CheckFolder [18:17:20]dirname=/storage/ofd_packets [18:17:20]CheckFolder done [18:17:20]ProducePacketName [18:17:20]name=ofd_packets/00050330 [18:17:20]NVStorageSaveData ofd_packets/00050330 [18:17:20]File name is /storage/ofd_packets/00050330 [18:17:20]Write 348 bytes [18:17:20]NVStorageSaveData done [18:17:20]OFDSenderStorePacket done [18:17:20]KKMCreateOFDPacket done [18:17:20]NVStorageSaveData kkm_last_timestamp [18:17:20]File name is /storage/kkm_last_timestamp [18:17:20]Write 4 bytes [18:17:20]NVStorageSaveData done [18:17:20]ExternCall_PrintAddStr [18:17:20]wPrintStart [18:17:20]Write to MH i2c: 01 00 00 DF 16 F5 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: 01 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: 01 07 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 FF 0F 0A [18:17:20]RasterBufferAndPrint [18:17:20]line Счет N : (3)164237 [18:17:20]line ИНН: 02508201610067 [18:17:20]line Контрольно-Кассовый Чек [18:17:20]line ПРОДАЖА [18:17:20]line Товар: 5449000189356 [18:17:20]line Холодный чай Fuse манго ананас 1л [18:17:20]line 1.000 * 120.00 [18:17:20]line = 120.00 [18:17:20]line НДС 12% НСП 1% [18:17:20]line > о реализуемом товаре [18:17:20]line ИТОГО: 120.00 [18:17:20]line НСП 1% : 1.06 [18:17:20]line НДС 12% : 12.74 [18:17:20]line Наличными: 0.00 [18:17:20]line Безнал.: 120.00 [18:17:20]line Место: АЗС № 80 "Партнер Нефть" [18:17:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:17:20]line СНО: Общий режим [18:17:20]line Чек 75 23.10.2024 18:17 [18:17:20]line Смена: 491 ФФД: 1.0 [18:17:20]line ЗНМ: 0300000090 [18:17:20]line РНМ: 0000000000097022 [18:17:20]line Версия ККМ: 001 [18:17:20]line Платежная система: Mbank [18:17:20]line ФМ: 0000000000875000 [18:17:20]line ФД: 50330 [18:17:20]line ФПД: 266101656267689 [18:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181723&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50330&fm=266101656267689&tin=02508201610067®Number=0000000000097022&sum=12000 [18:17:21]line 0 [18:17:21]OFD Sender: Processing packet 50330 [packets to send 7, broken 6] [18:17:21]ProducePacketName [18:17:21]name=ofd_packets/00050330 [18:17:21]OFD Sender: To server: pG, [18:17:21]CommunicateWithHost lk.salyk.kg:30040 [18:17:21]ConnectInit lk.salyk.kg [18:17:21]written 0, free lines is 4095 [18:17:21]Connected sock=10 [18:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 3F 01 36 01 31 D8 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 3D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C4 00 00 35 04 06 00 F2 04 9E B2 2B A9 D6 B0 D2 09 0E B0 1A B3 [18:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2D F3 47 00 81 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C4 00 00 F4 03 04 00 49 E9 18 67 B6 04 01 00 00 B6 D9 6E A5 2B 69 13 87 [18:17:21]CommunicateWithHost err = 0 [18:17:21]CheckOFDResponse [18:17:21]1017 (14) - 77093643461234 [18:17:21]1041 (16) - 0000000000875000 [18:17:21]1040 (4) - 50330 [18:17:21]1012 (4) - 23.10.2024 12:17 [18:17:21]1206 (1) - 0 [18:17:21]OFD Sender: Remove packet 50330 [18:17:21]ProducePacketName [18:17:21]name=ofd_packets/00050330 [18:17:21]NVStorageDeleteData [18:17:21]Write to MH i2c: 01 00 00 09 17 20 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 07 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 F3 0C 26 [18:17:21]RasterBufferAndPrint [18:17:21]line [18:17:21]line [18:17:21]line [18:17:21]line [18:17:21]line [18:17:21]written 0, free lines is 3321 [18:17:21]process_action close_receipt done [18:17:21]requested_data is exist [18:17:21]produce_requested_data [18:17:21]requested_item fm.sn is exist - process it [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 11 00 00 [18:17:21]Write to MH i2c: E2 08 00 10 17 80 11 00 00 00 00 00 00 A1 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 10 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E8 [18:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:17:21]wFMCommunicate OK [18:17:21]requested_item fd.num is exist - process it [18:17:21]SAM_PROTO_GetFieldsCounters [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 00 00 [18:17:21]Write to MH i2c: E2 08 00 11 17 80 13 00 00 00 00 00 00 A4 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 11 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [18:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9A C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetFieldsCounters done [18:17:21]requested_item shift.num is exist - process it [18:17:21]requested_item shift.opened is exist - process it [18:17:21]req_shift_opened [18:17:21]FM_GetShiftState [18:17:21]SAM_PROTO_GetShiftState [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 01 00 [18:17:21]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F2 [18:17:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetShiftState done [18:17:21]FM_GetShiftState done [18:17:21]req_shift_opened done [18:17:21]requested_item shift.open_date is exist - process it [18:17:21]req_shift_open_date [18:17:21]req_shift_open_date done [18:17:21]produce_requested_data done [18:17:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50330,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [18:17:21]process_action_free close_receipt [18:17:21]json_value_free [18:17:21]json_value_free done [18:17:21]process_json_proto returns [18:17:21]Send response to host [18:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50330,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [18:17:21]free response buf [18:17:21]execute_script done [18:17:21]execute_script returns [18:17:21]free content buf [18:17:21]Sock 7.Close socket [18:17:21]Sock 7.Thread stoped [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:31]accept exits with 9 [18:22:31]New connection [18:22:31]New thread 3067161956 created [18:22:31]Thread 3067305316 joined [18:22:31]Waiting for new connection... [18:22:31] Sock 9.Parse request [18:22:31]Sock 9.Check first char [18:22:31]Sock 9.First char is OK [18:22:31]request: POST /json_proto HTTP/1.0 [18:22:31]Method: POST [18:22:31]URL: /json_proto [18:22:31]Method is POST - this is cgi request [18:22:31]url: /json_proto [18:22:31]query_string will be loaded in cgi processing [18:22:31]execute_cgi json_proto POST (null) [18:22:31]execute_cgi path=json_proto method=POST [18:22:31]POST find Content-Length [18:22:31]Host: 172.17.49.196:8080 [18:22:31]Content-Length: 750 [18:22:31]Content-Type: application/json [18:22:31] [18:22:31]POST finish read [18:22:31]Found Content-Length = 750 [18:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164240", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]execute_script... [18:22: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)164240", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]POST & json_proto [18:22:31]process_json_proto [18:22:31]json parsed OK: [18:22:31]protocol is kg_v1.0 [18:22:31]action value=close_receipt [18:22:31]process_action close_receipt [18:22:31]cmd_close_receipt [18:22:31]MH_GetDate [18:22:31]Write to MH i2c: F0 00 00 13 17 19 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 13 17 00 EB 3E 19 67 BD 3B 11 67 3B [18:22:31]GetLastDocTimeStamp 1729707443 [18:22:31]current date 1729707755 [18:22:31]FM_GetShiftState [18:22:31]SAM_PROTO_GetShiftState [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 13 01 00 [18:22:31]Write to MH i2c: E2 08 00 14 17 80 13 01 00 00 00 00 00 A8 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 14 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F4 [18:22:31]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:22:31]wFMCommunicate OK [18:22:31]SAM_PROTO_GetShiftState done [18:22:31]FM_GetShiftState done [18:22:31]opened in 1729642370 [18:22:31]opened+sec_in_day 1729728770 [18:22:31]quantity*price = 14400 [18:22:31]sum+1 = 14401 [18:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 76 23.10.2024 18:22 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50331 ФПД: 185684342989516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182235&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50331&fm=185684342989516&tin=02508201610067®Number=0000000000097022&sum=14400 0 [18:22:32]StoreToDocumentArchive [18:22:32]shift 491 fd 50331 [18:22:32]save to /storage/0491/doc_00050331 [18:22:32]save last doc name /storage/0491/doc_00050331 to /storage/kkm_last_doc_name [18:22:32]save OK [18:22:32]Clear old archive folders... [18:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:22:32]tlvbuf is B6FAEC70 [18:22:32]SAM_PROTO_ClearQueue [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 09 00 00 [18:22:32]Write to MH i2c: E2 08 00 21 17 80 09 00 00 00 00 00 00 AA [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_ClearQueue done [18:22:32]KKMCreateOFDPacket [18:22:32]OFDProtocolAddRootSTLVToBuf [18:22:32]FM_MakeSignedData [18:22:32]FM_MakeSignedData [18:22:32]SAM_PROTO_SignData [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 01 02 [18:22:32]Write to MH i2c: E2 08 00 22 17 80 0D 01 02 00 00 00 00 B2 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=255 [18:22:32]MH_SAM_APDU [18:22:32]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EB 3E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [18:22:32]Write to MH i2c: E2 02 01 23 17 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EB 3E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 93 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=34 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C4 00 00 35 04 06 00 A8 E1 01 4D E2 CC [18:22:32]Write to MH i2c: E2 25 00 24 17 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C4 00 00 35 04 06 00 A8 E1 01 4D E2 CC 00 00 4E [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [18:22:32]RAPDU: 90 00 [18:22:32]wFMCommunicate OK [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 0D 03 02 [18:22:32]Write to MH i2c: E2 08 00 25 17 80 0D 03 02 00 00 00 00 B7 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0B 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0B 00 25 17 00 13 B2 76 81 72 F1 E5 83 90 00 3F [18:22:32]RAPDU: 13 B2 76 81 72 F1 E5 83 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_SignData done [18:22:32]FM_MakeSignedData done [18:22:32]CreateOFDProtocolMessage [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 11 00 00 [18:22:32]Write to MH i2c: E2 08 00 26 17 80 11 00 00 00 00 00 00 B7 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 26 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FE [18:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:22:32]wFMCommunicate OK [18:22:32]CreateOFDProtocolMessage done [18:22:32]OFDSenderStorePacket 50331 [18:22:32]StoreOFDPacket docnum=50331 [18:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 59 48 1F 01 03 6A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EB 3E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C4 00 00 35 04 06 00 A8 E1 01 4D E2 CC 13 B2 76 81 72 F1 E5 83 [18:22:32]CheckFolder [18:22:32]dirname=/storage/ofd_packets [18:22:32]CheckFolder done [18:22:32]ProducePacketName [18:22:32]name=ofd_packets/00050331 [18:22:32]NVStorageSaveData ofd_packets/00050331 [18:22:32]File name is /storage/ofd_packets/00050331 [18:22:32]Write 325 bytes [18:22:32]NVStorageSaveData done [18:22:32]OFDSenderStorePacket done [18:22:32]KKMCreateOFDPacket done [18:22:32]NVStorageSaveData kkm_last_timestamp [18:22:32]File name is /storage/kkm_last_timestamp [18:22:32]Write 4 bytes [18:22:32]NVStorageSaveData done [18:22:32]ExternCall_PrintAddStr [18:22:32]wPrintStart [18:22:32]Write to MH i2c: 01 00 00 27 17 3E [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 07 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 07 00 27 17 00 00 00 00 00 FF 0F 53 [18:22:32]RasterBufferAndPrint [18:22:32]line Счет N : (3)164240 [18:22:32]line ИНН: 02508201610067 [18:22:32]line Контрольно-Кассовый Чек [18:22:32]line ПРОДАЖА [18:22:32]line Товар: 48743587 [18:22:32]line Сигареты Winston XStyle Silver [18:22:32]line 1.000 * 144.00 [18:22:32]line = 144.00 [18:22:32]line НДС 12% НСП 1% [18:22:32]line > о реализуемом товаре [18:22:32]line ИТОГО: 144.00 [18:22:32]line НСП 1% : 1.27 [18:22:32]line НДС 12% : 15.29 [18:22:32]line Наличными: 0.00 [18:22:32]line Безнал.: 144.00 [18:22:32]line Место: АЗС № 80 "Партнер Нефть" [18:22:32]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:22:32]line СНО: Общий режим [18:22:32]line Чек 76 23.10.2024 18:22 [18:22:32]line Смена: 491 ФФД: 1.0 [18:22:32]line ЗНМ: 0300000090 [18:22:32]line РНМ: 0000000000097022 [18:22:32]line Версия ККМ: 001 [18:22:32]line Платежная система: Mbank [18:22:33]line ФМ: 0000000000875000 [18:22:33]line ФД: 50331 [18:22:33]line ФПД: 185684342989516 [18:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182235&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50331&fm=185684342989516&tin=02508201610067®Number=0000000000097022&sum=14400 [18:22:33]line 0 [18:22:33]OFD Sender: Processing packet 50331 [packets to send 7, broken 6] [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00050331 [18:22:33]OFD Sender: To server: pG, [18:22:33]CommunicateWithHost lk.salyk.kg:30040 [18:22:33]ConnectInit lk.salyk.kg [18:22:33]written 0, free lines is 4095 [18:22:33]Connected sock=10 [18:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 59 48 1F 01 03 6A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EB 3E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C4 00 00 35 04 06 00 A8 E1 01 4D E2 CC 13 B2 76 81 72 F1 E5 83 [18:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 49 1F 47 00 16 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C4 00 00 F4 03 04 00 81 EA 18 67 B6 04 01 00 00 E9 44 30 99 17 74 E9 64 [18:22:33]CommunicateWithHost err = 0 [18:22:33]CheckOFDResponse [18:22:33]1017 (14) - 77093643461234 [18:22:33]1041 (16) - 0000000000875000 [18:22:33]1040 (4) - 50331 [18:22:33]1012 (4) - 23.10.2024 12:22 [18:22:33]1206 (1) - 0 [18:22:33]OFD Sender: Remove packet 50331 [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00050331 [18:22:33]NVStorageDeleteData [18:22:33]Write to MH i2c: 01 00 00 51 17 68 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 51 17 00 00 00 00 00 02 0D 7E [18:22:33]RasterBufferAndPrint [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]line [18:22:33]written 0, free lines is 3336 [18:22:33]process_action close_receipt done [18:22:33]requested_data is exist [18:22:33]produce_requested_data [18:22:33]requested_item fm.sn is exist - process it [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 11 00 00 [18:22:33]Write to MH i2c: E2 08 00 58 17 80 11 00 00 00 00 00 00 E9 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 17 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 17 00 58 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [18:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:22:33]wFMCommunicate OK [18:22:33]requested_item fd.num is exist - process it [18:22:33]SAM_PROTO_GetFieldsCounters [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 13 00 00 [18:22:33]Write to MH i2c: E2 08 00 59 17 80 13 00 00 00 00 00 00 EC [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 62 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 62 00 59 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9B C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:33]wFMCommunicate OK [18:22:33]SAM_PROTO_GetFieldsCounters done [18:22:33]requested_item shift.num is exist - process it [18:22:33]requested_item shift.opened is exist - process it [18:22:33]req_shift_opened [18:22:33]FM_GetShiftState [18:22:33]SAM_PROTO_GetShiftState [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 13 01 00 [18:22:33]Write to MH i2c: E2 08 00 5A 17 80 13 01 00 00 00 00 00 EE [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 0E 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 0E 00 5A 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3A [18:22:33]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [18:22:33]wFMCommunicate OK [18:22:33]SAM_PROTO_GetShiftState done [18:22:33]FM_GetShiftState done [18:22:33]req_shift_opened done [18:22:33]requested_item shift.open_date is exist - process it [18:22:33]req_shift_open_date [18:22:33]req_shift_open_date done [18:22:33]produce_requested_data done [18:22:33]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50331,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [18:22:33]process_action_free close_receipt [18:22:33]json_value_free [18:22:33]json_value_free done [18:22:33]process_json_proto returns [18:22:33]Send response to host [18:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50331,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [18:22:33]free response buf [18:22:33]execute_script done [18:22:33]execute_script returns [18:22:33]free content buf [18:22:33]Sock 9.Close socket [18:22:33]Sock 9.Thread stoped [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]int [19:04:45]Write to MH i2c: 01 00 00 5B 17 72 [19:04:45]*** FLAG_PRN_PAP1 set [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 07 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 07 00 5B 17 00 01 00 00 00 FF 0F 88 [19:04:45]state=0 [19:04:45]No paper [19:04:45]int [19:04:45]Write to MH i2c: 01 00 00 5C 17 73 [19:04:45]*** FLAG_PRN_PAP2 set [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 07 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 07 00 5C 17 00 03 00 00 00 FF 0F 8B [19:04:45]state=0 [19:04:45]No paper [19:04:45]Cover opened [19:04:45]OFD Sender: No OFD packet to send [19:04:48]int [19:04:48]Write to MH i2c: 01 00 00 5D 17 74 [19:04:48]*** FLAG_PRN_PAP2 reset [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 07 00 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 07 00 5D 17 00 01 00 00 00 FF 0F 8A [19:04:48]state=3 [19:04:48]No paper [19:04:48]Cover closed [19:04:48]int [19:04:48]Write to MH i2c: 01 00 00 5E 17 75 [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 07 00 [19:04:48]MH_I2C_Read... [19:04:48]*** FLAG_PRN_PAP1 reset [19:04:48]*** FLAG_PRN_PAP1 set [19:04:48]Read from MH i2c: 01 07 00 5E 17 00 01 00 00 00 FF 0F 8B [19:04:48]state=0 [19:04:48]No paper [19:04:48]int [19:04:48]Write to MH i2c: 01 00 00 5F 17 76 [19:04:48]*** FLAG_PRN_PAP1 reset [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 07 00 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 FF 0F 8B [19:04:48]state=0 [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:56]accept exits with 7 [19:26:56]New connection [19:26:56]New thread 3067305316 created [19:26:56]Thread 3067161956 joined [19:26:56]Waiting for new connection... [19:26:56] Sock 7.Parse request [19:26:56]Sock 7.Check first char [19:26:56]Sock 7.First char is OK [19:26:56]request: POST /json_proto HTTP/1.0 [19:26:56]Method: POST [19:26:56]URL: /json_proto [19:26:56]Method is POST - this is cgi request [19:26:56]url: /json_proto [19:26:56]query_string will be loaded in cgi processing [19:26:56]execute_cgi json_proto POST (null) [19:26:56]execute_cgi path=json_proto method=POST [19:26:56]POST find Content-Length [19:26:56]Host: 172.17.49.196:8080 [19:26:56]Content-Length: 652 [19:26:56]Content-Type: application/json [19:26:56] [19:26:56]POST finish read [19:26:56]Found Content-Length = 652 [19:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164241", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:56]execute_script... [19:26: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)164241", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:56]POST & json_proto [19:26:56]process_json_proto [19:26:56]json parsed OK: [19:26:56]protocol is kg_v1.0 [19:26:56]action value=close_receipt [19:26:56]process_action close_receipt [19:26:56]cmd_close_receipt [19:26:56]MH_GetDate [19:26:56]Write to MH i2c: F0 00 00 60 17 66 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 09 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 09 00 60 17 00 04 4E 19 67 BD 3B 11 67 B1 [19:26:56]GetLastDocTimeStamp 1729707755 [19:26:56]current date 1729711620 [19:26:56]FM_GetShiftState [19:26:56]SAM_PROTO_GetShiftState [19:26:56]wFMCommunicate request_size=4 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 13 01 00 [19:26:56]Write to MH i2c: E2 08 00 61 17 80 13 01 00 00 00 00 00 F5 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 61 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 41 [19:26:56]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_GetShiftState done [19:26:56]FM_GetShiftState done [19:26:56]opened in 1729642370 [19:26:56]opened+sec_in_day 1729728770 [19:26:56]quantity*price = 9500 [19:26:56]sum+1 = 9501 [19:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 77 23.10.2024 19:27 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50332 ФПД: 61526882439467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192700&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50332&fm=61526882439467&tin=02508201610067®Number=0000000000097022&sum=9500 0 [19:26:57]StoreToDocumentArchive [19:26:57]shift 491 fd 50332 [19:26:57]save to /storage/0491/doc_00050332 [19:26:57]save last doc name /storage/0491/doc_00050332 to /storage/kkm_last_doc_name [19:26:57]save OK [19:26:57]Clear old archive folders... [19:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:26:57]tlvbuf is 001199E0 [19:26:57]SAM_PROTO_ClearQueue [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 09 00 00 [19:26:57]Write to MH i2c: E2 08 00 6E 17 80 09 00 00 00 00 00 00 F7 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_ClearQueue done [19:26:57]KKMCreateOFDPacket [19:26:57]OFDProtocolAddRootSTLVToBuf [19:26:57]FM_MakeSignedData [19:26:57]FM_MakeSignedData [19:26:57]SAM_PROTO_SignData [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 01 02 [19:26:57]Write to MH i2c: E2 08 00 6F 17 80 0D 01 02 00 00 00 00 FF [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=255 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 4D 00 00 00 F4 03 04 00 04 4E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [19:26:57]Write to MH i2c: E2 02 01 70 17 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 4D 00 00 00 F4 03 04 00 04 4E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 24 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=34 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C4 00 00 35 04 06 00 37 F5 57 F8 D1 2B [19:26:57]Write to MH i2c: E2 25 00 71 17 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C4 00 00 35 04 06 00 37 F5 57 F8 D1 2B 00 00 8E [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 03 02 [19:26:57]Write to MH i2c: E2 08 00 72 17 80 0D 03 02 00 00 00 00 04 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 72 17 00 E1 FF 8A 79 EB 49 7C A2 90 00 3A [19:26:57]RAPDU: E1 FF 8A 79 EB 49 7C A2 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_SignData done [19:26:57]FM_MakeSignedData done [19:26:57]CreateOFDProtocolMessage [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 11 00 00 [19:26:57]Write to MH i2c: E2 08 00 73 17 80 11 00 00 00 00 00 00 04 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 73 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4B [19:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:26:57]wFMCommunicate OK [19:26:57]CreateOFDProtocolMessage done [19:26:57]OFDSenderStorePacket 50332 [19:26:57]StoreOFDPacket docnum=50332 [19:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 E6 1A 1F 01 FE 3B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 4D 00 00 00 F4 03 04 00 04 4E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C4 00 00 35 04 06 00 37 F5 57 F8 D1 2B E1 FF 8A 79 EB 49 7C A2 [19:26:57]CheckFolder [19:26:57]dirname=/storage/ofd_packets [19:26:57]CheckFolder done [19:26:57]ProducePacketName [19:26:57]name=ofd_packets/00050332 [19:26:57]NVStorageSaveData ofd_packets/00050332 [19:26:57]File name is /storage/ofd_packets/00050332 [19:26:57]Write 325 bytes [19:26:57]NVStorageSaveData done [19:26:57]OFDSenderStorePacket done [19:26:57]KKMCreateOFDPacket done [19:26:57]NVStorageSaveData kkm_last_timestamp [19:26:57]File name is /storage/kkm_last_timestamp [19:26:57]Write 4 bytes [19:26:57]NVStorageSaveData done [19:26:57]ExternCall_PrintAddStr [19:26:57]wPrintStart [19:26:57]Write to MH i2c: 01 00 00 74 17 8B [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 FF 0F A0 [19:26:57]RasterBufferAndPrint [19:26:57]line Счет N : (3)164241 [19:26:57]line ИНН: 02508201610067 [19:26:57]line Контрольно-Кассовый Чек [19:26:57]line ПРОДАЖА [19:26:57]line Товар: 4660013331438 [19:26:57]line Эскимо Московское [19:26:57]line 1.000 * 95.00 [19:26:57]line = 95.00 [19:26:57]line НДС 12% НСП 1% [19:26:57]line > о реализуемом товаре [19:26:57]line ИТОГО: 95.00 [19:26:57]line НСП 1% : 0.84 [19:26:57]line НДС 12% : 10.09 [19:26:57]line Наличными: 95.00 [19:26:57]line Безнал.: 0.00 [19:26:57]line Место: АЗС № 80 "Партнер Нефть" [19:26:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:26:57]line СНО: Общий режим [19:26:57]line Чек 77 23.10.2024 19:27 [19:26:57]line Смена: 491 ФФД: 1.0 [19:26:57]line ЗНМ: 0300000090 [19:26:57]line РНМ: 0000000000097022 [19:26:57]line Версия ККМ: 001 [19:26:57]line ФМ: 0000000000875000 [19:26:57]line ФД: 50332 [19:26:57]line ФПД: 61526882439467 [19:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192700&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50332&fm=61526882439467&tin=02508201610067®Number=0000000000097022&sum=9500 [19:26:58]line 0 [19:26:58]OFD Sender: Processing packet 50332 [packets to send 7, broken 6] [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00050332 [19:26:58]OFD Sender: To server: pG, [19:26:58]CommunicateWithHost lk.salyk.kg:30040 [19:26:58]ConnectInit lk.salyk.kg [19:26:58]written 0, free lines is 4095 [19:26:58]Connected sock=10 [19:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 E6 1A 1F 01 FE 3B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 4D 00 00 00 F4 03 04 00 04 4E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C4 00 00 35 04 06 00 37 F5 57 F8 D1 2B E1 FF 8A 79 EB 49 7C A2 [19:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E5 9D 47 00 C6 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C4 00 00 F4 03 04 00 9A F9 18 67 B6 04 01 00 00 7A 05 77 C7 14 2F E3 AB [19:26:58]CommunicateWithHost err = 0 [19:26:58]CheckOFDResponse [19:26:58]1017 (14) - 77093643461234 [19:26:58]1041 (16) - 0000000000875000 [19:26:58]1040 (4) - 50332 [19:26:58]1012 (4) - 23.10.2024 13:26 [19:26:58]1206 (1) - 0 [19:26:58]OFD Sender: Remove packet 50332 [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00050332 [19:26:58]NVStorageDeleteData [19:26:58]Write to MH i2c: 01 00 00 9C 17 B3 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 9C 17 00 00 00 00 00 20 0D E7 [19:26:58]RasterBufferAndPrint [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]written 0, free lines is 3366 [19:26:58]process_action close_receipt done [19:26:58]requested_data is exist [19:26:58]produce_requested_data [19:26:58]requested_item fm.sn is exist - process it [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 11 00 00 [19:26:58]Write to MH i2c: E2 08 00 A3 17 80 11 00 00 00 00 00 00 34 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 17 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 17 00 A3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7B [19:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:26:58]wFMCommunicate OK [19:26:58]requested_item fd.num is exist - process it [19:26:58]SAM_PROTO_GetFieldsCounters [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 00 00 [19:26:58]Write to MH i2c: E2 08 00 A4 17 80 13 00 00 00 00 00 00 37 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 62 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 62 00 A4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [19:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9C C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetFieldsCounters done [19:26:58]requested_item shift.num is exist - process it [19:26:58]requested_item shift.opened is exist - process it [19:26:58]req_shift_opened [19:26:58]FM_GetShiftState [19:26:58]SAM_PROTO_GetShiftState [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 01 00 [19:26:58]Write to MH i2c: E2 08 00 A5 17 80 13 01 00 00 00 00 00 39 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:58]Read from MH i2c: E2 0E 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 A5 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 85 [19:26:58]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetShiftState done [19:26:58]FM_GetShiftState done [19:26:58]req_shift_opened done [19:26:58]requested_item shift.open_date is exist - process it [19:26:58]req_shift_open_date [19:26:58]req_shift_open_date done [19:26:58]produce_requested_data done [19:26:58]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50332,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [19:26:58]process_action_free close_receipt [19:26:58]json_value_free [19:26:58]json_value_free done [19:26:58]process_json_proto returns [19:26:58]Send response to host [19:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50332,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [19:26:58]free response buf [19:26:58]execute_script done [19:26:58]execute_script returns [19:26:58]free content buf [19:26:58]Sock 7.Close socket [19:26:58]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:14]accept exits with 9 [19:32:14]New connection [19:32:14]New thread 3067161956 created [19:32:14]Thread 3067305316 joined [19:32:14]Waiting for new connection... [19:32:14] Sock 9.Parse request [19:32:14]Sock 9.Check first char [19:32:14]Sock 9.First char is OK [19:32:14]request: POST /json_proto HTTP/1.0 [19:32:14]Method: POST [19:32:14]URL: /json_proto [19:32:14]Method is POST - this is cgi request [19:32:14]url: /json_proto [19:32:14]query_string will be loaded in cgi processing [19:32:14]execute_cgi json_proto POST (null) [19:32:14]execute_cgi path=json_proto method=POST [19:32:14]POST find Content-Length [19:32:14]Host: 172.17.49.196:8080 [19:32:14]Content-Length: 679 [19:32:14]Content-Type: application/json [19:32:14] [19:32:14]POST finish read [19:32:14]Found Content-Length = 679 [19:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [19:32:14]execute_script... [19:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15441385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [19:32:14]POST & json_proto [19:32:14]process_json_proto [19:32:14]json parsed OK: [19:32:14]protocol is kg_v1.0 [19:32:14]action value=close_receipt [19:32:14]process_action close_receipt [19:32:14]cmd_close_receipt [19:32:14]MH_GetDate [19:32:14]Write to MH i2c: F0 00 00 A6 17 AC [19:32:14]Write i2c OK [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: F0 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: F0 09 00 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: F0 09 00 A6 17 00 42 4F 19 67 BD 3B 11 67 36 [19:32:14]GetLastDocTimeStamp 1729711620 [19:32:14]current date 1729711938 [19:32:14]FM_GetShiftState [19:32:14]SAM_PROTO_GetShiftState [19:32:14]wFMCommunicate request_size=4 [19:32:14]MH_SAM_APDU [19:32:14]CAPDU: 80 13 01 00 [19:32:14]Write to MH i2c: E2 08 00 A7 17 80 13 01 00 00 00 00 00 3B [19:32:14]Write i2c OK [19:32:14]MH_I2C_Read... [19:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:14]Read from MH i2c: E2 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 0E 00 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 0E 00 A7 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 87 [19:32:14]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:32:14]wFMCommunicate OK [19:32:14]SAM_PROTO_GetShiftState done [19:32:14]FM_GetShiftState done [19:32:14]opened in 1729642370 [19:32:14]opened+sec_in_day 1729728770 [19:32:14]quantity*price = 60027 [19:32:14]sum+1 = 60029 [19:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 78 23.10.2024 19:32 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50333 ФПД: 233572532437840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193218&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50333&fm=233572532437840&tin=02508201610067®Number=0000000000097022&sum=60000 [19:32:15]StoreToDocumentArchive [19:32:15]shift 491 fd 50333 [19:32:15]save to /storage/0491/doc_00050333 [19:32:15]save last doc name /storage/0491/doc_00050333 to /storage/kkm_last_doc_name [19:32:15]save OK [19:32:15]Clear old archive folders... [19:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:15]tlvbuf is 0023F290 [19:32:15]SAM_PROTO_ClearQueue [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 09 00 00 [19:32:15]Write to MH i2c: E2 08 00 B4 17 80 09 00 00 00 00 00 00 3D [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]SAM_PROTO_ClearQueue done [19:32:15]KKMCreateOFDPacket [19:32:15]OFDProtocolAddRootSTLVToBuf [19:32:15]FM_MakeSignedData [19:32:15]FM_MakeSignedData [19:32:15]SAM_PROTO_SignData [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 01 02 [19:32:15]Write to MH i2c: E2 08 00 B5 17 80 0D 01 02 00 00 00 00 45 [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]wFMCommunicate request_size=255 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4E 00 00 00 F4 03 04 00 42 4F 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C4 00 00 35 04 06 00 D4 [19:32:15]Write to MH i2c: E2 02 01 B6 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4E 00 00 00 F4 03 04 00 42 4F 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C4 00 00 35 04 06 00 D4 00 00 9F [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]wFMCommunicate request_size=10 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 02 02 05 6E D7 D3 43 50 [19:32:15]Write to MH i2c: E2 0D 00 B7 17 80 0D 02 02 05 00 6E D7 D3 43 50 00 00 FD [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 03 02 [19:32:15]Write to MH i2c: E2 08 00 B8 17 80 0D 03 02 00 00 00 00 4A [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 0B 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 0B 00 B8 17 00 75 B9 F1 3F DB CD 9C 71 90 00 5E [19:32:15]RAPDU: 75 B9 F1 3F DB CD 9C 71 90 00 [19:32:15]wFMCommunicate OK [19:32:15]SAM_PROTO_SignData done [19:32:15]FM_MakeSignedData done [19:32:15]CreateOFDProtocolMessage [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 11 00 00 [19:32:15]Write to MH i2c: E2 08 00 B9 17 80 11 00 00 00 00 00 00 4A [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 17 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 17 00 B9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 91 [19:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:32:15]wFMCommunicate OK [19:32:15]CreateOFDProtocolMessage done [19:32:15]OFDSenderStorePacket 50333 [19:32:15]StoreOFDPacket docnum=50333 [19:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 49 49 07 01 81 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4E 00 00 00 F4 03 04 00 42 4F 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C4 00 00 35 04 06 00 D4 6E D7 D3 43 50 75 B9 F1 3F DB CD 9C 71 [19:32:15]CheckFolder [19:32:15]dirname=/storage/ofd_packets [19:32:15]CheckFolder done [19:32:15]ProducePacketName [19:32:15]name=ofd_packets/00050333 [19:32:15]NVStorageSaveData ofd_packets/00050333 [19:32:15]File name is /storage/ofd_packets/00050333 [19:32:15]Write 301 bytes [19:32:15]NVStorageSaveData done [19:32:15]OFDSenderStorePacket done [19:32:15]KKMCreateOFDPacket done [19:32:15]NVStorageSaveData kkm_last_timestamp [19:32:15]File name is /storage/kkm_last_timestamp [19:32:15]Write 4 bytes [19:32:15]NVStorageSaveData done [19:32:15]ExternCall_PrintAddStr [19:32:15]wPrintStart [19:32:15]Write to MH i2c: 01 00 00 BA 17 D1 [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 07 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 07 00 BA 17 00 00 00 00 00 FF 0F E6 [19:32:15]RasterBufferAndPrint [19:32:15]line Счет N : (1)15441385 [19:32:15]line ИНН: 02508201610067 [19:32:15]line Контрольно-Кассовый Чек [19:32:15]line ПРОДАЖА [19:32:15]line ТРК (МРК, ГНК) : 42 [19:32:15]line Товар: 2710124500 [19:32:15]line Аи-95-К-3 [19:32:15]line 8.090 * 74.20 [19:32:15]line = 600.28 [19:32:15]line НДС 12% НСП 1% [19:32:15]line > о реализуемом товаре [19:32:15]line ОКРУГЛЕНИЕ: -0.28 [19:32:15]line ИТОГО: 600.00 [19:32:15]line Внесено: 600.00 [19:32:15]line СДАЧА: 0.00 [19:32:15]line НСП 1% : 5.31 [19:32:15]line НДС 12% : 63.75 [19:32:15]line Наличными: 600.00 [19:32:15]line Безнал.: 0.00 [19:32:15]line Место: АЗС № 80 "Партнер Нефть" [19:32:15]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:32:15]line СНО: Общий режим [19:32:15]line Чек 78 23.10.2024 19:32 [19:32:15]line Смена: 491 ФФД: 1.0 [19:32:15]line ЗНМ: 0300000090 [19:32:15]line РНМ: 0000000000097022 [19:32:15]line Версия ККМ: 001 [19:32:15]line ФМ: 0000000000875000 [19:32:15]line ФД: 50333 [19:32:15]line ФПД: 233572532437840 [19:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193218&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50333&fm=233572532437840&tin=02508201610067®Number=0000000000097022&sum=60000 [19:32:16]OFD Sender: Processing packet 50333 [packets to send 7, broken 6] [19:32:16]ProducePacketName [19:32:16]name=ofd_packets/00050333 [19:32:16]OFD Sender: To server: pG, [19:32:16]CommunicateWithHost lk.salyk.kg:30040 [19:32:16]ConnectInit lk.salyk.kg [19:32:16]written 0, free lines is 4095 [19:32:16]Connected sock=10 [19:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 49 49 07 01 81 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4E 00 00 00 F4 03 04 00 42 4F 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C4 00 00 35 04 06 00 D4 6E D7 D3 43 50 75 B9 F1 3F DB CD 9C 71 [19:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 76 34 47 00 F0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C4 00 00 F4 03 04 00 D8 FA 18 67 B6 04 01 00 00 0C EF BA 3A 99 A3 D4 B7 [19:32:16]CommunicateWithHost err = 0 [19:32:16]CheckOFDResponse [19:32:16]1017 (14) - 77093643461234 [19:32:16]1041 (16) - 0000000000875000 [19:32:16]1040 (4) - 50333 [19:32:16]1012 (4) - 23.10.2024 13:32 [19:32:16]1206 (1) - 0 [19:32:16]OFD Sender: Remove packet 50333 [19:32:16]ProducePacketName [19:32:16]name=ofd_packets/00050333 [19:32:16]NVStorageDeleteData [19:32:16]Write to MH i2c: 01 00 00 E5 17 FC [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 07 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 07 00 E5 17 00 00 00 00 00 FF 0C 0E [19:32:16]RasterBufferAndPrint [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]written 0, free lines is 3333 [19:32:16]process_action close_receipt done [19:32:16]requested_data is exist [19:32:16]produce_requested_data [19:32:16]requested_item fm.sn is exist - process it [19:32:16]wFMCommunicate request_size=4 [19:32:16]MH_SAM_APDU [19:32:16]CAPDU: 80 11 00 00 [19:32:16]Write to MH i2c: E2 08 00 EC 17 80 11 00 00 00 00 00 00 7D [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:16]Read from MH i2c: E2 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 17 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 17 00 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C4 [19:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:32:16]wFMCommunicate OK [19:32:16]requested_item fd.num is exist - process it [19:32:16]SAM_PROTO_GetFieldsCounters [19:32:16]wFMCommunicate request_size=4 [19:32:16]MH_SAM_APDU [19:32:16]CAPDU: 80 13 00 00 [19:32:16]Write to MH i2c: E2 08 00 ED 17 80 13 00 00 00 00 00 00 80 [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:16]Read from MH i2c: E2 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 62 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 62 00 ED 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [19:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9D C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:16]wFMCommunicate OK [19:32:16]SAM_PROTO_GetFieldsCounters done [19:32:16]requested_item shift.num is exist - process it [19:32:16]requested_item shift.opened is exist - process it [19:32:16]req_shift_opened [19:32:16]FM_GetShiftState [19:32:16]SAM_PROTO_GetShiftState [19:32:16]wFMCommunicate request_size=4 [19:32:16]MH_SAM_APDU [19:32:16]CAPDU: 80 13 01 00 [19:32:16]Write to MH i2c: E2 08 00 EE 17 80 13 01 00 00 00 00 00 82 [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:16]Read from MH i2c: E2 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 EE 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CE [19:32:16]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:32:16]wFMCommunicate OK [19:32:16]SAM_PROTO_GetShiftState done [19:32:16]FM_GetShiftState done [19:32:16]req_shift_opened done [19:32:16]requested_item shift.open_date is exist - process it [19:32:16]req_shift_open_date [19:32:16]req_shift_open_date done [19:32:16]produce_requested_data done [19:32:16]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50333,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [19:32:16]process_action_free close_receipt [19:32:16]json_value_free [19:32:16]json_value_free done [19:32:16]process_json_proto returns [19:32:16]Send response to host [19:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50333,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [19:32:16]free response buf [19:32:16]execute_script done [19:32:16]execute_script returns [19:32:16]free content buf [19:32:16]Sock 9.Close socket [19:32:16]Sock 9.Thread stoped [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:38]accept exits with 7 [19:35:38]New connection [19:35:38]New thread 3067305316 created [19:35:38]Thread 3067161956 joined [19:35:38]Waiting for new connection... [19:35:38] Sock 7.Parse request [19:35:38]Sock 7.Check first char [19:35:38]Sock 7.First char is OK [19:35:38]request: POST /json_proto HTTP/1.0 [19:35:38]Method: POST [19:35:38]URL: /json_proto [19:35:38]Method is POST - this is cgi request [19:35:38]url: /json_proto [19:35:38]query_string will be loaded in cgi processing [19:35:38]execute_cgi json_proto POST (null) [19:35:38]execute_cgi path=json_proto method=POST [19:35:38]POST find Content-Length [19:35:38]Host: 172.17.49.196:8080 [19:35:38]Content-Length: 629 [19:35:38]Content-Type: application/json [19:35:38] [19:35:38]POST finish read [19:35:38]Found Content-Length = 629 [19:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164242", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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" ] } } [19:35:38]execute_script... [19:35:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164242", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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" ] } } [19:35:38]POST & json_proto [19:35:38]process_json_proto [19:35:38]json parsed OK: [19:35:38]protocol is kg_v1.0 [19:35:38]action value=close_receipt [19:35:38]process_action close_receipt [19:35:38]cmd_close_receipt [19:35:38]MH_GetDate [19:35:38]Write to MH i2c: F0 00 00 EF 17 F5 [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 EF 17 00 0F 50 19 67 BD 3B 11 67 4D [19:35:38]GetLastDocTimeStamp 1729711938 [19:35:38]current date 1729712143 [19:35:38]FM_GetShiftState [19:35:38]SAM_PROTO_GetShiftState [19:35:38]wFMCommunicate request_size=4 [19:35:38]MH_SAM_APDU [19:35:38]CAPDU: 80 13 01 00 [19:35:38]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:38]Read from MH i2c: E2 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D0 [19:35:38]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:35:38]wFMCommunicate OK [19:35:38]SAM_PROTO_GetShiftState done [19:35:38]FM_GetShiftState done [19:35:38]opened in 1729642370 [19:35:38]opened+sec_in_day 1729728770 [19:35:38]quantity*price = 13000 [19:35:38]sum+1 = 13001 [19:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 79 23.10.2024 19:35 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50334 ФПД: 13911435413078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193543&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50334&fm=13911435413078&tin=02508201610067®Number=0000000000097022&sum=13000 0 [19:35:40]StoreToDocumentArchive [19:35:40]shift 491 fd 50334 [19:35:40]save to /storage/0491/doc_00050334 [19:35:40]save last doc name /storage/0491/doc_00050334 to /storage/kkm_last_doc_name [19:35:40]save OK [19:35:40]Clear old archive folders... [19:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:35:40]tlvbuf is B6F17A50 [19:35:40]SAM_PROTO_ClearQueue [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 09 00 00 [19:35:40]Write to MH i2c: E2 08 00 FD 17 80 09 00 00 00 00 00 00 86 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_ClearQueue done [19:35:40]KKMCreateOFDPacket [19:35:40]OFDProtocolAddRootSTLVToBuf [19:35:40]FM_MakeSignedData [19:35:40]FM_MakeSignedData [19:35:40]SAM_PROTO_SignData [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 01 02 [19:35:40]Write to MH i2c: E2 08 00 FE 17 80 0D 01 02 00 00 00 00 8E [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]wFMCommunicate request_size=255 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 4F 00 00 00 F4 03 04 00 0F 50 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:35:40]Write to MH i2c: E2 02 01 FF 17 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 4F 00 00 00 F4 03 04 00 0F 50 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 CB [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]wFMCommunicate request_size=28 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 02 02 17 37 35 30 30 30 10 04 04 00 9E C4 00 00 35 04 06 00 0C A7 02 2A 86 56 [19:35:40]Write to MH i2c: E2 1F 00 00 18 80 0D 02 02 17 00 37 35 30 30 30 10 04 04 00 9E C4 00 00 35 04 06 00 0C A7 02 2A 86 56 00 00 30 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 03 02 [19:35:40]Write to MH i2c: E2 08 00 01 18 80 0D 03 02 00 00 00 00 94 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 01 18 00 F8 6E 0A 54 ED 69 99 06 90 00 4E [19:35:40]RAPDU: F8 6E 0A 54 ED 69 99 06 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_SignData done [19:35:40]FM_MakeSignedData done [19:35:40]CreateOFDProtocolMessage [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 11 00 00 [19:35:40]Write to MH i2c: E2 08 00 02 18 80 11 00 00 00 00 00 00 94 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 02 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DB [19:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:35:40]wFMCommunicate OK [19:35:40]CreateOFDProtocolMessage done [19:35:40]OFDSenderStorePacket 50334 [19:35:40]StoreOFDPacket docnum=50334 [19:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 B6 58 19 01 C6 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 4F 00 00 00 F4 03 04 00 0F 50 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C4 00 00 35 04 06 00 0C A7 02 2A 86 56 F8 6E 0A 54 ED 69 99 06 [19:35:40]CheckFolder [19:35:40]dirname=/storage/ofd_packets [19:35:40]CheckFolder done [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00050334 [19:35:40]NVStorageSaveData ofd_packets/00050334 [19:35:40]File name is /storage/ofd_packets/00050334 [19:35:40]Write 319 bytes [19:35:40]NVStorageSaveData done [19:35:40]OFDSenderStorePacket done [19:35:40]KKMCreateOFDPacket done [19:35:40]NVStorageSaveData kkm_last_timestamp [19:35:40]File name is /storage/kkm_last_timestamp [19:35:40]Write 4 bytes [19:35:40]NVStorageSaveData done [19:35:40]ExternCall_PrintAddStr [19:35:40]wPrintStart [19:35:40]Write to MH i2c: 01 00 00 03 18 1B [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [19:35:40]RasterBufferAndPrint [19:35:40]line Счет N : (3)164242 [19:35:40]line ИНН: 02508201610067 [19:35:40]line Контрольно-Кассовый Чек [19:35:40]line ПРОДАЖА [19:35:40]line Товар: 4620006996716 [19:35:40]line Водка Талка 0,1л [19:35:40]line 1.000 * 130.00 [19:35:40]line = 130.00 [19:35:40]line НДС 12% НСП 1% [19:35:40]line > о реализуемом товаре [19:35:40]line ИТОГО: 130.00 [19:35:40]line НСП 1% : 1.15 [19:35:40]line НДС 12% : 13.80 [19:35:40]line Наличными: 130.00 [19:35:40]line Безнал.: 0.00 [19:35:40]line Место: АЗС № 80 "Партнер Нефть" [19:35:40]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:35:40]line СНО: Общий режим [19:35:40]line Чек 79 23.10.2024 19:35 [19:35:40]line Смена: 491 ФФД: 1.0 [19:35:40]line ЗНМ: 0300000090 [19:35:40]line РНМ: 0000000000097022 [19:35:40]line Версия ККМ: 001 [19:35:40]line ФМ: 0000000000875000 [19:35:40]line ФД: 50334 [19:35:40]line ФПД: 13911435413078 [19:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193543&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50334&fm=13911435413078&tin=02508201610067®Number=0000000000097022&sum=13000 [19:35:40]OFD Sender: Processing packet 50334 [packets to send 7, broken 6] [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00050334 [19:35:40]OFD Sender: To server: pG, [19:35:40]CommunicateWithHost lk.salyk.kg:30040 [19:35:40]ConnectInit lk.salyk.kg [19:35:40]line 0 [19:35:40]written 0, free lines is 4095 [19:35:41]Connected sock=11 [19:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 B6 58 19 01 C6 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 4F 00 00 00 F4 03 04 00 0F 50 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C4 00 00 35 04 06 00 0C A7 02 2A 86 56 F8 6E 0A 54 ED 69 99 06 [19:35:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AA D2 47 00 FD 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C4 00 00 F4 03 04 00 A5 FB 18 67 B6 04 01 00 00 2B F0 CA 8B F6 0B FC 83 [19:35:41]CommunicateWithHost err = 0 [19:35:41]CheckOFDResponse [19:35:41]1017 (14) - 77093643461234 [19:35:41]1041 (16) - 0000000000875000 [19:35:41]1040 (4) - 50334 [19:35:41]1012 (4) - 23.10.2024 13:35 [19:35:41]1206 (1) - 0 [19:35:41]OFD Sender: Remove packet 50334 [19:35:41]ProducePacketName [19:35:41]name=ofd_packets/00050334 [19:35:41]NVStorageDeleteData [19:35:41]Write to MH i2c: 01 00 00 2B 18 43 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 26 0D 7D [19:35:41]RasterBufferAndPrint [19:35:41]line [19:35:41]line [19:35:41]line [19:35:41]line [19:35:41]line [19:35:41]written 0, free lines is 3373 [19:35:41]process_action close_receipt done [19:35:41]requested_data is exist [19:35:41]produce_requested_data [19:35:41]requested_item fm.sn is exist - process it [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 11 00 00 [19:35:41]Write to MH i2c: E2 08 00 32 18 80 11 00 00 00 00 00 00 C4 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 32 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0B [19:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:35:41]wFMCommunicate OK [19:35:41]requested_item fd.num is exist - process it [19:35:41]SAM_PROTO_GetFieldsCounters [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 13 00 00 [19:35:41]Write to MH i2c: E2 08 00 33 18 80 13 00 00 00 00 00 00 C7 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 62 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 62 00 33 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9E C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_GetFieldsCounters done [19:35:41]requested_item shift.num is exist - process it [19:35:41]requested_item shift.opened is exist - process it [19:35:41]req_shift_opened [19:35:41]FM_GetShiftState [19:35:41]SAM_PROTO_GetShiftState [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 13 01 00 [19:35:41]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0E 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 15 [19:35:41]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_GetShiftState done [19:35:41]FM_GetShiftState done [19:35:41]req_shift_opened done [19:35:41]requested_item shift.open_date is exist - process it [19:35:41]req_shift_open_date [19:35:41]req_shift_open_date done [19:35:41]produce_requested_data done [19:35:41]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50334,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [19:35:41]process_action_free close_receipt [19:35:41]json_value_free [19:35:41]json_value_free done [19:35:41]process_json_proto returns [19:35:41]Send response to host [19:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50334,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [19:35:41]free response buf [19:35:41]execute_script done [19:35:41]execute_script returns [19:35:41]free content buf [19:35:41]Sock 7.Close socket [19:35:41]Sock 7.Thread stoped [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:21]accept exits with 9 [20:09:21]New connection [20:09:21]New thread 3067161956 created [20:09:21]Thread 3067305316 joined [20:09:21]Waiting for new connection... [20:09:21] Sock 9.Parse request [20:09:21]Sock 9.Check first char [20:09:21]Sock 9.First char is OK [20:09:21]request: POST /json_proto HTTP/1.0 [20:09:21]Method: POST [20:09:21]URL: /json_proto [20:09:21]Method is POST - this is cgi request [20:09:21]url: /json_proto [20:09:21]query_string will be loaded in cgi processing [20:09:21]execute_cgi json_proto POST (null) [20:09:21]execute_cgi path=json_proto method=POST [20:09:21]POST find Content-Length [20:09:21]Host: 172.17.49.196:8080 [20:09:21]Content-Length: 1211 [20:09:21]Content-Type: application/json [20:09:21] [20:09:21]POST finish read [20:09:21]Found Content-Length = 1211 [20:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164243", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030844", "name": "\u0414\u0440\u0430\u0436\u0435 CLACKER Johny Bee", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 377.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:21]execute_script... [20:09: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)164243", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030844", "name": "\u0414\u0440\u0430\u0436\u0435 CLACKER Johny Bee", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 377.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:21]POST & json_proto [20:09:21]process_json_proto [20:09:21]json parsed OK: [20:09:21]protocol is kg_v1.0 [20:09:21]action value=close_receipt [20:09:21]process_action close_receipt [20:09:21]cmd_close_receipt [20:09:21]MH_GetDate [20:09:21]Write to MH i2c: F0 00 00 35 18 3C [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: F0 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: F0 09 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: F0 09 00 35 18 00 F6 57 19 67 BD 3B 11 67 82 [20:09:21]GetLastDocTimeStamp 1729712143 [20:09:21]current date 1729714166 [20:09:21]FM_GetShiftState [20:09:21]SAM_PROTO_GetShiftState [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 13 01 00 [20:09:21]Write to MH i2c: E2 08 00 36 18 80 13 01 00 00 00 00 00 CB [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 36 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 17 [20:09:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_GetShiftState done [20:09:21]FM_GetShiftState done [20:09:21]opened in 1729642370 [20:09:21]opened+sec_in_day 1729728770 [20:09:21]quantity*price = 9000 [20:09:21]sum+1 = 9001 [20:09:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602606010924 Конф Fruit-tella стик ассорти 16*20*42,5 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5904917030844 Драже CLACKER Johny Bee 1.000 * 212.00 = 212.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 377.00 НСП 1% : 3.34 НДС 12% : 40.03 Наличными: 377.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 80 23.10.2024 20:09 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50335 ФПД: 138983411894465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200926&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50335&fm=138983411894465&tin=02508201610067®Number=0000000000097022&sum=37700 0 [20:09:22]StoreToDocumentArchive [20:09:22]shift 491 fd 50335 [20:09:22]save to /storage/0491/doc_00050335 [20:09:22]save last doc name /storage/0491/doc_00050335 to /storage/kkm_last_doc_name [20:09:22]save OK [20:09:22]Clear old archive folders... [20:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=527 [20:09:22]tlvbuf is 00114440 [20:09:22]SAM_PROTO_ClearQueue [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 09 00 00 [20:09:22]Write to MH i2c: E2 08 00 43 18 80 09 00 00 00 00 00 00 CD [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]SAM_PROTO_ClearQueue done [20:09:22]KKMCreateOFDPacket [20:09:22]OFDProtocolAddRootSTLVToBuf [20:09:22]FM_MakeSignedData [20:09:22]FM_MakeSignedData [20:09:22]SAM_PROTO_SignData [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 01 02 [20:09:22]Write to MH i2c: E2 08 00 44 18 80 0D 01 02 00 00 00 00 D5 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=255 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 02 02 FA 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 [20:09:22]Write to MH i2c: E2 02 01 45 18 80 0D 02 02 FA 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 00 CB [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:23]Read from MH i2c: E2 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [20:09:23]RAPDU: 90 00 [20:09:23]wFMCommunicate OK [20:09:23]wFMCommunicate request_size=255 [20:09:23]MH_SAM_APDU [20:09:23]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0F 00 00 00 00 07 04 06 00 44 93 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 F6 57 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [20:09:23]Write to MH i2c: E2 02 01 46 18 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0F 00 00 00 00 07 04 06 00 44 93 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 F6 57 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 74 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]OFD Sender: No OFD packet to send [20:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:23]Read from MH i2c: E2 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [20:09:23]RAPDU: 90 00 [20:09:23]wFMCommunicate OK [20:09:23]wFMCommunicate request_size=36 [20:09:23]MH_SAM_APDU [20:09:23]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C4 00 00 35 04 06 00 7E 67 98 E5 48 C1 [20:09:23]Write to MH i2c: E2 27 00 47 18 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C4 00 00 35 04 06 00 7E 67 98 E5 48 C1 00 00 C0 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:23]Read from MH i2c: E2 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [20:09:23]RAPDU: 90 00 [20:09:23]wFMCommunicate OK [20:09:23]wFMCommunicate request_size=4 [20:09:23]MH_SAM_APDU [20:09:23]CAPDU: 80 0D 03 02 [20:09:23]Write to MH i2c: E2 08 00 48 18 80 0D 03 02 00 00 00 00 DB [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:23]Read from MH i2c: E2 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 0B 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 0B 00 48 18 00 0D 0B 7D 82 AA AC 62 14 90 00 BF [20:09:23]RAPDU: 0D 0B 7D 82 AA AC 62 14 90 00 [20:09:23]wFMCommunicate OK [20:09:23]SAM_PROTO_SignData done [20:09:23]FM_MakeSignedData done [20:09:23]CreateOFDProtocolMessage [20:09:23]wFMCommunicate request_size=4 [20:09:23]MH_SAM_APDU [20:09:23]CAPDU: 80 11 00 00 [20:09:23]Write to MH i2c: E2 08 00 49 18 80 11 00 00 00 00 00 00 DB [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:23]Read from MH i2c: E2 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 17 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: E2 17 00 49 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 22 [20:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:09:23]wFMCommunicate OK [20:09:23]CreateOFDProtocolMessage done [20:09:23]OFDSenderStorePacket 50335 [20:09:23]StoreOFDPacket docnum=50335 [20:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 02 00 00 BF 3C 1B 02 3B 60 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0F 00 00 00 00 07 04 06 00 44 93 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 F6 57 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C4 00 00 35 04 06 00 7E 67 98 E5 48 C1 0D 0B 7D 82 AA AC 62 14 [20:09:23]CheckFolder [20:09:23]dirname=/storage/ofd_packets [20:09:23]CheckFolder done [20:09:23]ProducePacketName [20:09:23]name=ofd_packets/00050335 [20:09:23]NVStorageSaveData ofd_packets/00050335 [20:09:23]File name is /storage/ofd_packets/00050335 [20:09:23]Write 577 bytes [20:09:23]NVStorageSaveData done [20:09:23]OFDSenderStorePacket done [20:09:23]KKMCreateOFDPacket done [20:09:23]NVStorageSaveData kkm_last_timestamp [20:09:23]File name is /storage/kkm_last_timestamp [20:09:23]Write 4 bytes [20:09:23]NVStorageSaveData done [20:09:23]ExternCall_PrintAddStr [20:09:23]wPrintStart [20:09:23]Write to MH i2c: 01 00 00 4A 18 62 [20:09:23]OFD Sender: Processing packet 50335 [packets to send 7, broken 6] [20:09:23]ProducePacketName [20:09:23]name=ofd_packets/00050335 [20:09:23]OFD Sender: To server: pG, [20:09:23]CommunicateWithHost lk.salyk.kg:30040 [20:09:23]ConnectInit lk.salyk.kg [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 4A 18 00 00 00 00 00 FF 0F 77 [20:09:23]RasterBufferAndPrint [20:09:23]line Счет N : (3)164243 [20:09:23]line ИНН: 02508201610067 [20:09:23]line Контрольно-Кассовый Чек [20:09:23]line ПРОДАЖА [20:09:23]line Товар: 4870235681079 [20:09:23]line Grizzly волнистые Сладкий чили 55 гр [20:09:23]line 1.000 * 90.00 [20:09:23]line = 90.00 [20:09:23]line НДС 12% НСП 1% [20:09:23]line > о реализуемом товаре [20:09:23]line Товар: 4602606010924 [20:09:23]line Конф Fruit-tella стик ассорти 16*20*42,5 [20:09:23]line 1.000 * 75.00 [20:09:23]line = 75.00 [20:09:23]line НДС 12% НСП 1% [20:09:23]line > о реализуемом товаре [20:09:23]line Товар: 5904917030844 [20:09:23]line Драже CLACKER Johny Bee [20:09:23]line 1.000 * 212.00 [20:09:23]line = 212.00 [20:09:23]line НДС 12% НСП 1% [20:09:23]line > о реализуемом товаре [20:09:23]line ИТОГО: 377.00 [20:09:23]line НСП 1% : 3.34 [20:09:23]line НДС 12% : 40.03 [20:09:23]line Наличными: 377.00 [20:09:23]line Безнал.: 0.00 [20:09:23]line Место: АЗС № 80 "Партнер Нефть" [20:09:23]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:09:23]line СНО: Общий режим [20:09:23]line Чек 80 23.10.2024 20:09 [20:09:23]line Смена: 491 ФФД: 1.0 [20:09:23]line ЗНМ: 0300000090 [20:09:23]line РНМ: 0000000000097022 [20:09:23]line Версия ККМ: 001 [20:09:23]line ФМ: 0000000000875000 [20:09:23]line ФД: 50335 [20:09:23]line ФПД: 138983411894465 [20:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200926&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50335&fm=138983411894465&tin=02508201610067®Number=0000000000097022&sum=37700 [20:09:23]line 0 [20:09:23]written 0, free lines is 4095 [20:09:23]Connected sock=10 [20:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 23 02 00 00 BF 3C 1B 02 3B 60 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 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 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0F 00 00 00 00 07 04 06 00 44 93 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 F6 57 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C4 00 00 35 04 06 00 7E 67 98 E5 48 C1 0D 0B 7D 82 AA AC 62 14 [20:09:24]Write to MH i2c: 01 00 00 80 18 98 [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: 01 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: 01 07 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: 01 07 00 80 18 00 00 00 00 00 5A 0C 05 [20:09:24]RasterBufferAndPrint [20:09:24]line [20:09:24]line [20:09:24]line [20:09:24]line [20:09:24]line [20:09:24]written 0, free lines is 3171 [20:09:24]process_action close_receipt done [20:09:24]requested_data is exist [20:09:24]produce_requested_data [20:09:24]requested_item fm.sn is exist - process it [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 11 00 00 [20:09:24]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [20:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A9 44 47 00 B5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C4 00 00 F4 03 04 00 8C 03 19 67 B6 04 01 00 00 89 54 37 09 EC D5 05 56 [20:09:24]CommunicateWithHost err = 0 [20:09:24]CheckOFDResponse [20:09:24]1017 (14) - 77093643461234 [20:09:24]1041 (16) - 0000000000875000 [20:09:24]1040 (4) - 50335 [20:09:24]1012 (4) - 23.10.2024 14:09 [20:09:24]1206 (1) - 0 [20:09:24]OFD Sender: Remove packet 50335 [20:09:24]ProducePacketName [20:09:24]name=ofd_packets/00050335 [20:09:24]NVStorageDeleteData [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 17 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 60 [20:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:09:24]wFMCommunicate OK [20:09:24]requested_item fd.num is exist - process it [20:09:24]SAM_PROTO_GetFieldsCounters [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 00 00 [20:09:24]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 62 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [20:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9F C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetFieldsCounters done [20:09:24]requested_item shift.num is exist - process it [20:09:24]requested_item shift.opened is exist - process it [20:09:24]req_shift_opened [20:09:24]FM_GetShiftState [20:09:24]SAM_PROTO_GetShiftState [20:09:24]wFMCommunicate request_size=4 [20:09:24]MH_SAM_APDU [20:09:24]CAPDU: 80 13 01 00 [20:09:24]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [20:09:24]Write i2c OK [20:09:24]MH_I2C_Read... [20:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:24]Read from MH i2c: E2 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 [20:09:24]MH_I2C_Read... [20:09:24]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 6A [20:09:24]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:09:24]wFMCommunicate OK [20:09:24]SAM_PROTO_GetShiftState done [20:09:24]FM_GetShiftState done [20:09:24]req_shift_opened done [20:09:24]requested_item shift.open_date is exist - process it [20:09:24]req_shift_open_date [20:09:24]req_shift_open_date done [20:09:24]produce_requested_data done [20:09:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50335,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [20:09:24]process_action_free close_receipt [20:09:24]json_value_free [20:09:24]json_value_free done [20:09:24]process_json_proto returns [20:09:24]Send response to host [20:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50335,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [20:09:24]free response buf [20:09:24]execute_script done [20:09:24]execute_script returns [20:09:24]free content buf [20:09:24]Sock 9.Close socket [20:09:24]Sock 9.Thread stoped [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]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:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:28]accept exits with 7 [20:23:28]New connection [20:23:28]New thread 3067305316 created [20:23:28]Thread 3067161956 joined [20:23:28]Waiting for new connection... [20:23:28] Sock 7.Parse request [20:23:28]Sock 7.Check first char [20:23:28]Sock 7.First char is OK [20:23:28]request: POST /json_proto HTTP/1.0 [20:23:28]Method: POST [20:23:28]URL: /json_proto [20:23:28]Method is POST - this is cgi request [20:23:28]url: /json_proto [20:23:28]query_string will be loaded in cgi processing [20:23:28]execute_cgi json_proto POST (null) [20:23:28]execute_cgi path=json_proto method=POST [20:23:28]POST find Content-Length [20:23:28]Host: 172.17.49.196:8080 [20:23:28]Content-Length: 865 [20:23:28]Content-Type: application/json [20:23:28] [20:23:28]POST finish read [20:23:28]Found Content-Length = 865 [20:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164244", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 374.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:28]execute_script... [20:23: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 : (3)164244", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 374.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:28]POST & json_proto [20:23:28]process_json_proto [20:23:28]json parsed OK: [20:23:28]protocol is kg_v1.0 [20:23:28]action value=close_receipt [20:23:28]process_action close_receipt [20:23:28]cmd_close_receipt [20:23:28]MH_GetDate [20:23:28]Write to MH i2c: F0 00 00 8A 18 91 [20:23:28]Write i2c OK [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: F0 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: F0 09 00 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: F0 09 00 8A 18 00 44 5B 19 67 BD 3B 11 67 29 [20:23:28]GetLastDocTimeStamp 1729714166 [20:23:28]current date 1729715012 [20:23:28]FM_GetShiftState [20:23:28]SAM_PROTO_GetShiftState [20:23:28]wFMCommunicate request_size=4 [20:23:28]MH_SAM_APDU [20:23:28]CAPDU: 80 13 01 00 [20:23:28]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [20:23:28]Write i2c OK [20:23:28]MH_I2C_Read... [20:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:28]Read from MH i2c: E2 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 0E 00 [20:23:28]MH_I2C_Read... [20:23:28]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 6C [20:23:28]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:23:28]wFMCommunicate OK [20:23:28]SAM_PROTO_GetShiftState done [20:23:28]FM_GetShiftState done [20:23:28]opened in 1729642370 [20:23:28]opened+sec_in_day 1729728770 [20:23:28]quantity*price = 14400 [20:23:28]sum+1 = 14401 [20:23:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 374.00 НСП 1% : 3.30 НДС 12% : 39.71 Наличными: 374.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 81 23.10.2024 20:23 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50336 ФПД: 133131749225124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202333&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50336&fm=133131749225124&tin=02508201610067®Number=0000000000097022&sum=37400 0 [20:23:29]StoreToDocumentArchive [20:23:29]shift 491 fd 50336 [20:23:29]save to /storage/0491/doc_00050336 [20:23:29]save last doc name /storage/0491/doc_00050336 to /storage/kkm_last_doc_name [20:23:29]save OK [20:23:29]Clear old archive folders... [20:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=379 [20:23:29]tlvbuf is B6EFE320 [20:23:29]SAM_PROTO_ClearQueue [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 09 00 00 [20:23:29]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]SAM_PROTO_ClearQueue done [20:23:29]KKMCreateOFDPacket [20:23:29]OFDProtocolAddRootSTLVToBuf [20:23:29]FM_MakeSignedData [20:23:29]FM_MakeSignedData [20:23:29]SAM_PROTO_SignData [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 01 02 [20:23:29]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]wFMCommunicate request_size=255 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 02 02 FA 03 00 7B 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 40 38 00 00 00 00 13 04 06 00 40 38 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 18 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 01 00 00 00 [20:23:29]Write to MH i2c: E2 02 01 9A 18 80 0D 02 02 FA 00 03 00 7B 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 40 38 00 00 00 00 13 04 06 00 40 38 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 18 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 01 00 00 00 00 00 9F [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]wFMCommunicate request_size=138 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 0F 00 00 00 00 07 04 06 00 18 92 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 45 5B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C4 00 00 35 04 06 00 79 15 26 9E F2 A4 [20:23:29]Write to MH i2c: E2 8D 00 9B 18 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 0F 00 00 00 00 07 04 06 00 18 92 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 45 5B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C4 00 00 35 04 06 00 79 15 26 9E F2 A4 00 00 38 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [20:23:29]RAPDU: 90 00 [20:23:29]wFMCommunicate OK [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 0D 03 02 [20:23:29]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0B 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0B 00 9C 18 00 FF 47 23 07 06 9A 1B 00 90 00 5B [20:23:29]RAPDU: FF 47 23 07 06 9A 1B 00 90 00 [20:23:29]wFMCommunicate OK [20:23:29]SAM_PROTO_SignData done [20:23:29]FM_MakeSignedData done [20:23:29]CreateOFDProtocolMessage [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 11 00 00 [20:23:29]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 17 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 76 [20:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:23:29]wFMCommunicate OK [20:23:29]CreateOFDProtocolMessage done [20:23:29]OFDSenderStorePacket 50336 [20:23:29]StoreOFDPacket docnum=50336 [20:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 95 C1 87 01 98 D0 5A 03 01 00 03 00 7B 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 40 38 00 00 00 00 13 04 06 00 40 38 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 18 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 0F 00 00 00 00 07 04 06 00 18 92 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 45 5B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C4 00 00 35 04 06 00 79 15 26 9E F2 A4 FF 47 23 07 06 9A 1B 00 [20:23:29]CheckFolder [20:23:29]dirname=/storage/ofd_packets [20:23:29]CheckFolder done [20:23:29]ProducePacketName [20:23:29]name=ofd_packets/00050336 [20:23:29]NVStorageSaveData ofd_packets/00050336 [20:23:29]File name is /storage/ofd_packets/00050336 [20:23:29]Write 429 bytes [20:23:29]NVStorageSaveData done [20:23:29]OFDSenderStorePacket done [20:23:29]KKMCreateOFDPacket done [20:23:29]NVStorageSaveData kkm_last_timestamp [20:23:29]File name is /storage/kkm_last_timestamp [20:23:29]Write 4 bytes [20:23:29]NVStorageSaveData done [20:23:29]ExternCall_PrintAddStr [20:23:29]wPrintStart [20:23:29]Write to MH i2c: 01 00 00 9E 18 B6 [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [20:23:29]RasterBufferAndPrint [20:23:29]line Счет N : (3)164244 [20:23:29]line ИНН: 02508201610067 [20:23:29]line Контрольно-Кассовый Чек [20:23:29]line ПРОДАЖА [20:23:29]line Товар: 48743587 [20:23:29]line Сигареты Winston XStyle Silver [20:23:29]line 1.000 * 144.00 [20:23:29]line = 144.00 [20:23:29]line НДС 12% НСП 1% [20:23:29]line > о реализуемом товаре [20:23:29]line Товар: 2000036240010 [20:23:29]line Кофе Латте (GABB TRADE) [20:23:29]line 2.000 * 115.00 [20:23:29]line = 230.00 [20:23:29]line НДС 12% НСП 1% [20:23:29]line > о реализуемом товаре [20:23:29]line ИТОГО: 374.00 [20:23:29]line НСП 1% : 3.30 [20:23:29]line НДС 12% : 39.71 [20:23:29]line Наличными: 374.00 [20:23:30]line Безнал.: 0.00 [20:23:30]line Место: АЗС № 80 "Партнер Нефть" [20:23:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:23:30]line СНО: Общий режим [20:23:30]line Чек 81 23.10.2024 20:23 [20:23:30]line Смена: 491 ФФД: 1.0 [20:23:30]line ЗНМ: 0300000090 [20:23:30]line РНМ: 0000000000097022 [20:23:30]line Версия ККМ: 001 [20:23:30]line ФМ: 0000000000875000 [20:23:30]line ФД: 50336 [20:23:30]line ФПД: 133131749225124 [20:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202333&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50336&fm=133131749225124&tin=02508201610067®Number=0000000000097022&sum=37400 [20:23:30]line 0 [20:23:30]OFD Sender: Processing packet 50336 [packets to send 7, broken 6] [20:23:30]ProducePacketName [20:23:30]name=ofd_packets/00050336 [20:23:30]OFD Sender: To server: pG, [20:23:30]CommunicateWithHost lk.salyk.kg:30040 [20:23:30]ConnectInit lk.salyk.kg [20:23:30]written 0, free lines is 4095 [20:23:30]Write to MH i2c: 01 00 00 CD 18 E5 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 C4 0C BC [20:23:30]RasterBufferAndPrint [20:23:30]line [20:23:30]line [20:23:30]line [20:23:30]line [20:23:30]line [20:23:30]written 0, free lines is 3273 [20:23:30]process_action close_receipt done [20:23:30]requested_data is exist [20:23:30]produce_requested_data [20:23:30]requested_item fm.sn is exist - process it [20:23:30]wFMCommunicate request_size=4 [20:23:30]MH_SAM_APDU [20:23:30]CAPDU: 80 11 00 00 [20:23:30]Write to MH i2c: E2 08 00 D4 18 80 11 00 00 00 00 00 00 66 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:30]Read from MH i2c: E2 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 17 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: E2 17 00 D4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AD [20:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:23:30]wFMCommunicate OK [20:23:30]requested_item fd.num is exist - process it [20:23:30]SAM_PROTO_GetFieldsCounters [20:23:30]wFMCommunicate request_size=4 [20:23:30]MH_SAM_APDU [20:23:30]CAPDU: 80 13 00 00 [20:23:30]Write to MH i2c: E2 08 00 D5 18 80 13 00 00 00 00 00 00 69 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 62 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 62 00 D5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A0 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [20:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A0 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_GetFieldsCounters done [20:23:31]requested_item shift.num is exist - process it [20:23:31]requested_item shift.opened is exist - process it [20:23:31]req_shift_opened [20:23:31]FM_GetShiftState [20:23:31]SAM_PROTO_GetShiftState [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 13 01 00 [20:23:31]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 B7 [20:23:31]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_GetShiftState done [20:23:31]FM_GetShiftState done [20:23:31]req_shift_opened done [20:23:31]requested_item shift.open_date is exist - process it [20:23:31]req_shift_open_date [20:23:31]req_shift_open_date done [20:23:31]produce_requested_data done [20:23:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50336,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [20:23:31]process_action_free close_receipt [20:23:31]json_value_free [20:23:31]json_value_free done [20:23:31]process_json_proto returns [20:23:31]Send response to host [20:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50336,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [20:23:31]free response buf [20:23:31]execute_script done [20:23:31]execute_script returns [20:23:31]free content buf [20:23:31]Sock 7.Close socket [20:23:31]Sock 7.Thread stoped [20:25:40]ConnectInit Can't connect to host [20:25:40]CommunicateWithHost connect error [20:25:40]CommunicateWithHost err = -1 [20:25:40]OFD Sender: Server communicate error [20:25:45]OFD Sender: Processing packet 50336 [packets to send 7, broken 6] [20:25:45]ProducePacketName [20:25:45]name=ofd_packets/00050336 [20:25:45]OFD Sender: To server: pG, [20:25:45]CommunicateWithHost lk.salyk.kg:30040 [20:25:45]ConnectInit lk.salyk.kg [20:25:46]Connected sock=7 [20:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 95 C1 87 01 98 D0 5A 03 01 00 03 00 7B 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 40 38 00 00 00 00 13 04 06 00 40 38 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 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 18 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 0F 00 00 00 00 07 04 06 00 18 92 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 45 5B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C4 00 00 35 04 06 00 79 15 26 9E F2 A4 FF 47 23 07 06 9A 1B 00 [20:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B2 3C 47 00 73 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C4 00 00 F4 03 04 00 62 07 19 67 B6 04 01 00 00 B6 75 36 CF 48 52 93 A8 [20:25:46]CommunicateWithHost err = 0 [20:25:46]CheckOFDResponse [20:25:46]1017 (14) - 77093643461234 [20:25:46]1041 (16) - 0000000000875000 [20:25:46]1040 (4) - 50336 [20:25:46]1012 (4) - 23.10.2024 14:25 [20:25:46]1206 (1) - 0 [20:25:46]OFD Sender: Remove packet 50336 [20:25:46]ProducePacketName [20:25:46]name=ofd_packets/00050336 [20:25:46]NVStorageDeleteData [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:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:41]accept exits with 9 [20:32:41]New connection [20:32:41]New thread 3067161956 created [20:32:41]Thread 3067305316 joined [20:32:41]Waiting for new connection... [20:32:41] Sock 9.Parse request [20:32:41]Sock 9.Check first char [20:32:41]Sock 9.First char is OK [20:32:41]request: POST /json_proto HTTP/1.0 [20:32:41]Method: POST [20:32:41]URL: /json_proto [20:32:41]Method is POST - this is cgi request [20:32:41]url: /json_proto [20:32:41]query_string will be loaded in cgi processing [20:32:41]execute_cgi json_proto POST (null) [20:32:41]execute_cgi path=json_proto method=POST [20:32:41]POST find Content-Length [20:32:41]Host: 172.17.49.196:8080 [20:32:41]Content-Length: 654 [20:32:41]Content-Type: application/json [20:32:41] [20:32:41]POST finish read [20:32:41]Found Content-Length = 654 [20:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164245", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:41]execute_script... [20:32: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)164245", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:41]POST & json_proto [20:32:41]process_json_proto [20:32:41]json parsed OK: [20:32:41]protocol is kg_v1.0 [20:32:41]action value=close_receipt [20:32:41]process_action close_receipt [20:32:41]cmd_close_receipt [20:32:41]MH_GetDate [20:32:41]Write to MH i2c: F0 00 00 D7 18 DE [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: F0 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: F0 09 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: F0 09 00 D7 18 00 6E 5D 19 67 BD 3B 11 67 A2 [20:32:41]GetLastDocTimeStamp 1729715013 [20:32:41]current date 1729715566 [20:32:41]FM_GetShiftState [20:32:41]SAM_PROTO_GetShiftState [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 13 01 00 [20:32:41]Write to MH i2c: E2 08 00 D8 18 80 13 01 00 00 00 00 00 6D [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0E 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0E 00 D8 18 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 B9 [20:32:41]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:32:41]wFMCommunicate OK [20:32:41]SAM_PROTO_GetShiftState done [20:32:41]FM_GetShiftState done [20:32:41]opened in 1729642370 [20:32:41]opened+sec_in_day 1729728770 [20:32:41]quantity*price = 4500 [20:32:41]sum+1 = 4501 [20:32:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 82 23.10.2024 20:32 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50337 ФПД: 187387946114309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203246&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50337&fm=187387946114309&tin=02508201610067®Number=0000000000097022&sum=4500 0 [20:32:43]StoreToDocumentArchive [20:32:43]shift 491 fd 50337 [20:32:43]save to /storage/0491/doc_00050337 [20:32:43]save last doc name /storage/0491/doc_00050337 to /storage/kkm_last_doc_name [20:32:43]save OK [20:32:43]Clear old archive folders... [20:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:32:43]tlvbuf is B6F30790 [20:32:43]SAM_PROTO_ClearQueue [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 09 00 00 [20:32:43]Write to MH i2c: E2 08 00 E5 18 80 09 00 00 00 00 00 00 6F [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [20:32:43]RAPDU: 90 00 [20:32:43]wFMCommunicate OK [20:32:43]SAM_PROTO_ClearQueue done [20:32:43]KKMCreateOFDPacket [20:32:43]OFDProtocolAddRootSTLVToBuf [20:32:43]FM_MakeSignedData [20:32:43]FM_MakeSignedData [20:32:43]SAM_PROTO_SignData [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 0D 01 02 [20:32:43]Write to MH i2c: E2 08 00 E6 18 80 0D 01 02 00 00 00 00 77 [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [20:32:43]RAPDU: 90 00 [20:32:43]wFMCommunicate OK [20:32:43]wFMCommunicate request_size=255 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 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 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 52 00 00 00 F4 03 04 00 6E 5D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [20:32:43]Write to MH i2c: E2 02 01 E7 18 80 0D 02 02 FA 00 03 00 15 01 1E 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 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 52 00 00 00 F4 03 04 00 6E 5D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 8F [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [20:32:43]RAPDU: 90 00 [20:32:43]wFMCommunicate OK [20:32:43]wFMCommunicate request_size=36 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C4 00 00 35 04 06 00 AA 6D A7 F6 9D 05 [20:32:43]Write to MH i2c: E2 27 00 E8 18 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C4 00 00 35 04 06 00 AA 6D A7 F6 9D 05 00 00 4E [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [20:32:43]RAPDU: 90 00 [20:32:43]wFMCommunicate OK [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 0D 03 02 [20:32:43]Write to MH i2c: E2 08 00 E9 18 80 0D 03 02 00 00 00 00 7C [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 0B 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 0B 00 E9 18 00 A6 B7 28 E7 62 A5 86 42 90 00 B8 [20:32:43]RAPDU: A6 B7 28 E7 62 A5 86 42 90 00 [20:32:43]wFMCommunicate OK [20:32:43]SAM_PROTO_SignData done [20:32:43]FM_MakeSignedData done [20:32:43]CreateOFDProtocolMessage [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 11 00 00 [20:32:43]Write to MH i2c: E2 08 00 EA 18 80 11 00 00 00 00 00 00 7C [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 EA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C3 [20:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:32:43]wFMCommunicate OK [20:32:43]CreateOFDProtocolMessage done [20:32:43]OFDSenderStorePacket 50337 [20:32:43]StoreOFDPacket docnum=50337 [20:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 5C 3B 21 01 94 01 5A 03 01 00 03 00 15 01 1E 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 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 52 00 00 00 F4 03 04 00 6E 5D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C4 00 00 35 04 06 00 AA 6D A7 F6 9D 05 A6 B7 28 E7 62 A5 86 42 [20:32:43]CheckFolder [20:32:43]dirname=/storage/ofd_packets [20:32:43]CheckFolder done [20:32:43]ProducePacketName [20:32:43]name=ofd_packets/00050337 [20:32:43]NVStorageSaveData ofd_packets/00050337 [20:32:43]File name is /storage/ofd_packets/00050337 [20:32:43]Write 327 bytes [20:32:43]NVStorageSaveData done [20:32:43]OFDSenderStorePacket done [20:32:43]KKMCreateOFDPacket done [20:32:43]NVStorageSaveData kkm_last_timestamp [20:32:43]File name is /storage/kkm_last_timestamp [20:32:43]Write 4 bytes [20:32:43]NVStorageSaveData done [20:32:43]OFD Sender: Processing packet 50337 [packets to send 7, broken 6] [20:32:43]ProducePacketName [20:32:43]name=ofd_packets/00050337 [20:32:43]OFD Sender: To server: pG, [20:32:43]CommunicateWithHost lk.salyk.kg:30040 [20:32:43]ConnectInit lk.salyk.kg [20:32:43]ExternCall_PrintAddStr [20:32:43]wPrintStart [20:32:43]Write to MH i2c: 01 00 00 EB 18 03 [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: 01 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: 01 07 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: 01 07 00 EB 18 00 00 00 00 00 FF 0F 18 [20:32:43]RasterBufferAndPrint [20:32:43]line Счет N : (3)164245 [20:32:43]line ИНН: 02508201610067 [20:32:43]line Контрольно-Кассовый Чек [20:32:43]line ПРОДАЖА [20:32:43]line Товар: 42203100 [20:32:43]line Жев Orbit банан-клубника [20:32:43]line 1.000 * 45.00 [20:32:43]line = 45.00 [20:32:43]line НДС 12% НСП 1% [20:32:43]line > о реализуемом товаре [20:32:43]line ИТОГО: 45.00 [20:32:43]line НСП 1% : 0.40 [20:32:43]line НДС 12% : 4.78 [20:32:43]line Наличными: 45.00 [20:32:43]line Безнал.: 0.00 [20:32:43]line Место: АЗС № 80 "Партнер Нефть" [20:32:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:32:43]line СНО: Общий режим [20:32:43]line Чек 82 23.10.2024 20:32 [20:32:43]line Смена: 491 ФФД: 1.0 [20:32:43]line ЗНМ: 0300000090 [20:32:43]line РНМ: 0000000000097022 [20:32:43]line Версия ККМ: 001 [20:32:43]line ФМ: 0000000000875000 [20:32:43]line ФД: 50337 [20:32:43]line ФПД: 187387946114309 [20:32:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203246&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50337&fm=187387946114309&tin=02508201610067®Number=0000000000097022&sum=4500 [20:32:43]line 0 [20:32:43]Connected sock=11 [20:32:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 5C 3B 21 01 94 01 5A 03 01 00 03 00 15 01 1E 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 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 52 00 00 00 F4 03 04 00 6E 5D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C4 00 00 35 04 06 00 AA 6D A7 F6 9D 05 A6 B7 28 E7 62 A5 86 42 [20:32:43]written 0, free lines is 4095 [20:32:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0A D7 47 00 61 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C4 00 00 F4 03 04 00 04 09 19 67 B6 04 01 00 00 5C 0D 5C 3A 1D E7 2A 8E [20:32:44]CommunicateWithHost err = 0 [20:32:44]CheckOFDResponse [20:32:44]1017 (14) - 77093643461234 [20:32:44]1041 (16) - 0000000000875000 [20:32:44]1040 (4) - 50337 [20:32:44]1012 (4) - 23.10.2024 14:32 [20:32:44]1206 (1) - 0 [20:32:44]OFD Sender: Remove packet 50337 [20:32:44]ProducePacketName [20:32:44]name=ofd_packets/00050337 [20:32:44]NVStorageDeleteData [20:32:44]Write to MH i2c: 01 00 00 13 19 2C [20:32:44]Write i2c OK [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: 01 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: 01 07 00 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: 01 07 00 13 19 00 00 00 00 00 1E 0D 5E [20:32:44]RasterBufferAndPrint [20:32:44]line [20:32:44]line [20:32:44]line [20:32:44]line [20:32:44]line [20:32:44]written 0, free lines is 3364 [20:32:44]process_action close_receipt done [20:32:44]requested_data is exist [20:32:44]produce_requested_data [20:32:44]requested_item fm.sn is exist - process it [20:32:44]wFMCommunicate request_size=4 [20:32:44]MH_SAM_APDU [20:32:44]CAPDU: 80 11 00 00 [20:32:44]Write to MH i2c: E2 08 00 1A 19 80 11 00 00 00 00 00 00 AD [20:32:44]Write i2c OK [20:32:44]MH_I2C_Read... [20:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:44]Read from MH i2c: E2 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 17 00 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 17 00 1A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F4 [20:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:32:44]wFMCommunicate OK [20:32:44]requested_item fd.num is exist - process it [20:32:44]SAM_PROTO_GetFieldsCounters [20:32:44]wFMCommunicate request_size=4 [20:32:44]MH_SAM_APDU [20:32:44]CAPDU: 80 13 00 00 [20:32:44]Write to MH i2c: E2 08 00 1B 19 80 13 00 00 00 00 00 00 B0 [20:32:44]Write i2c OK [20:32:44]MH_I2C_Read... [20:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:44]Read from MH i2c: E2 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 62 00 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 62 00 1B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A1 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [20:32:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A1 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:44]wFMCommunicate OK [20:32:44]SAM_PROTO_GetFieldsCounters done [20:32:44]requested_item shift.num is exist - process it [20:32:44]requested_item shift.opened is exist - process it [20:32:44]req_shift_opened [20:32:44]FM_GetShiftState [20:32:44]SAM_PROTO_GetShiftState [20:32:44]wFMCommunicate request_size=4 [20:32:44]MH_SAM_APDU [20:32:44]CAPDU: 80 13 01 00 [20:32:44]Write to MH i2c: E2 08 00 1C 19 80 13 01 00 00 00 00 00 B2 [20:32:44]Write i2c OK [20:32:44]MH_I2C_Read... [20:32:44]OFD Sender: No OFD packet to send [20:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:44]Read from MH i2c: E2 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 0E 00 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 0E 00 1C 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 FE [20:32:44]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:32:44]wFMCommunicate OK [20:32:44]SAM_PROTO_GetShiftState done [20:32:44]FM_GetShiftState done [20:32:44]req_shift_opened done [20:32:44]requested_item shift.open_date is exist - process it [20:32:44]req_shift_open_date [20:32:44]req_shift_open_date done [20:32:44]produce_requested_data done [20:32:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50337,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [20:32:44]process_action_free close_receipt [20:32:44]json_value_free [20:32:44]json_value_free done [20:32:44]process_json_proto returns [20:32:44]Send response to host [20:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50337,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [20:32:44]free response buf [20:32:44]execute_script done [20:32:44]execute_script returns [20:32:44]free content buf [20:32:44]Sock 9.Close socket [20:32:44]Sock 9.Thread stoped [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:07]accept exits with 7 [20:46:07]New connection [20:46:07]New thread 3067305316 created [20:46:07]Thread 3067161956 joined [20:46:07]Waiting for new connection... [20:46:07] Sock 7.Parse request [20:46:07]Sock 7.Check first char [20:46:07]Sock 7.First char is OK [20:46:07]request: POST /json_proto HTTP/1.0 [20:46:07]Method: POST [20:46:07]URL: /json_proto [20:46:07]Method is POST - this is cgi request [20:46:07]url: /json_proto [20:46:07]query_string will be loaded in cgi processing [20:46:07]execute_cgi json_proto POST (null) [20:46:07]execute_cgi path=json_proto method=POST [20:46:07]POST find Content-Length [20:46:07]Host: 172.17.49.196:8080 [20:46:07]Content-Length: 626 [20:46:07]Content-Type: application/json [20:46:07] [20:46:07]POST finish read [20:46:07]Found Content-Length = 626 [20:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164246", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (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" ] } } [20:46:07]execute_script... [20:46: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)164246", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (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" ] } } [20:46:07]POST & json_proto [20:46:07]process_json_proto [20:46:07]json parsed OK: [20:46:07]protocol is kg_v1.0 [20:46:07]action value=close_receipt [20:46:07]process_action close_receipt [20:46:07]cmd_close_receipt [20:46:07]MH_GetDate [20:46:07]Write to MH i2c: F0 00 00 1D 19 25 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 09 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 09 00 1D 19 00 94 60 19 67 BD 3B 11 67 12 [20:46:07]GetLastDocTimeStamp 1729715566 [20:46:07]current date 1729716372 [20:46:07]FM_GetShiftState [20:46:07]SAM_PROTO_GetShiftState [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 13 01 00 [20:46:07]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 00 [20:46:07]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_GetShiftState done [20:46:07]FM_GetShiftState done [20:46:07]opened in 1729642370 [20:46:07]opened+sec_in_day 1729728770 [20:46:07]quantity*price = 11500 [20:46:07]sum+1 = 11501 [20:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 83 23.10.2024 20:46 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50338 ФПД: 25018689151162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204612&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50338&fm=25018689151162&tin=02508201610067®Number=0000000000097022&sum=11500 0 [20:46:08]StoreToDocumentArchive [20:46:08]shift 491 fd 50338 [20:46:08]save to /storage/0491/doc_00050338 [20:46:08]save last doc name /storage/0491/doc_00050338 to /storage/kkm_last_doc_name [20:46:08]save OK [20:46:08]Clear old archive folders... [20:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:46:08]tlvbuf is B6FABA10 [20:46:08]SAM_PROTO_ClearQueue [20:46:08]wFMCommunicate request_size=4 [20:46:08]MH_SAM_APDU [20:46:08]CAPDU: 80 09 00 00 [20:46:08]Write to MH i2c: E2 08 00 2B 19 80 09 00 00 00 00 00 00 B6 [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]SAM_PROTO_ClearQueue done [20:46:09]KKMCreateOFDPacket [20:46:09]OFDProtocolAddRootSTLVToBuf [20:46:09]FM_MakeSignedData [20:46:09]FM_MakeSignedData [20:46:09]SAM_PROTO_SignData [20:46:09]wFMCommunicate request_size=4 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 01 02 [20:46:09]Write to MH i2c: E2 08 00 2C 19 80 0D 01 02 00 00 00 00 BE [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=255 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 53 00 00 00 F4 03 04 00 94 60 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [20:46:09]Write to MH i2c: E2 02 01 2D 19 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 53 00 00 00 F4 03 04 00 94 60 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 08 [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=33 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C4 00 00 35 04 06 00 16 C1 1E 14 60 BA [20:46:09]Write to MH i2c: E2 24 00 2E 19 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C4 00 00 35 04 06 00 16 C1 1E 14 60 BA 00 00 CD [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=4 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 03 02 [20:46:09]Write to MH i2c: E2 08 00 2F 19 80 0D 03 02 00 00 00 00 C3 [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 0B 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 0B 00 2F 19 00 00 D3 C0 36 A7 93 BE 94 90 00 19 [20:46:09]RAPDU: 00 D3 C0 36 A7 93 BE 94 90 00 [20:46:09]wFMCommunicate OK [20:46:09]SAM_PROTO_SignData done [20:46:09]FM_MakeSignedData done [20:46:09]CreateOFDProtocolMessage [20:46:09]wFMCommunicate request_size=4 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 11 00 00 [20:46:09]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 17 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 17 00 30 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0A [20:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:46:09]wFMCommunicate OK [20:46:09]CreateOFDProtocolMessage done [20:46:09]OFDSenderStorePacket 50338 [20:46:09]StoreOFDPacket docnum=50338 [20:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 7C A5 1E 01 7C 97 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 53 00 00 00 F4 03 04 00 94 60 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C4 00 00 35 04 06 00 16 C1 1E 14 60 BA 00 D3 C0 36 A7 93 BE 94 [20:46:09]CheckFolder [20:46:09]dirname=/storage/ofd_packets [20:46:09]CheckFolder done [20:46:09]ProducePacketName [20:46:09]name=ofd_packets/00050338 [20:46:09]NVStorageSaveData ofd_packets/00050338 [20:46:09]File name is /storage/ofd_packets/00050338 [20:46:09]Write 324 bytes [20:46:09]NVStorageSaveData done [20:46:09]OFDSenderStorePacket done [20:46:09]KKMCreateOFDPacket done [20:46:09]NVStorageSaveData kkm_last_timestamp [20:46:09]File name is /storage/kkm_last_timestamp [20:46:09]Write 4 bytes [20:46:09]NVStorageSaveData done [20:46:09]ExternCall_PrintAddStr [20:46:09]wPrintStart [20:46:09]Write to MH i2c: 01 00 00 31 19 4A [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 07 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [20:46:09]RasterBufferAndPrint [20:46:09]line Счет N : (3)164246 [20:46:09]line ИНН: 02508201610067 [20:46:09]line Контрольно-Кассовый Чек [20:46:09]line ПРОДАЖА [20:46:09]line Товар: 2000036240010 [20:46:09]line Кофе Латте (GABB TRADE) [20:46:09]line 1.000 * 115.00 [20:46:09]line = 115.00 [20:46:09]line НДС 12% НСП 1% [20:46:09]line > о реализуемом товаре [20:46:09]line ИТОГО: 115.00 [20:46:09]line НСП 1% : 1.02 [20:46:09]line НДС 12% : 12.21 [20:46:09]line Наличными: 115.00 [20:46:09]line Безнал.: 0.00 [20:46:09]line Место: АЗС № 80 "Партнер Нефть" [20:46:09]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:46:09]line СНО: Общий режим [20:46:09]line Чек 83 23.10.2024 20:46 [20:46:09]line Смена: 491 ФФД: 1.0 [20:46:09]line ЗНМ: 0300000090 [20:46:09]line РНМ: 0000000000097022 [20:46:09]line Версия ККМ: 001 [20:46:09]line ФМ: 0000000000875000 [20:46:09]line ФД: 50338 [20:46:09]line ФПД: 25018689151162 [20:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204612&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50338&fm=25018689151162&tin=02508201610067®Number=0000000000097022&sum=11500 [20:46:09]OFD Sender: Processing packet 50338 [packets to send 7, broken 6] [20:46:09]ProducePacketName [20:46:09]name=ofd_packets/00050338 [20:46:09]OFD Sender: To server: pG, [20:46:09]CommunicateWithHost lk.salyk.kg:30040 [20:46:09]ConnectInit lk.salyk.kg [20:46:09]line 0 [20:46:09]written 0, free lines is 4095 [20:46:09]Connected sock=11 [20:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 7C A5 1E 01 7C 97 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 53 00 00 00 F4 03 04 00 94 60 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C4 00 00 35 04 06 00 16 C1 1E 14 60 BA 00 D3 C0 36 A7 93 BE 94 [20:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 60 50 47 00 FB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C4 00 00 F4 03 04 00 2A 0C 19 67 B6 04 01 00 00 84 1C EC 3D CD 8F 5B D9 [20:46:10]CommunicateWithHost err = 0 [20:46:10]CheckOFDResponse [20:46:10]1017 (14) - 77093643461234 [20:46:10]1041 (16) - 0000000000875000 [20:46:10]1040 (4) - 50338 [20:46:10]1012 (4) - 23.10.2024 14:46 [20:46:10]1206 (1) - 0 [20:46:10]OFD Sender: Remove packet 50338 [20:46:10]ProducePacketName [20:46:10]name=ofd_packets/00050338 [20:46:10]NVStorageDeleteData [20:46:10]Write to MH i2c: 01 00 00 59 19 72 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 07 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 19 0D 9F [20:46:10]RasterBufferAndPrint [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]written 0, free lines is 3359 [20:46:10]process_action close_receipt done [20:46:10]requested_data is exist [20:46:10]produce_requested_data [20:46:10]requested_item fm.sn is exist - process it [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 11 00 00 [20:46:10]Write to MH i2c: E2 08 00 60 19 80 11 00 00 00 00 00 00 F3 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 17 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 17 00 60 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3A [20:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:46:10]wFMCommunicate OK [20:46:10]requested_item fd.num is exist - process it [20:46:10]SAM_PROTO_GetFieldsCounters [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 13 00 00 [20:46:10]Write to MH i2c: E2 08 00 61 19 80 13 00 00 00 00 00 00 F6 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 62 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 62 00 61 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A2 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [20:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A2 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:10]wFMCommunicate OK [20:46:10]SAM_PROTO_GetFieldsCounters done [20:46:10]requested_item shift.num is exist - process it [20:46:10]requested_item shift.opened is exist - process it [20:46:10]req_shift_opened [20:46:10]FM_GetShiftState [20:46:10]SAM_PROTO_GetShiftState [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 13 01 00 [20:46:10]Write to MH i2c: E2 08 00 62 19 80 13 01 00 00 00 00 00 F8 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 0E 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 0E 00 62 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 44 [20:46:10]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [20:46:10]wFMCommunicate OK [20:46:10]SAM_PROTO_GetShiftState done [20:46:10]FM_GetShiftState done [20:46:10]req_shift_opened done [20:46:10]requested_item shift.open_date is exist - process it [20:46:10]req_shift_open_date [20:46:10]req_shift_open_date done [20:46:10]produce_requested_data done [20:46:10]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50338,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [20:46:10]process_action_free close_receipt [20:46:10]json_value_free [20:46:10]json_value_free done [20:46:10]process_json_proto returns [20:46:10]Send response to host [20:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50338,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [20:46:10]free response buf [20:46:10]execute_script done [20:46:10]execute_script returns [20:46:10]free content buf [20:46:10]Sock 7.Close socket [20:46:10]Sock 7.Thread stoped [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:00]accept exits with 9 [21:11:00]New connection [21:11:00]New thread 3067161956 created [21:11:00]Thread 3067305316 joined [21:11:00]Waiting for new connection... [21:11:00] Sock 9.Parse request [21:11:00]Sock 9.Check first char [21:11:00]Sock 9.First char is OK [21:11:00]request: POST /json_proto HTTP/1.0 [21:11:00]Method: POST [21:11:00]URL: /json_proto [21:11:00]Method is POST - this is cgi request [21:11:00]url: /json_proto [21:11:00]query_string will be loaded in cgi processing [21:11:00]execute_cgi json_proto POST (null) [21:11:00]execute_cgi path=json_proto method=POST [21:11:00]POST find Content-Length [21:11:00]Host: 172.17.49.196:8080 [21:11:00]Content-Length: 755 [21:11:00]Content-Type: application/json [21:11:00] [21:11:00]POST finish read [21:11:00]Found Content-Length = 755 [21:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164247", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:00]execute_script... [21:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164247", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:00]POST & json_proto [21:11:00]process_json_proto [21:11:00]json parsed OK: [21:11:00]protocol is kg_v1.0 [21:11:00]action value=close_receipt [21:11:00]process_action close_receipt [21:11:00]cmd_close_receipt [21:11:00]MH_GetDate [21:11:00]Write to MH i2c: F0 00 00 63 19 6B [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: F0 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: F0 09 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: F0 09 00 63 19 00 69 66 19 67 BD 3B 11 67 33 [21:11:00]GetLastDocTimeStamp 1729716372 [21:11:00]current date 1729717865 [21:11:00]FM_GetShiftState [21:11:00]SAM_PROTO_GetShiftState [21:11:00]wFMCommunicate request_size=4 [21:11:00]MH_SAM_APDU [21:11:00]CAPDU: 80 13 01 00 [21:11:00]Write to MH i2c: E2 08 00 64 19 80 13 01 00 00 00 00 00 FA [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:00]Read from MH i2c: E2 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 0E 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: E2 0E 00 64 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 46 [21:11:00]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:11:00]wFMCommunicate OK [21:11:00]SAM_PROTO_GetShiftState done [21:11:00]FM_GetShiftState done [21:11:00]opened in 1729642370 [21:11:00]opened+sec_in_day 1729728770 [21:11:00]quantity*price = 26000 [21:11:00]sum+1 = 26001 [21:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 84 23.10.2024 21:11 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50339 ФПД: 235544603236111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211105&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50339&fm=235544603236111&tin=02508201610067®Number=0000000000097022&sum=26000 0 [21:11:01]StoreToDocumentArchive [21:11:01]shift 491 fd 50339 [21:11:01]save to /storage/0491/doc_00050339 [21:11:01]save last doc name /storage/0491/doc_00050339 to /storage/kkm_last_doc_name [21:11:01]save OK [21:11:01]Clear old archive folders... [21:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:11:01]tlvbuf is 00236710 [21:11:01]SAM_PROTO_ClearQueue [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 09 00 00 [21:11:01]Write to MH i2c: E2 08 00 71 19 80 09 00 00 00 00 00 00 FC [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:01]Read from MH i2c: E2 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 03 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [21:11:01]RAPDU: 90 00 [21:11:01]wFMCommunicate OK [21:11:01]SAM_PROTO_ClearQueue done [21:11:01]KKMCreateOFDPacket [21:11:01]OFDProtocolAddRootSTLVToBuf [21:11:01]FM_MakeSignedData [21:11:01]FM_MakeSignedData [21:11:01]SAM_PROTO_SignData [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 0D 01 02 [21:11:01]Write to MH i2c: E2 08 00 72 19 80 0D 01 02 00 00 00 00 04 [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [21:11:02]RAPDU: 90 00 [21:11:02]wFMCommunicate OK [21:11:02]wFMCommunicate request_size=255 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 69 66 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [21:11:02]Write to MH i2c: E2 02 01 73 19 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 69 66 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 63 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [21:11:02]RAPDU: 90 00 [21:11:02]wFMCommunicate OK [21:11:02]wFMCommunicate request_size=35 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C4 00 00 35 04 06 00 D6 3A 00 67 97 0F [21:11:02]Write to MH i2c: E2 26 00 74 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C4 00 00 35 04 06 00 D6 3A 00 67 97 0F 00 00 72 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 74 19 00 90 00 01 [21:11:02]RAPDU: 90 00 [21:11:02]wFMCommunicate OK [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 0D 03 02 [21:11:02]Write to MH i2c: E2 08 00 75 19 80 0D 03 02 00 00 00 00 09 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0B 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 0B 00 75 19 00 31 07 E4 BD EE E4 7E 9D 90 00 D0 [21:11:02]RAPDU: 31 07 E4 BD EE E4 7E 9D 90 00 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_SignData done [21:11:02]FM_MakeSignedData done [21:11:02]CreateOFDProtocolMessage [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 11 00 00 [21:11:02]Write to MH i2c: E2 08 00 76 19 80 11 00 00 00 00 00 00 09 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 17 00 76 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 50 [21:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:11:02]wFMCommunicate OK [21:11:02]CreateOFDProtocolMessage done [21:11:02]OFDSenderStorePacket 50339 [21:11:02]StoreOFDPacket docnum=50339 [21:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 7C B6 20 01 76 E6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 69 66 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C4 00 00 35 04 06 00 D6 3A 00 67 97 0F 31 07 E4 BD EE E4 7E 9D [21:11:02]CheckFolder [21:11:02]dirname=/storage/ofd_packets [21:11:02]CheckFolder done [21:11:02]ProducePacketName [21:11:02]name=ofd_packets/00050339 [21:11:02]NVStorageSaveData ofd_packets/00050339 [21:11:02]File name is /storage/ofd_packets/00050339 [21:11:02]Write 326 bytes [21:11:02]NVStorageSaveData done [21:11:02]OFDSenderStorePacket done [21:11:02]KKMCreateOFDPacket done [21:11:02]NVStorageSaveData kkm_last_timestamp [21:11:02]File name is /storage/kkm_last_timestamp [21:11:02]Write 4 bytes [21:11:02]NVStorageSaveData done [21:11:02]ExternCall_PrintAddStr [21:11:02]wPrintStart [21:11:02]Write to MH i2c: 01 00 00 77 19 90 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: 01 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: 01 07 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: 01 07 00 77 19 00 00 00 00 00 FF 0F A5 [21:11:02]RasterBufferAndPrint [21:11:02]line Счет N : (3)164247 [21:11:02]line ИНН: 02508201610067 [21:11:02]line Контрольно-Кассовый Чек [21:11:02]line ПРОДАЖА [21:11:02]line Товар: 2000036230011 [21:11:02]line Кофе Латте XL(GABB TRADE) [21:11:02]line 2.000 * 130.00 [21:11:02]line = 260.00 [21:11:02]line НДС 12% НСП 1% [21:11:02]line > о реализуемом товаре [21:11:02]line ИТОГО: 260.00 [21:11:02]line НСП 1% : 2.30 [21:11:02]line НДС 12% : 27.61 [21:11:02]line Наличными: 0.00 [21:11:02]line Безнал.: 260.00 [21:11:02]line Место: АЗС № 80 "Партнер Нефть" [21:11:02]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:11:02]line СНО: Общий режим [21:11:02]line Чек 84 23.10.2024 21:11 [21:11:02]line Смена: 491 ФФД: 1.0 [21:11:02]line ЗНМ: 0300000090 [21:11:02]line РНМ: 0000000000097022 [21:11:02]line Версия ККМ: 001 [21:11:02]line Платежная система: Mbank [21:11:02]line ФМ: 0000000000875000 [21:11:02]line ФД: 50339 [21:11:02]line ФПД: 235544603236111 [21:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211105&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50339&fm=235544603236111&tin=02508201610067®Number=0000000000097022&sum=26000 [21:11:02]OFD Sender: Processing packet 50339 [packets to send 7, broken 6] [21:11:02]ProducePacketName [21:11:02]name=ofd_packets/00050339 [21:11:02]OFD Sender: To server: pG, [21:11:02]CommunicateWithHost lk.salyk.kg:30040 [21:11:02]ConnectInit lk.salyk.kg [21:11:02]line 0 [21:11:02]written 0, free lines is 4095 [21:11:02]Connected sock=10 [21:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 7C B6 20 01 76 E6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 69 66 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C4 00 00 35 04 06 00 D6 3A 00 67 97 0F 31 07 E4 BD EE E4 7E 9D [21:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 5C A6 47 00 65 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C4 00 00 F4 03 04 00 FF 11 19 67 B6 04 01 00 00 CB 60 86 83 80 29 95 A3 [21:11:03]CommunicateWithHost err = 0 [21:11:03]CheckOFDResponse [21:11:03]1017 (14) - 77093643461234 [21:11:03]1041 (16) - 0000000000875000 [21:11:03]1040 (4) - 50339 [21:11:03]1012 (4) - 23.10.2024 15:10 [21:11:03]1206 (1) - 0 [21:11:03]OFD Sender: Remove packet 50339 [21:11:03]ProducePacketName [21:11:03]name=ofd_packets/00050339 [21:11:03]NVStorageDeleteData [21:11:03]Write to MH i2c: 01 00 00 A0 19 B9 [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 25 0D F2 [21:11:03]RasterBufferAndPrint [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]written 0, free lines is 3374 [21:11:03]process_action close_receipt done [21:11:03]requested_data is exist [21:11:03]produce_requested_data [21:11:03]requested_item fm.sn is exist - process it [21:11:03]wFMCommunicate request_size=4 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 11 00 00 [21:11:03]Write to MH i2c: E2 08 00 A7 19 80 11 00 00 00 00 00 00 3A [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 17 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 17 00 A7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 81 [21:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:11:03]wFMCommunicate OK [21:11:03]requested_item fd.num is exist - process it [21:11:03]SAM_PROTO_GetFieldsCounters [21:11:03]wFMCommunicate request_size=4 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 13 00 00 [21:11:03]Write to MH i2c: E2 08 00 A8 19 80 13 00 00 00 00 00 00 3D [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 62 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 62 00 A8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A3 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [21:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A3 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:03]wFMCommunicate OK [21:11:03]SAM_PROTO_GetFieldsCounters done [21:11:03]requested_item shift.num is exist - process it [21:11:03]requested_item shift.opened is exist - process it [21:11:03]req_shift_opened [21:11:03]FM_GetShiftState [21:11:03]SAM_PROTO_GetShiftState [21:11:03]wFMCommunicate request_size=4 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 13 01 00 [21:11:03]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 0E 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8B [21:11:03]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:11:03]wFMCommunicate OK [21:11:03]SAM_PROTO_GetShiftState done [21:11:03]FM_GetShiftState done [21:11:03]req_shift_opened done [21:11:03]requested_item shift.open_date is exist - process it [21:11:03]req_shift_open_date [21:11:03]req_shift_open_date done [21:11:03]produce_requested_data done [21:11:03]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50339,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:11:03]process_action_free close_receipt [21:11:03]json_value_free [21:11:03]json_value_free done [21:11:03]process_json_proto returns [21:11:03]Send response to host [21:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50339,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:11:03]free response buf [21:11:03]execute_script done [21:11:03]execute_script returns [21:11:03]free content buf [21:11:03]Sock 9.Close socket [21:11:03]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:53]accept exits with 7 [21:26:53]New connection [21:26:53]New thread 3067305316 created [21:26:53]Thread 3067161956 joined [21:26:53]Waiting for new connection... [21:26:53] Sock 7.Parse request [21:26:53]Sock 7.Check first char [21:26:53]Sock 7.First char is OK [21:26:53]request: POST /json_proto HTTP/1.0 [21:26:53]Method: POST [21:26:53]URL: /json_proto [21:26:53]Method is POST - this is cgi request [21:26:53]url: /json_proto [21:26:53]query_string will be loaded in cgi processing [21:26:53]execute_cgi json_proto POST (null) [21:26:53]execute_cgi path=json_proto method=POST [21:26:53]POST find Content-Length [21:26:53]Host: 172.17.49.196:8080 [21:26:53]Content-Length: 624 [21:26:53]Content-Type: application/json [21:26:53] [21:26:53]POST finish read [21:26:53]Found Content-Length = 624 [21:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164249", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:53]execute_script... [21:26: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)164249", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:53]POST & json_proto [21:26:53]process_json_proto [21:26:53]json parsed OK: [21:26:53]protocol is kg_v1.0 [21:26:53]action value=close_receipt [21:26:53]process_action close_receipt [21:26:53]cmd_close_receipt [21:26:53]MH_GetDate [21:26:53]Write to MH i2c: F0 00 00 AA 19 B2 [21:26:53]Write i2c OK [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: F0 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: F0 09 00 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: F0 09 00 AA 19 00 22 6A 19 67 BD 3B 11 67 37 [21:26:53]GetLastDocTimeStamp 1729717865 [21:26:53]current date 1729718818 [21:26:53]FM_GetShiftState [21:26:53]SAM_PROTO_GetShiftState [21:26:53]wFMCommunicate request_size=4 [21:26:53]MH_SAM_APDU [21:26:53]CAPDU: 80 13 01 00 [21:26:53]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [21:26:53]Write i2c OK [21:26:53]MH_I2C_Read... [21:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:53]Read from MH i2c: E2 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: E2 0E 00 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8D [21:26:53]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:26:53]wFMCommunicate OK [21:26:53]SAM_PROTO_GetShiftState done [21:26:53]FM_GetShiftState done [21:26:53]opened in 1729642370 [21:26:53]opened+sec_in_day 1729728770 [21:26:53]quantity*price = 14700 [21:26:53]sum+1 = 14701 [21:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 85 23.10.2024 21:26 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50340 ФПД: 223575478097836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212658&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50340&fm=223575478097836&tin=02508201610067®Number=0000000000097022&sum=14700 0 [21:26:54]StoreToDocumentArchive [21:26:54]shift 491 fd 50340 [21:26:54]save to /storage/0491/doc_00050340 [21:26:54]save last doc name /storage/0491/doc_00050340 to /storage/kkm_last_doc_name [21:26:54]save OK [21:26:54]Clear old archive folders... [21:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:26:54]tlvbuf is 0013A860 [21:26:54]SAM_PROTO_ClearQueue [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 09 00 00 [21:26:54]Write to MH i2c: E2 08 00 B8 19 80 09 00 00 00 00 00 00 43 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]SAM_PROTO_ClearQueue done [21:26:54]KKMCreateOFDPacket [21:26:54]OFDProtocolAddRootSTLVToBuf [21:26:54]FM_MakeSignedData [21:26:54]FM_MakeSignedData [21:26:54]SAM_PROTO_SignData [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 01 02 [21:26:54]Write to MH i2c: E2 08 00 B9 19 80 0D 01 02 00 00 00 00 4B [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [21:26:54]RAPDU: 90 00 [21:26:54]wFMCommunicate OK [21:26:54]wFMCommunicate request_size=255 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 22 6A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [21:26:54]Write to MH i2c: E2 02 01 BA 19 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 22 6A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 59 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [21:26:55]RAPDU: 90 00 [21:26:55]wFMCommunicate OK [21:26:55]wFMCommunicate request_size=35 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C4 00 00 35 04 06 00 CB 57 38 F3 D7 AC [21:26:55]Write to MH i2c: E2 26 00 BB 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C4 00 00 35 04 06 00 CB 57 38 F3 D7 AC 00 00 6D [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [21:26:55]RAPDU: 90 00 [21:26:55]wFMCommunicate OK [21:26:55]wFMCommunicate request_size=4 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 0D 03 02 [21:26:55]Write to MH i2c: E2 08 00 BC 19 80 0D 03 02 00 00 00 00 50 [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 0B 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 0B 00 BC 19 00 33 5F EA FB 09 95 9B 12 90 00 13 [21:26:55]RAPDU: 33 5F EA FB 09 95 9B 12 90 00 [21:26:55]wFMCommunicate OK [21:26:55]SAM_PROTO_SignData done [21:26:55]FM_MakeSignedData done [21:26:55]CreateOFDProtocolMessage [21:26:55]wFMCommunicate request_size=4 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 11 00 00 [21:26:55]Write to MH i2c: E2 08 00 BD 19 80 11 00 00 00 00 00 00 50 [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 17 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 17 00 BD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 97 [21:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:26:55]wFMCommunicate OK [21:26:55]CreateOFDProtocolMessage done [21:26:55]OFDSenderStorePacket 50340 [21:26:55]StoreOFDPacket docnum=50340 [21:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 E8 56 20 01 35 23 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 22 6A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C4 00 00 35 04 06 00 CB 57 38 F3 D7 AC 33 5F EA FB 09 95 9B 12 [21:26:55]CheckFolder [21:26:55]dirname=/storage/ofd_packets [21:26:55]CheckFolder done [21:26:55]ProducePacketName [21:26:55]name=ofd_packets/00050340 [21:26:55]NVStorageSaveData ofd_packets/00050340 [21:26:55]File name is /storage/ofd_packets/00050340 [21:26:55]Write 326 bytes [21:26:55]NVStorageSaveData done [21:26:55]OFDSenderStorePacket done [21:26:55]KKMCreateOFDPacket done [21:26:55]NVStorageSaveData kkm_last_timestamp [21:26:55]File name is /storage/kkm_last_timestamp [21:26:55]Write 4 bytes [21:26:55]NVStorageSaveData done [21:26:55]ExternCall_PrintAddStr [21:26:55]wPrintStart [21:26:55]Write to MH i2c: 01 00 00 BE 19 D7 [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 07 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: 01 07 00 BE 19 00 00 00 00 00 FF 0F EC [21:26:55]RasterBufferAndPrint [21:26:55]line Счет N : (3)164249 [21:26:55]line ИНН: 02508201610067 [21:26:55]line Контрольно-Кассовый Чек [21:26:55]line ПРОДАЖА [21:26:55]line Товар: 48744683 [21:26:55]line Сигареты Winston XStyle Caster+ [21:26:55]line 1.000 * 147.00 [21:26:55]line = 147.00 [21:26:55]line НДС 12% НСП 1% [21:26:55]line > о реализуемом товаре [21:26:55]line ИТОГО: 147.00 [21:26:55]line НСП 1% : 1.30 [21:26:55]line НДС 12% : 15.61 [21:26:55]line Наличными: 147.00 [21:26:55]line Безнал.: 0.00 [21:26:55]line Место: АЗС № 80 "Партнер Нефть" [21:26:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:26:55]line СНО: Общий режим [21:26:55]line Чек 85 23.10.2024 21:26 [21:26:55]line Смена: 491 ФФД: 1.0 [21:26:55]line ЗНМ: 0300000090 [21:26:55]line РНМ: 0000000000097022 [21:26:55]line Версия ККМ: 001 [21:26:55]line ФМ: 0000000000875000 [21:26:55]line ФД: 50340 [21:26:55]line ФПД: 223575478097836 [21:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212658&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50340&fm=223575478097836&tin=02508201610067®Number=0000000000097022&sum=14700 [21:26:55]line 0 [21:26:55]OFD Sender: Processing packet 50340 [packets to send 7, broken 6] [21:26:55]ProducePacketName [21:26:55]name=ofd_packets/00050340 [21:26:55]OFD Sender: To server: pG, [21:26:55]CommunicateWithHost lk.salyk.kg:30040 [21:26:55]ConnectInit lk.salyk.kg [21:26:55]written 0, free lines is 4095 [21:26:55]Connected sock=10 [21:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 E8 56 20 01 35 23 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 22 6A 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C4 00 00 35 04 06 00 CB 57 38 F3 D7 AC 33 5F EA FB 09 95 9B 12 [21:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 18 4E 47 00 71 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C4 00 00 F4 03 04 00 B8 15 19 67 B6 04 01 00 00 46 E3 E9 1D 55 6B 00 B1 [21:26:56]CommunicateWithHost err = 0 [21:26:56]CheckOFDResponse [21:26:56]1017 (14) - 77093643461234 [21:26:56]1041 (16) - 0000000000875000 [21:26:56]1040 (4) - 50340 [21:26:56]1012 (4) - 23.10.2024 15:26 [21:26:56]1206 (1) - 0 [21:26:56]OFD Sender: Remove packet 50340 [21:26:56]ProducePacketName [21:26:56]name=ofd_packets/00050340 [21:26:56]NVStorageDeleteData [21:26:56]Write to MH i2c: 01 00 00 E7 19 00 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 F5 0C 08 [21:26:56]RasterBufferAndPrint [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]written 0, free lines is 3326 [21:26:56]process_action close_receipt done [21:26:56]requested_data is exist [21:26:56]produce_requested_data [21:26:56]requested_item fm.sn is exist - process it [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 11 00 00 [21:26:56]Write to MH i2c: E2 08 00 EE 19 80 11 00 00 00 00 00 00 81 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 EE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C8 [21:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:26:56]wFMCommunicate OK [21:26:56]requested_item fd.num is exist - process it [21:26:56]SAM_PROTO_GetFieldsCounters [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 13 00 00 [21:26:56]Write to MH i2c: E2 08 00 EF 19 80 13 00 00 00 00 00 00 84 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 62 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 62 00 EF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A4 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [21:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A4 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:56]wFMCommunicate OK [21:26:56]SAM_PROTO_GetFieldsCounters done [21:26:56]requested_item shift.num is exist - process it [21:26:56]requested_item shift.opened is exist - process it [21:26:56]req_shift_opened [21:26:56]FM_GetShiftState [21:26:56]SAM_PROTO_GetShiftState [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 13 01 00 [21:26:56]Write to MH i2c: E2 08 00 F0 19 80 13 01 00 00 00 00 00 86 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0E 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0E 00 F0 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D2 [21:26:56]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:26:56]wFMCommunicate OK [21:26:56]SAM_PROTO_GetShiftState done [21:26:56]FM_GetShiftState done [21:26:56]req_shift_opened done [21:26:56]requested_item shift.open_date is exist - process it [21:26:56]req_shift_open_date [21:26:56]req_shift_open_date done [21:26:56]produce_requested_data done [21:26:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50340,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:26:56]process_action_free close_receipt [21:26:56]json_value_free [21:26:56]json_value_free done [21:26:56]process_json_proto returns [21:26:56]Send response to host [21:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50340,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:26:56]free response buf [21:26:56]execute_script done [21:26:56]execute_script returns [21:26:56]free content buf [21:26:56]Sock 7.Close socket [21:26:56]Sock 7.Thread stoped [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:07]accept exits with 9 [21:37:07]New connection [21:37:07]New thread 3067161956 created [21:37:07]Thread 3067305316 joined [21:37:07]Waiting for new connection... [21:37:07] Sock 9.Parse request [21:37:07]Sock 9.Check first char [21:37:07]Sock 9.First char is OK [21:37:07]request: POST /json_proto HTTP/1.0 [21:37:07]Method: POST [21:37:07]URL: /json_proto [21:37:07]Method is POST - this is cgi request [21:37:07]url: /json_proto [21:37:07]query_string will be loaded in cgi processing [21:37:07]execute_cgi json_proto POST (null) [21:37:07]execute_cgi path=json_proto method=POST [21:37:07]POST find Content-Length [21:37:07]Host: 172.17.49.196:8080 [21:37:07]Content-Length: 650 [21:37:07]Content-Type: application/json [21:37:07] [21:37:07]POST finish read [21:37:07]Found Content-Length = 650 [21:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164250", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "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" ] } } [21:37:07]execute_script... [21:37: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)164250", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "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" ] } } [21:37:07]POST & json_proto [21:37:07]process_json_proto [21:37:07]json parsed OK: [21:37:07]protocol is kg_v1.0 [21:37:07]action value=close_receipt [21:37:07]process_action close_receipt [21:37:07]cmd_close_receipt [21:37:07]MH_GetDate [21:37:07]Write to MH i2c: F0 00 00 F1 19 F9 [21:37:07]Write i2c OK [21:37:07]MH_I2C_Read... [21:37:07]Read from MH i2c: F0 [21:37:07]MH_I2C_Read... [21:37:07]Read from MH i2c: F0 09 00 [21:37:07]MH_I2C_Read... [21:37:07]Read from MH i2c: F0 09 00 F1 19 00 88 6C 19 67 BD 3B 11 67 E6 [21:37:07]GetLastDocTimeStamp 1729718818 [21:37:07]current date 1729719432 [21:37:07]FM_GetShiftState [21:37:07]SAM_PROTO_GetShiftState [21:37:07]wFMCommunicate request_size=4 [21:37:07]MH_SAM_APDU [21:37:07]CAPDU: 80 13 01 00 [21:37:07]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [21:37:07]Write i2c OK [21:37:07]MH_I2C_Read... [21:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:07]Read from MH i2c: E2 [21:37:07]MH_I2C_Read... [21:37:07]Read from MH i2c: E2 0E 00 [21:37:07]MH_I2C_Read... [21:37:07]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D4 [21:37:07]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:37:07]wFMCommunicate OK [21:37:07]SAM_PROTO_GetShiftState done [21:37:07]FM_GetShiftState done [21:37:07]opened in 1729642370 [21:37:07]opened+sec_in_day 1729728770 [21:37:07]quantity*price = 7500 [21:37:07]sum+1 = 7501 [21:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 86 23.10.2024 21:37 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50341 ФПД: 207353361024207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213712&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50341&fm=207353361024207&tin=02508201610067®Number=0000000000097022&sum=7500 0 [21:37:08]StoreToDocumentArchive [21:37:08]shift 491 fd 50341 [21:37:08]save to /storage/0491/doc_00050341 [21:37:08]save last doc name /storage/0491/doc_00050341 to /storage/kkm_last_doc_name [21:37:08]save OK [21:37:08]Clear old archive folders... [21:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=285 [21:37:08]tlvbuf is 00220AA0 [21:37:08]SAM_PROTO_ClearQueue [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 09 00 00 [21:37:08]Write to MH i2c: E2 08 00 FF 19 80 09 00 00 00 00 00 00 8A [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 FF 19 00 90 00 8C [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]SAM_PROTO_ClearQueue done [21:37:08]KKMCreateOFDPacket [21:37:08]OFDProtocolAddRootSTLVToBuf [21:37:08]FM_MakeSignedData [21:37:08]FM_MakeSignedData [21:37:08]SAM_PROTO_SignData [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 0D 01 02 [21:37:08]Write to MH i2c: E2 08 00 00 1A 80 0D 01 02 00 00 00 00 93 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]wFMCommunicate request_size=255 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 56 00 00 00 F4 03 04 00 88 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [21:37:08]Write to MH i2c: E2 02 01 01 1A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 56 00 00 00 F4 03 04 00 88 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 4C [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:09]Read from MH i2c: E2 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 03 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [21:37:09]RAPDU: 90 00 [21:37:09]wFMCommunicate OK [21:37:09]wFMCommunicate request_size=44 [21:37:09]MH_SAM_APDU [21:37:09]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C4 00 00 35 04 06 00 BC 96 37 6D 44 CF [21:37:09]Write to MH i2c: E2 2F 00 02 1A 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C4 00 00 35 04 06 00 BC 96 37 6D 44 CF 00 00 18 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:09]Read from MH i2c: E2 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 03 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [21:37:09]RAPDU: 90 00 [21:37:09]wFMCommunicate OK [21:37:09]wFMCommunicate request_size=4 [21:37:09]MH_SAM_APDU [21:37:09]CAPDU: 80 0D 03 02 [21:37:09]Write to MH i2c: E2 08 00 03 1A 80 0D 03 02 00 00 00 00 98 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:09]Read from MH i2c: E2 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 0B 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 0B 00 03 1A 00 4B 31 A6 73 48 AB 9E A4 90 00 63 [21:37:09]RAPDU: 4B 31 A6 73 48 AB 9E A4 90 00 [21:37:09]wFMCommunicate OK [21:37:09]SAM_PROTO_SignData done [21:37:09]FM_MakeSignedData done [21:37:09]CreateOFDProtocolMessage [21:37:09]wFMCommunicate request_size=4 [21:37:09]MH_SAM_APDU [21:37:09]CAPDU: 80 11 00 00 [21:37:09]Write to MH i2c: E2 08 00 04 1A 80 11 00 00 00 00 00 00 98 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:09]Read from MH i2c: E2 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 17 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: E2 17 00 04 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DF [21:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:37:09]wFMCommunicate OK [21:37:09]CreateOFDProtocolMessage done [21:37:09]OFDSenderStorePacket 50341 [21:37:09]StoreOFDPacket docnum=50341 [21:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 32 05 29 01 50 21 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 56 00 00 00 F4 03 04 00 88 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C4 00 00 35 04 06 00 BC 96 37 6D 44 CF 4B 31 A6 73 48 AB 9E A4 [21:37:09]CheckFolder [21:37:09]dirname=/storage/ofd_packets [21:37:09]CheckFolder done [21:37:09]ProducePacketName [21:37:09]name=ofd_packets/00050341 [21:37:09]NVStorageSaveData ofd_packets/00050341 [21:37:09]File name is /storage/ofd_packets/00050341 [21:37:09]Write 335 bytes [21:37:09]NVStorageSaveData done [21:37:09]OFDSenderStorePacket done [21:37:09]KKMCreateOFDPacket done [21:37:09]NVStorageSaveData kkm_last_timestamp [21:37:09]File name is /storage/kkm_last_timestamp [21:37:09]Write 4 bytes [21:37:09]NVStorageSaveData done [21:37:09]ExternCall_PrintAddStr [21:37:09]wPrintStart [21:37:09]Write to MH i2c: 01 00 00 05 1A 1F [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 05 1A 00 00 00 00 00 FF 0F 34 [21:37:09]RasterBufferAndPrint [21:37:09]line Счет N : (3)164250 [21:37:09]line ИНН: 02508201610067 [21:37:09]line Контрольно-Кассовый Чек [21:37:09]line ПРОДАЖА [21:37:09]line Товар: 4870112002775 [21:37:09]line Шок батончик ALBENI BITES 80гр [21:37:09]line 1.000 * 75.00 [21:37:09]line = 75.00 [21:37:09]line НДС 12% НСП 1% [21:37:09]line > о реализуемом товаре [21:37:09]line ИТОГО: 75.00 [21:37:09]line НСП 1% : 0.66 [21:37:09]line НДС 12% : 7.96 [21:37:09]line Наличными: 75.00 [21:37:09]line Безнал.: 0.00 [21:37:09]line Место: АЗС № 80 "Партнер Нефть" [21:37:09]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:37:09]line СНО: Общий режим [21:37:09]line Чек 86 23.10.2024 21:37 [21:37:09]line Смена: 491 ФФД: 1.0 [21:37:09]line ЗНМ: 0300000090 [21:37:09]line РНМ: 0000000000097022 [21:37:09]line Версия ККМ: 001 [21:37:09]line ФМ: 0000000000875000 [21:37:09]line ФД: 50341 [21:37:09]line ФПД: 207353361024207 [21:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213712&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50341&fm=207353361024207&tin=02508201610067®Number=0000000000097022&sum=7500 [21:37:09]line 0 [21:37:09]OFD Sender: Processing packet 50341 [packets to send 7, broken 6] [21:37:09]ProducePacketName [21:37:09]name=ofd_packets/00050341 [21:37:09]OFD Sender: To server: pG, [21:37:09]CommunicateWithHost lk.salyk.kg:30040 [21:37:09]ConnectInit lk.salyk.kg [21:37:09]written 0, free lines is 4095 [21:37:09]Connected sock=10 [21:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 32 05 29 01 50 21 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 56 00 00 00 F4 03 04 00 88 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C4 00 00 35 04 06 00 BC 96 37 6D 44 CF 4B 31 A6 73 48 AB 9E A4 [21:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 BA 25 47 00 08 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C4 00 00 F4 03 04 00 1E 18 19 67 B6 04 01 00 00 87 2E 83 DD BF 16 96 6E [21:37:10]CommunicateWithHost err = 0 [21:37:10]CheckOFDResponse [21:37:10]1017 (14) - 77093643461234 [21:37:10]1041 (16) - 0000000000875000 [21:37:10]1040 (4) - 50341 [21:37:10]1012 (4) - 23.10.2024 15:37 [21:37:10]1206 (1) - 0 [21:37:10]OFD Sender: Remove packet 50341 [21:37:10]ProducePacketName [21:37:10]name=ofd_packets/00050341 [21:37:10]NVStorageDeleteData [21:37:10]Write to MH i2c: 01 00 00 2E 1A 48 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: 01 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: 01 07 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: 01 07 00 2E 1A 00 00 00 00 00 FA 0C 55 [21:37:10]RasterBufferAndPrint [21:37:10]line [21:37:10]line [21:37:10]line [21:37:10]line [21:37:10]line [21:37:10]written 0, free lines is 3327 [21:37:10]process_action close_receipt done [21:37:10]requested_data is exist [21:37:10]produce_requested_data [21:37:10]requested_item fm.sn is exist - process it [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 11 00 00 [21:37:10]Write to MH i2c: E2 08 00 35 1A 80 11 00 00 00 00 00 00 C9 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 17 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 17 00 35 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 10 [21:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:37:10]wFMCommunicate OK [21:37:10]requested_item fd.num is exist - process it [21:37:10]SAM_PROTO_GetFieldsCounters [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 13 00 00 [21:37:10]Write to MH i2c: E2 08 00 36 1A 80 13 00 00 00 00 00 00 CC [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 62 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 62 00 36 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A5 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A5 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:10]wFMCommunicate OK [21:37:10]SAM_PROTO_GetFieldsCounters done [21:37:10]requested_item shift.num is exist - process it [21:37:10]requested_item shift.opened is exist - process it [21:37:10]req_shift_opened [21:37:10]FM_GetShiftState [21:37:10]SAM_PROTO_GetShiftState [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 13 01 00 [21:37:10]Write to MH i2c: E2 08 00 37 1A 80 13 01 00 00 00 00 00 CE [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 0E 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 0E 00 37 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1A [21:37:10]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:37:10]wFMCommunicate OK [21:37:10]SAM_PROTO_GetShiftState done [21:37:10]FM_GetShiftState done [21:37:10]req_shift_opened done [21:37:10]requested_item shift.open_date is exist - process it [21:37:10]req_shift_open_date [21:37:10]req_shift_open_date done [21:37:10]produce_requested_data done [21:37:10]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50341,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:37:10]process_action_free close_receipt [21:37:10]json_value_free [21:37:10]json_value_free done [21:37:10]process_json_proto returns [21:37:10]Send response to host [21:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50341,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:37:10]free response buf [21:37:10]execute_script done [21:37:10]execute_script returns [21:37:10]free content buf [21:37:10]Sock 9.Close socket [21:37:10]Sock 9.Thread stoped [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:51]accept exits with 7 [21:37:51]New connection [21:37:51]New thread 3067305316 created [21:37:51]Thread 3067161956 joined [21:37:51]Waiting for new connection... [21:37:51] Sock 7.Parse request [21:37:51]Sock 7.Check first char [21:37:51]Sock 7.First char is OK [21:37:51]request: POST /json_proto HTTP/1.0 [21:37:51]Method: POST [21:37:51]URL: /json_proto [21:37:51]Method is POST - this is cgi request [21:37:51]url: /json_proto [21:37:51]query_string will be loaded in cgi processing [21:37:51]execute_cgi json_proto POST (null) [21:37:51]execute_cgi path=json_proto method=POST [21:37:51]POST find Content-Length [21:37:51]Host: 172.17.49.196:8080 [21:37:51]Content-Length: 647 [21:37:51]Content-Type: application/json [21:37:51] [21:37:51]POST finish read [21:37:51]Found Content-Length = 647 [21:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164251", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.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" ] } } [21:37:51]execute_script... [21:37: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 : (3)164251", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.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" ] } } [21:37:51]POST & json_proto [21:37:51]process_json_proto [21:37:51]json parsed OK: [21:37:51]protocol is kg_v1.0 [21:37:51]action value=close_receipt [21:37:51]process_action close_receipt [21:37:51]cmd_close_receipt [21:37:51]MH_GetDate [21:37:51]Write to MH i2c: F0 00 00 38 1A 41 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 09 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 09 00 38 1A 00 B4 6C 19 67 BD 3B 11 67 5A [21:37:51]GetLastDocTimeStamp 1729719432 [21:37:51]current date 1729719476 [21:37:51]FM_GetShiftState [21:37:51]SAM_PROTO_GetShiftState [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 13 01 00 [21:37:51]Write to MH i2c: E2 08 00 39 1A 80 13 01 00 00 00 00 00 D0 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0E 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0E 00 39 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1C [21:37:51]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:37:51]wFMCommunicate OK [21:37:51]SAM_PROTO_GetShiftState done [21:37:51]FM_GetShiftState done [21:37:51]opened in 1729642370 [21:37:51]opened+sec_in_day 1729728770 [21:37:51]quantity*price = 13000 [21:37:51]sum+1 = 13001 [21:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 87 23.10.2024 21:37 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50342 ФПД: 246140662002675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213756&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50342&fm=246140662002675&tin=02508201610067®Number=0000000000097022&sum=13000 0 [21:37:52]StoreToDocumentArchive [21:37:52]shift 491 fd 50342 [21:37:52]save to /storage/0491/doc_00050342 [21:37:52]save last doc name /storage/0491/doc_00050342 to /storage/kkm_last_doc_name [21:37:52]save OK [21:37:52]Clear old archive folders... [21:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:37:52]tlvbuf is B6EFE0E0 [21:37:52]SAM_PROTO_ClearQueue [21:37:52]wFMCommunicate request_size=4 [21:37:52]MH_SAM_APDU [21:37:52]CAPDU: 80 09 00 00 [21:37:52]Write to MH i2c: E2 08 00 46 1A 80 09 00 00 00 00 00 00 D2 [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:52]Read from MH i2c: E2 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [21:37:52]RAPDU: 90 00 [21:37:52]wFMCommunicate OK [21:37:52]SAM_PROTO_ClearQueue done [21:37:52]KKMCreateOFDPacket [21:37:52]OFDProtocolAddRootSTLVToBuf [21:37:52]FM_MakeSignedData [21:37:52]FM_MakeSignedData [21:37:52]SAM_PROTO_SignData [21:37:52]wFMCommunicate request_size=4 [21:37:52]MH_SAM_APDU [21:37:52]CAPDU: 80 0D 01 02 [21:37:52]Write to MH i2c: E2 08 00 47 1A 80 0D 01 02 00 00 00 00 DA [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:52]Read from MH i2c: E2 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 47 1A 00 90 00 D5 [21:37:52]RAPDU: 90 00 [21:37:52]wFMCommunicate OK [21:37:52]wFMCommunicate request_size=255 [21:37:52]MH_SAM_APDU [21:37:52]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB 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 57 00 00 00 F4 03 04 00 B4 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [21:37:53]Write to MH i2c: E2 02 01 48 1A 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB 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 57 00 00 00 F4 03 04 00 B4 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 56 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 48 1A 00 90 00 D6 [21:37:53]RAPDU: 90 00 [21:37:53]wFMCommunicate OK [21:37:53]wFMCommunicate request_size=31 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 A6 C4 00 00 35 04 06 00 DF DD 16 B9 33 F3 [21:37:53]Write to MH i2c: E2 22 00 49 1A 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 A6 C4 00 00 35 04 06 00 DF DD 16 B9 33 F3 00 00 17 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 49 1A 00 90 00 D7 [21:37:53]RAPDU: 90 00 [21:37:53]wFMCommunicate OK [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 0D 03 02 [21:37:53]Write to MH i2c: E2 08 00 4A 1A 80 0D 03 02 00 00 00 00 DF [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0B 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0B 00 4A 1A 00 92 B8 FC 4C 2A 92 77 BF 90 00 64 [21:37:53]RAPDU: 92 B8 FC 4C 2A 92 77 BF 90 00 [21:37:53]wFMCommunicate OK [21:37:53]SAM_PROTO_SignData done [21:37:53]FM_MakeSignedData done [21:37:53]CreateOFDProtocolMessage [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 11 00 00 [21:37:53]Write to MH i2c: E2 08 00 4B 1A 80 11 00 00 00 00 00 00 DF [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 4B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 26 [21:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:37:53]wFMCommunicate OK [21:37:53]CreateOFDProtocolMessage done [21:37:53]OFDSenderStorePacket 50342 [21:37:53]StoreOFDPacket docnum=50342 [21:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 AF 5C 1C 01 87 C2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB 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 57 00 00 00 F4 03 04 00 B4 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C4 00 00 35 04 06 00 DF DD 16 B9 33 F3 92 B8 FC 4C 2A 92 77 BF [21:37:53]CheckFolder [21:37:53]dirname=/storage/ofd_packets [21:37:53]CheckFolder done [21:37:53]ProducePacketName [21:37:53]name=ofd_packets/00050342 [21:37:53]NVStorageSaveData ofd_packets/00050342 [21:37:53]File name is /storage/ofd_packets/00050342 [21:37:53]Write 322 bytes [21:37:53]NVStorageSaveData done [21:37:53]OFDSenderStorePacket done [21:37:53]KKMCreateOFDPacket done [21:37:53]NVStorageSaveData kkm_last_timestamp [21:37:53]File name is /storage/kkm_last_timestamp [21:37:53]Write 4 bytes [21:37:53]NVStorageSaveData done [21:37:53]ExternCall_PrintAddStr [21:37:53]wPrintStart [21:37:53]Write to MH i2c: 01 00 00 4C 1A 66 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 4C 1A 00 00 00 00 00 FF 0F 7B [21:37:53]RasterBufferAndPrint [21:37:53]line Счет N : (3)164251 [21:37:53]line ИНН: 02508201610067 [21:37:53]line Контрольно-Кассовый Чек [21:37:53]line ПРОДАЖА [21:37:53]line Товар: 47011656 [21:37:53]line Водка Пшеничная 0,1л [21:37:53]line 2.000 * 65.00 [21:37:53]line = 130.00 [21:37:53]line НДС 12% НСП 1% [21:37:53]line > о реализуемом товаре [21:37:53]line ИТОГО: 130.00 [21:37:53]line НСП 1% : 1.15 [21:37:53]line НДС 12% : 13.80 [21:37:53]line Наличными: 130.00 [21:37:53]line Безнал.: 0.00 [21:37:53]line Место: АЗС № 80 "Партнер Нефть" [21:37:53]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:37:53]line СНО: Общий режим [21:37:53]line Чек 87 23.10.2024 21:37 [21:37:53]line Смена: 491 ФФД: 1.0 [21:37:53]line ЗНМ: 0300000090 [21:37:53]line РНМ: 0000000000097022 [21:37:53]line Версия ККМ: 001 [21:37:53]line ФМ: 0000000000875000 [21:37:53]line ФД: 50342 [21:37:53]line ФПД: 246140662002675 [21:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213756&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50342&fm=246140662002675&tin=02508201610067®Number=0000000000097022&sum=13000 [21:37:53]OFD Sender: Processing packet 50342 [packets to send 7, broken 6] [21:37:53]ProducePacketName [21:37:53]name=ofd_packets/00050342 [21:37:53]OFD Sender: To server: pG, [21:37:53]CommunicateWithHost lk.salyk.kg:30040 [21:37:53]ConnectInit lk.salyk.kg [21:37:53]line 0 [21:37:53]written 0, free lines is 4095 [21:37:53]Connected sock=10 [21:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 AF 5C 1C 01 87 C2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB 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 57 00 00 00 F4 03 04 00 B4 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C4 00 00 35 04 06 00 DF DD 16 B9 33 F3 92 B8 FC 4C 2A 92 77 BF [21:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CF 77 47 00 9E A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C4 00 00 F4 03 04 00 4A 18 19 67 B6 04 01 00 00 5C CE C2 15 C5 5E 3C C8 [21:37:54]CommunicateWithHost err = 0 [21:37:54]CheckOFDResponse [21:37:54]1017 (14) - 77093643461234 [21:37:54]1041 (16) - 0000000000875000 [21:37:54]1040 (4) - 50342 [21:37:54]1012 (4) - 23.10.2024 15:37 [21:37:54]1206 (1) - 0 [21:37:54]OFD Sender: Remove packet 50342 [21:37:54]ProducePacketName [21:37:54]name=ofd_packets/00050342 [21:37:54]NVStorageDeleteData [21:37:54]Write to MH i2c: 01 00 00 74 1A 8E [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 07 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 24 0D C6 [21:37:54]RasterBufferAndPrint [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]written 0, free lines is 3370 [21:37:54]process_action close_receipt done [21:37:54]requested_data is exist [21:37:54]produce_requested_data [21:37:54]requested_item fm.sn is exist - process it [21:37:54]wFMCommunicate request_size=4 [21:37:54]MH_SAM_APDU [21:37:54]CAPDU: 80 11 00 00 [21:37:54]Write to MH i2c: E2 08 00 7B 1A 80 11 00 00 00 00 00 00 0F [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:54]Read from MH i2c: E2 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 17 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 17 00 7B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 56 [21:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:37:54]wFMCommunicate OK [21:37:54]requested_item fd.num is exist - process it [21:37:54]SAM_PROTO_GetFieldsCounters [21:37:54]wFMCommunicate request_size=4 [21:37:54]MH_SAM_APDU [21:37:54]CAPDU: 80 13 00 00 [21:37:54]Write to MH i2c: E2 08 00 7C 1A 80 13 00 00 00 00 00 00 12 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:54]Read from MH i2c: E2 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 62 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 62 00 7C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A6 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [21:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A6 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:54]wFMCommunicate OK [21:37:54]SAM_PROTO_GetFieldsCounters done [21:37:54]requested_item shift.num is exist - process it [21:37:54]requested_item shift.opened is exist - process it [21:37:54]req_shift_opened [21:37:54]FM_GetShiftState [21:37:54]SAM_PROTO_GetShiftState [21:37:54]wFMCommunicate request_size=4 [21:37:54]MH_SAM_APDU [21:37:54]CAPDU: 80 13 01 00 [21:37:54]Write to MH i2c: E2 08 00 7D 1A 80 13 01 00 00 00 00 00 14 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:54]Read from MH i2c: E2 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 0E 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: E2 0E 00 7D 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 60 [21:37:54]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:37:54]wFMCommunicate OK [21:37:54]SAM_PROTO_GetShiftState done [21:37:54]FM_GetShiftState done [21:37:54]req_shift_opened done [21:37:54]requested_item shift.open_date is exist - process it [21:37:54]req_shift_open_date [21:37:54]req_shift_open_date done [21:37:54]produce_requested_data done [21:37:54]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50342,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:37:54]process_action_free close_receipt [21:37:54]json_value_free [21:37:54]json_value_free done [21:37:54]process_json_proto returns [21:37:54]Send response to host [21:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50342,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:37:54]free response buf [21:37:54]execute_script done [21:37:54]execute_script returns [21:37:54]free content buf [21:37:54]Sock 7.Close socket [21:37:54]Sock 7.Thread stoped [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:08]accept exits with 9 [21:38:08]New connection [21:38:08]New thread 3067161956 created [21:38:08]Thread 3067305316 joined [21:38:08]Waiting for new connection... [21:38:08] Sock 9.Parse request [21:38:08]Sock 9.Check first char [21:38:08]Sock 9.First char is OK [21:38:08]request: POST /json_proto HTTP/1.0 [21:38:08]Method: POST [21:38:08]URL: /json_proto [21:38:08]Method is POST - this is cgi request [21:38:08]url: /json_proto [21:38:08]query_string will be loaded in cgi processing [21:38:08]execute_cgi json_proto POST (null) [21:38:08]execute_cgi path=json_proto method=POST [21:38:08]POST find Content-Length [21:38:08]Host: 172.17.49.196:8080 [21:38:08]Content-Length: 687 [21:38:08]Content-Type: application/json [21:38:08] [21:38:08]POST finish read [21:38:08]Found Content-Length = 687 [21:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164252", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 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" ] } } [21:38:08]execute_script... [21:38:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164252", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 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" ] } } [21:38:08]POST & json_proto [21:38:08]process_json_proto [21:38:08]json parsed OK: [21:38:08]protocol is kg_v1.0 [21:38:08]action value=close_receipt [21:38:08]process_action close_receipt [21:38:08]cmd_close_receipt [21:38:08]MH_GetDate [21:38:08]Write to MH i2c: F0 00 00 7E 1A 87 [21:38:08]Write i2c OK [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: F0 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: F0 09 00 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: F0 09 00 7E 1A 00 C5 6C 19 67 BD 3B 11 67 B1 [21:38:08]GetLastDocTimeStamp 1729719476 [21:38:08]current date 1729719493 [21:38:08]FM_GetShiftState [21:38:08]SAM_PROTO_GetShiftState [21:38:08]wFMCommunicate request_size=4 [21:38:08]MH_SAM_APDU [21:38:08]CAPDU: 80 13 01 00 [21:38:08]Write to MH i2c: E2 08 00 7F 1A 80 13 01 00 00 00 00 00 16 [21:38:08]Write i2c OK [21:38:08]MH_I2C_Read... [21:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:08]Read from MH i2c: E2 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: E2 0E 00 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: E2 0E 00 7F 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 62 [21:38:08]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:38:08]wFMCommunicate OK [21:38:08]SAM_PROTO_GetShiftState done [21:38:08]FM_GetShiftState done [21:38:08]opened in 1729642370 [21:38:08]opened+sec_in_day 1729728770 [21:38:08]quantity*price = 5000 [21:38:08]sum+1 = 5001 [21:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 88 23.10.2024 21:38 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50343 ФПД: 274514619224345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213813&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50343&fm=274514619224345&tin=02508201610067®Number=0000000000097022&sum=5000 0 [21:38:09]StoreToDocumentArchive [21:38:09]shift 491 fd 50343 [21:38:09]save to /storage/0491/doc_00050343 [21:38:09]save last doc name /storage/0491/doc_00050343 to /storage/kkm_last_doc_name [21:38:09]save OK [21:38:09]Clear old archive folders... [21:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=298 [21:38:09]tlvbuf is B6EFE160 [21:38:09]SAM_PROTO_ClearQueue [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 09 00 00 [21:38:09]Write to MH i2c: E2 08 00 8C 1A 80 09 00 00 00 00 00 00 18 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 8C 1A 00 90 00 1A [21:38:09]RAPDU: 90 00 [21:38:09]wFMCommunicate OK [21:38:09]SAM_PROTO_ClearQueue done [21:38:09]KKMCreateOFDPacket [21:38:09]OFDProtocolAddRootSTLVToBuf [21:38:09]FM_MakeSignedData [21:38:09]FM_MakeSignedData [21:38:09]SAM_PROTO_SignData [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 0D 01 02 [21:38:09]Write to MH i2c: E2 08 00 8D 1A 80 0D 01 02 00 00 00 00 20 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 8D 1A 00 90 00 1B [21:38:10]RAPDU: 90 00 [21:38:10]wFMCommunicate OK [21:38:10]wFMCommunicate request_size=255 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 C5 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [21:38:10]Write to MH i2c: E2 02 01 8E 1A 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 C5 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 15 [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [21:38:10]RAPDU: 90 00 [21:38:10]wFMCommunicate OK [21:38:10]wFMCommunicate request_size=57 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C4 00 00 35 04 06 00 F9 AB 6A 5D 51 19 [21:38:10]Write to MH i2c: E2 3C 00 8F 1A 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C4 00 00 35 04 06 00 F9 AB 6A 5D 51 19 00 00 0F [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [21:38:10]RAPDU: 90 00 [21:38:10]wFMCommunicate OK [21:38:10]wFMCommunicate request_size=4 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 0D 03 02 [21:38:10]Write to MH i2c: E2 08 00 90 1A 80 0D 03 02 00 00 00 00 25 [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 0B 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 0B 00 90 1A 00 3C 96 0E 03 AE 9B 32 E0 90 00 64 [21:38:10]RAPDU: 3C 96 0E 03 AE 9B 32 E0 90 00 [21:38:10]wFMCommunicate OK [21:38:10]SAM_PROTO_SignData done [21:38:10]FM_MakeSignedData done [21:38:10]CreateOFDProtocolMessage [21:38:10]wFMCommunicate request_size=4 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 11 00 00 [21:38:10]Write to MH i2c: E2 08 00 91 1A 80 11 00 00 00 00 00 00 25 [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 17 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 17 00 91 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6C [21:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:38:10]wFMCommunicate OK [21:38:10]CreateOFDProtocolMessage done [21:38:10]OFDSenderStorePacket 50343 [21:38:10]StoreOFDPacket docnum=50343 [21:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 0F 7A 36 01 4D 43 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 C5 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C4 00 00 35 04 06 00 F9 AB 6A 5D 51 19 3C 96 0E 03 AE 9B 32 E0 [21:38:10]CheckFolder [21:38:10]dirname=/storage/ofd_packets [21:38:10]CheckFolder done [21:38:10]ProducePacketName [21:38:10]name=ofd_packets/00050343 [21:38:10]NVStorageSaveData ofd_packets/00050343 [21:38:10]File name is /storage/ofd_packets/00050343 [21:38:10]Write 348 bytes [21:38:10]NVStorageSaveData done [21:38:10]OFDSenderStorePacket done [21:38:10]KKMCreateOFDPacket done [21:38:10]NVStorageSaveData kkm_last_timestamp [21:38:10]File name is /storage/kkm_last_timestamp [21:38:10]Write 4 bytes [21:38:10]NVStorageSaveData done [21:38:10]ExternCall_PrintAddStr [21:38:10]wPrintStart [21:38:10]Write to MH i2c: 01 00 00 92 1A AC [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 07 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [21:38:10]RasterBufferAndPrint [21:38:10]line Счет N : (3)164252 [21:38:10]line ИНН: 02508201610067 [21:38:10]line Контрольно-Кассовый Чек [21:38:10]line ПРОДАЖА [21:38:10]line Товар: 4700003010032 [21:38:10]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [21:38:10]line 1.000 * 50.00 [21:38:10]line = 50.00 [21:38:10]line НДС 12% НСП 1% [21:38:10]line > о реализуемом товаре [21:38:10]line ИТОГО: 50.00 [21:38:10]line НСП 1% : 0.44 [21:38:10]line НДС 12% : 5.31 [21:38:10]line Наличными: 50.00 [21:38:10]line Безнал.: 0.00 [21:38:10]line Место: АЗС № 80 "Партнер Нефть" [21:38:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:38:10]line СНО: Общий режим [21:38:10]line Чек 88 23.10.2024 21:38 [21:38:10]line Смена: 491 ФФД: 1.0 [21:38:10]line ЗНМ: 0300000090 [21:38:10]line РНМ: 0000000000097022 [21:38:10]line Версия ККМ: 001 [21:38:10]line ФМ: 0000000000875000 [21:38:10]line ФД: 50343 [21:38:10]line ФПД: 274514619224345 [21:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213813&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50343&fm=274514619224345&tin=02508201610067®Number=0000000000097022&sum=5000 [21:38:10]line 0 [21:38:10]OFD Sender: Processing packet 50343 [packets to send 7, broken 6] [21:38:10]ProducePacketName [21:38:10]name=ofd_packets/00050343 [21:38:10]OFD Sender: To server: pG, [21:38:10]CommunicateWithHost lk.salyk.kg:30040 [21:38:10]ConnectInit lk.salyk.kg [21:38:10]written 0, free lines is 4095 [21:38:10]Connected sock=10 [21:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 0F 7A 36 01 4D 43 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 C5 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C4 00 00 35 04 06 00 F9 AB 6A 5D 51 19 3C 96 0E 03 AE 9B 32 E0 [21:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 79 E0 47 00 7B 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C4 00 00 F4 03 04 00 5B 18 19 67 B6 04 01 00 00 91 33 B8 E4 4C 6D C7 6F [21:38:11]CommunicateWithHost err = 0 [21:38:11]CheckOFDResponse [21:38:11]1017 (14) - 77093643461234 [21:38:11]1041 (16) - 0000000000875000 [21:38:11]1040 (4) - 50343 [21:38:11]1012 (4) - 23.10.2024 15:38 [21:38:11]1206 (1) - 0 [21:38:11]OFD Sender: Remove packet 50343 [21:38:11]ProducePacketName [21:38:11]name=ofd_packets/00050343 [21:38:11]NVStorageDeleteData [21:38:11]Write to MH i2c: 01 00 00 BB 1A D5 [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 07 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 04 0D ED [21:38:11]RasterBufferAndPrint [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]written 0, free lines is 3339 [21:38:11]process_action close_receipt done [21:38:11]requested_data is exist [21:38:11]produce_requested_data [21:38:11]requested_item fm.sn is exist - process it [21:38:11]wFMCommunicate request_size=4 [21:38:11]MH_SAM_APDU [21:38:11]CAPDU: 80 11 00 00 [21:38:11]Write to MH i2c: E2 08 00 C2 1A 80 11 00 00 00 00 00 00 56 [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:11]Read from MH i2c: E2 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 17 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 17 00 C2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9D [21:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:38:11]wFMCommunicate OK [21:38:11]requested_item fd.num is exist - process it [21:38:11]SAM_PROTO_GetFieldsCounters [21:38:11]wFMCommunicate request_size=4 [21:38:11]MH_SAM_APDU [21:38:11]CAPDU: 80 13 00 00 [21:38:11]Write to MH i2c: E2 08 00 C3 1A 80 13 00 00 00 00 00 00 59 [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:11]Read from MH i2c: E2 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 62 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 62 00 C3 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A7 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [21:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A7 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:11]wFMCommunicate OK [21:38:11]SAM_PROTO_GetFieldsCounters done [21:38:11]requested_item shift.num is exist - process it [21:38:11]requested_item shift.opened is exist - process it [21:38:11]req_shift_opened [21:38:11]FM_GetShiftState [21:38:11]SAM_PROTO_GetShiftState [21:38:11]wFMCommunicate request_size=4 [21:38:11]MH_SAM_APDU [21:38:11]CAPDU: 80 13 01 00 [21:38:11]Write to MH i2c: E2 08 00 C4 1A 80 13 01 00 00 00 00 00 5B [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:11]Read from MH i2c: E2 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 0E 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: E2 0E 00 C4 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A7 [21:38:11]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:38:11]wFMCommunicate OK [21:38:11]SAM_PROTO_GetShiftState done [21:38:11]FM_GetShiftState done [21:38:11]req_shift_opened done [21:38:11]requested_item shift.open_date is exist - process it [21:38:11]req_shift_open_date [21:38:11]req_shift_open_date done [21:38:11]produce_requested_data done [21:38:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50343,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:38:11]process_action_free close_receipt [21:38:11]json_value_free [21:38:11]json_value_free done [21:38:11]process_json_proto returns [21:38:11]Send response to host [21:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50343,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:38:11]free response buf [21:38:11]execute_script done [21:38:11]execute_script returns [21:38:11]free content buf [21:38:11]Sock 9.Close socket [21:38:11]Sock 9.Thread stoped [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:30]accept exits with 7 [21:38:30]New connection [21:38:30]New thread 3067305316 created [21:38:30]Thread 3067161956 joined [21:38:30]Waiting for new connection... [21:38:30] Sock 7.Parse request [21:38:30]Sock 7.Check first char [21:38:30]Sock 7.First char is OK [21:38:30]request: POST /json_proto HTTP/1.0 [21:38:30]Method: POST [21:38:30]URL: /json_proto [21:38:30]Method is POST - this is cgi request [21:38:30]url: /json_proto [21:38:30]query_string will be loaded in cgi processing [21:38:30]execute_cgi json_proto POST (null) [21:38:30]execute_cgi path=json_proto method=POST [21:38:30]POST find Content-Length [21:38:30]Host: 172.17.49.196:8080 [21:38:30]Content-Length: 979 [21:38:30]Content-Type: application/json [21:38:30] [21:38:30]POST finish read [21:38:30]Found Content-Length = 979 [21:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164253", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:30]execute_script... [21:38: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)164253", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:30]POST & json_proto [21:38:30]process_json_proto [21:38:30]json parsed OK: [21:38:30]protocol is kg_v1.0 [21:38:30]action value=close_receipt [21:38:30]process_action close_receipt [21:38:30]cmd_close_receipt [21:38:30]MH_GetDate [21:38:30]Write to MH i2c: F0 00 00 C5 1A CE [21:38:30]Write i2c OK [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: F0 [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: F0 09 00 [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: F0 09 00 C5 1A 00 DC 6C 19 67 BD 3B 11 67 0F [21:38:30]GetLastDocTimeStamp 1729719493 [21:38:30]current date 1729719516 [21:38:30]FM_GetShiftState [21:38:30]SAM_PROTO_GetShiftState [21:38:30]wFMCommunicate request_size=4 [21:38:30]MH_SAM_APDU [21:38:30]CAPDU: 80 13 01 00 [21:38:30]Write to MH i2c: E2 08 00 C6 1A 80 13 01 00 00 00 00 00 5D [21:38:30]Write i2c OK [21:38:30]MH_I2C_Read... [21:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:31]Read from MH i2c: E2 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 C6 1A 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 A9 [21:38:31]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:38:31]wFMCommunicate OK [21:38:31]SAM_PROTO_GetShiftState done [21:38:31]FM_GetShiftState done [21:38:31]opened in 1729642370 [21:38:31]opened+sec_in_day 1729728770 [21:38:31]quantity*price = 9900 [21:38:31]sum+1 = 9901 [21:38:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631162227163 Напиток газированный Mojito LEMON LIME ж 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.72 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 89 23.10.2024 21:38 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50344 ФПД: 94410537687336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213836&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50344&fm=94410537687336&tin=02508201610067®Number=0000000000097022&sum=19400 0 [21:38:32]StoreToDocumentArchive [21:38:32]shift 491 fd 50344 [21:38:32]save to /storage/0491/doc_00050344 [21:38:32]save last doc name /storage/0491/doc_00050344 to /storage/kkm_last_doc_name [21:38:32]save OK [21:38:32]Clear old archive folders... [21:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=425 [21:38:32]tlvbuf is 0012C740 [21:38:32]SAM_PROTO_ClearQueue [21:38:32]wFMCommunicate request_size=4 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 09 00 00 [21:38:32]Write to MH i2c: E2 08 00 D3 1A 80 09 00 00 00 00 00 00 5F [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [21:38:32]RAPDU: 90 00 [21:38:32]wFMCommunicate OK [21:38:32]SAM_PROTO_ClearQueue done [21:38:32]KKMCreateOFDPacket [21:38:32]OFDProtocolAddRootSTLVToBuf [21:38:32]FM_MakeSignedData [21:38:32]FM_MakeSignedData [21:38:32]SAM_PROTO_SignData [21:38:32]wFMCommunicate request_size=4 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 0D 01 02 [21:38:32]Write to MH i2c: E2 08 00 D4 1A 80 0D 01 02 00 00 00 00 67 [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [21:38:32]RAPDU: 90 00 [21:38:32]wFMCommunicate OK [21:38:32]wFMCommunicate request_size=255 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 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 [21:38:32]Write to MH i2c: E2 02 01 D5 1A 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 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 00 00 D8 [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [21:38:32]RAPDU: 90 00 [21:38:32]wFMCommunicate OK [21:38:32]wFMCommunicate request_size=184 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DC 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C4 00 00 35 04 06 00 55 DD AA 8F D9 28 [21:38:32]Write to MH i2c: E2 BB 00 D6 1A 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DC 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C4 00 00 35 04 06 00 55 DD AA 8F D9 28 00 00 8E [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [21:38:32]RAPDU: 90 00 [21:38:32]wFMCommunicate OK [21:38:32]wFMCommunicate request_size=4 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 0D 03 02 [21:38:32]Write to MH i2c: E2 08 00 D7 1A 80 0D 03 02 00 00 00 00 6C [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 0B 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 0B 00 D7 1A 00 3F 6C DA E2 D6 B6 2C 92 90 00 1E [21:38:32]RAPDU: 3F 6C DA E2 D6 B6 2C 92 90 00 [21:38:32]wFMCommunicate OK [21:38:32]SAM_PROTO_SignData done [21:38:32]FM_MakeSignedData done [21:38:32]CreateOFDProtocolMessage [21:38:32]wFMCommunicate request_size=4 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 11 00 00 [21:38:32]Write to MH i2c: E2 08 00 D8 1A 80 11 00 00 00 00 00 00 6C [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 17 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 17 00 D8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B3 [21:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:38:32]wFMCommunicate OK [21:38:32]CreateOFDProtocolMessage done [21:38:32]OFDSenderStorePacket 50344 [21:38:32]StoreOFDPacket docnum=50344 [21:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 BD 01 00 00 B2 06 B5 01 70 B0 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 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 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DC 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C4 00 00 35 04 06 00 55 DD AA 8F D9 28 3F 6C DA E2 D6 B6 2C 92 [21:38:32]CheckFolder [21:38:32]dirname=/storage/ofd_packets [21:38:32]CheckFolder done [21:38:32]ProducePacketName [21:38:32]name=ofd_packets/00050344 [21:38:32]NVStorageSaveData ofd_packets/00050344 [21:38:32]File name is /storage/ofd_packets/00050344 [21:38:32]Write 475 bytes [21:38:32]NVStorageSaveData done [21:38:32]OFDSenderStorePacket done [21:38:32]KKMCreateOFDPacket done [21:38:32]NVStorageSaveData kkm_last_timestamp [21:38:32]File name is /storage/kkm_last_timestamp [21:38:32]Write 4 bytes [21:38:32]NVStorageSaveData done [21:38:32]ExternCall_PrintAddStr [21:38:32]wPrintStart [21:38:32]Write to MH i2c: 01 00 00 D9 1A F3 [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: 01 [21:38:33]MH_I2C_Read... [21:38:33]OFD Sender: Processing packet 50344 [packets to send 7, broken 6] [21:38:33]ProducePacketName [21:38:33]name=ofd_packets/00050344 [21:38:33]OFD Sender: To server: pG, [21:38:33]CommunicateWithHost lk.salyk.kg:30040 [21:38:33]ConnectInit lk.salyk.kg [21:38:33]Read from MH i2c: 01 07 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 07 00 D9 1A 00 00 00 00 00 FF 0F 08 [21:38:33]RasterBufferAndPrint [21:38:33]line Счет N : (3)164253 [21:38:33]line ИНН: 02508201610067 [21:38:33]line Контрольно-Кассовый Чек [21:38:33]line ПРОДАЖА [21:38:33]line Товар: 4870022003305 [21:38:33]line Напиток Gorilla эн нат ж/б 0,5/0,45л [21:38:33]line 1.000 * 99.00 [21:38:33]line = 99.00 [21:38:33]line НДС 12% НСП 1% [21:38:33]line > о реализуемом товаре [21:38:33]line Товар: 4631162227163 [21:38:33]line Напиток газированный Mojito LEMON LIME ж [21:38:33]line 1.000 * 95.00 [21:38:33]line = 95.00 [21:38:33]line НДС 12% НСП 1% [21:38:33]line > о реализуемом товаре [21:38:33]line ИТОГО: 194.00 [21:38:33]line НСП 1% : 1.72 [21:38:33]line НДС 12% : 20.60 [21:38:33]line Наличными: 194.00 [21:38:33]line Безнал.: 0.00 [21:38:33]line Место: АЗС № 80 "Партнер Нефть" [21:38:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:38:33]line СНО: Общий режим [21:38:33]line Чек 89 23.10.2024 21:38 [21:38:33]line Смена: 491 ФФД: 1.0 [21:38:33]line ЗНМ: 0300000090 [21:38:33]line РНМ: 0000000000097022 [21:38:33]line Версия ККМ: 001 [21:38:33]line ФМ: 0000000000875000 [21:38:33]line ФД: 50344 [21:38:33]line ФПД: 94410537687336 [21:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213836&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50344&fm=94410537687336&tin=02508201610067®Number=0000000000097022&sum=19400 [21:38:33]line 0 [21:38:33]written 0, free lines is 4095 [21:38:33]Connected sock=10 [21:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 BD 01 00 00 B2 06 B5 01 70 B0 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 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 C8 4B 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 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 DC 6C 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C4 00 00 35 04 06 00 55 DD AA 8F D9 28 3F 6C DA E2 D6 B6 2C 92 [21:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D0 0B 47 00 DE 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C4 00 00 F4 03 04 00 72 18 19 67 B6 04 01 00 00 52 4B A3 4C 64 49 4D 0C [21:38:33]CommunicateWithHost err = 0 [21:38:33]CheckOFDResponse [21:38:33]1017 (14) - 77093643461234 [21:38:33]1041 (16) - 0000000000875000 [21:38:33]1040 (4) - 50344 [21:38:33]1012 (4) - 23.10.2024 15:38 [21:38:33]1206 (1) - 0 [21:38:33]OFD Sender: Remove packet 50344 [21:38:33]ProducePacketName [21:38:33]name=ofd_packets/00050344 [21:38:33]NVStorageDeleteData [21:38:33]Write to MH i2c: 01 00 00 09 1B 24 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 07 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 C7 0C FE [21:38:33]RasterBufferAndPrint [21:38:33]line [21:38:33]line [21:38:33]line [21:38:33]line [21:38:33]line [21:38:33]written 0, free lines is 3277 [21:38:33]process_action close_receipt done [21:38:33]requested_data is exist [21:38:33]produce_requested_data [21:38:33]requested_item fm.sn is exist - process it [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 11 00 00 [21:38:33]Write to MH i2c: E2 08 00 10 1B 80 11 00 00 00 00 00 00 A5 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 17 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 17 00 10 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EC [21:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:38:33]wFMCommunicate OK [21:38:33]requested_item fd.num is exist - process it [21:38:33]SAM_PROTO_GetFieldsCounters [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 13 00 00 [21:38:33]Write to MH i2c: E2 08 00 11 1B 80 13 00 00 00 00 00 00 A8 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 62 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 62 00 11 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A8 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [21:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A8 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:33]wFMCommunicate OK [21:38:33]SAM_PROTO_GetFieldsCounters done [21:38:33]requested_item shift.num is exist - process it [21:38:33]requested_item shift.opened is exist - process it [21:38:33]req_shift_opened [21:38:33]FM_GetShiftState [21:38:33]SAM_PROTO_GetShiftState [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 13 01 00 [21:38:33]Write to MH i2c: E2 08 00 12 1B 80 13 01 00 00 00 00 00 AA [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:34]OFD Sender: No OFD packet to send [21:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0E 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0E 00 12 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F6 [21:38:34]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:38:34]wFMCommunicate OK [21:38:34]SAM_PROTO_GetShiftState done [21:38:34]FM_GetShiftState done [21:38:34]req_shift_opened done [21:38:34]requested_item shift.open_date is exist - process it [21:38:34]req_shift_open_date [21:38:34]req_shift_open_date done [21:38:34]produce_requested_data done [21:38:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50344,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:38:34]process_action_free close_receipt [21:38:34]json_value_free [21:38:34]json_value_free done [21:38:34]process_json_proto returns [21:38:34]Send response to host [21:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50344,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:38:34]free response buf [21:38:34]execute_script done [21:38:34]execute_script returns [21:38:34]free content buf [21:38:34]Sock 7.Close socket [21:38:34]Sock 7.Thread stoped [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:24]accept exits with 9 [21:39:24]New connection [21:39:24]New thread 3067161956 created [21:39:24]Thread 3067305316 joined [21:39:24]Waiting for new connection... [21:39:24] Sock 9.Parse request [21:39:24]Sock 9.Check first char [21:39:24]Sock 9.First char is OK [21:39:24]request: POST /json_proto HTTP/1.0 [21:39:24]Method: POST [21:39:24]URL: /json_proto [21:39:24]Method is POST - this is cgi request [21:39:24]url: /json_proto [21:39:24]query_string will be loaded in cgi processing [21:39:24]execute_cgi json_proto POST (null) [21:39:24]execute_cgi path=json_proto method=POST [21:39:24]POST find Content-Length [21:39:24]Host: 172.17.49.196:8080 [21:39:24]Content-Length: 621 [21:39:24]Content-Type: application/json [21:39:24] [21:39:24]POST finish read [21:39:24]Found Content-Length = 621 [21:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164254", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:24]execute_script... [21:39: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)164254", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:24]POST & json_proto [21:39:24]process_json_proto [21:39:24]json parsed OK: [21:39:24]protocol is kg_v1.0 [21:39:24]action value=close_receipt [21:39:24]process_action close_receipt [21:39:24]cmd_close_receipt [21:39:24]MH_GetDate [21:39:24]Write to MH i2c: F0 00 00 13 1B 1D [21:39:24]Write i2c OK [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: F0 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: F0 09 00 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: F0 09 00 13 1B 00 11 6D 19 67 BD 3B 11 67 94 [21:39:24]GetLastDocTimeStamp 1729719516 [21:39:24]current date 1729719569 [21:39:24]FM_GetShiftState [21:39:24]SAM_PROTO_GetShiftState [21:39:24]wFMCommunicate request_size=4 [21:39:24]MH_SAM_APDU [21:39:24]CAPDU: 80 13 01 00 [21:39:24]Write to MH i2c: E2 08 00 14 1B 80 13 01 00 00 00 00 00 AC [21:39:24]Write i2c OK [21:39:24]MH_I2C_Read... [21:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:24]Read from MH i2c: E2 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 0E 00 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 0E 00 14 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F8 [21:39:24]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:39:24]wFMCommunicate OK [21:39:24]SAM_PROTO_GetShiftState done [21:39:24]FM_GetShiftState done [21:39:24]opened in 1729642370 [21:39:24]opened+sec_in_day 1729728770 [21:39:24]quantity*price = 14400 [21:39:24]sum+1 = 14401 [21:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 90 23.10.2024 21:39 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50345 ФПД: 148602745203911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213929&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50345&fm=148602745203911&tin=02508201610067®Number=0000000000097022&sum=14400 0 [21:39:25]StoreToDocumentArchive [21:39:25]shift 491 fd 50345 [21:39:25]save to /storage/0491/doc_00050345 [21:39:25]save last doc name /storage/0491/doc_00050345 to /storage/kkm_last_doc_name [21:39:25]save OK [21:39:25]Clear old archive folders... [21:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:39:25]tlvbuf is 0022B120 [21:39:25]SAM_PROTO_ClearQueue [21:39:25]wFMCommunicate request_size=4 [21:39:25]MH_SAM_APDU [21:39:25]CAPDU: 80 09 00 00 [21:39:25]Write to MH i2c: E2 08 00 21 1B 80 09 00 00 00 00 00 00 AE [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:25]Read from MH i2c: E2 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 21 1B 00 90 00 B0 [21:39:25]RAPDU: 90 00 [21:39:25]wFMCommunicate OK [21:39:25]SAM_PROTO_ClearQueue done [21:39:25]KKMCreateOFDPacket [21:39:25]OFDProtocolAddRootSTLVToBuf [21:39:25]FM_MakeSignedData [21:39:25]FM_MakeSignedData [21:39:25]SAM_PROTO_SignData [21:39:25]wFMCommunicate request_size=4 [21:39:25]MH_SAM_APDU [21:39:25]CAPDU: 80 0D 01 02 [21:39:25]Write to MH i2c: E2 08 00 22 1B 80 0D 01 02 00 00 00 00 B6 [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 22 1B 00 90 00 B1 [21:39:26]RAPDU: 90 00 [21:39:26]wFMCommunicate OK [21:39:26]wFMCommunicate request_size=255 [21:39:26]MH_SAM_APDU [21:39:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5A 00 00 00 F4 03 04 00 11 6D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [21:39:26]Write to MH i2c: E2 02 01 23 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5A 00 00 00 F4 03 04 00 11 6D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 5F [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 23 1B 00 90 00 B2 [21:39:26]RAPDU: 90 00 [21:39:26]wFMCommunicate OK [21:39:26]wFMCommunicate request_size=32 [21:39:26]MH_SAM_APDU [21:39:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C4 00 00 35 04 06 00 87 27 45 D7 2C C7 [21:39:26]Write to MH i2c: E2 23 00 24 1B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C4 00 00 35 04 06 00 87 27 45 D7 2C C7 00 00 34 [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [21:39:26]RAPDU: 90 00 [21:39:26]wFMCommunicate OK [21:39:26]wFMCommunicate request_size=4 [21:39:26]MH_SAM_APDU [21:39:26]CAPDU: 80 0D 03 02 [21:39:26]Write to MH i2c: E2 08 00 25 1B 80 0D 03 02 00 00 00 00 BB [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 0B 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 0B 00 25 1B 00 A6 71 CA F4 2F 7D 52 72 90 00 01 [21:39:26]RAPDU: A6 71 CA F4 2F 7D 52 72 90 00 [21:39:26]wFMCommunicate OK [21:39:26]SAM_PROTO_SignData done [21:39:26]FM_MakeSignedData done [21:39:26]CreateOFDProtocolMessage [21:39:26]wFMCommunicate request_size=4 [21:39:26]MH_SAM_APDU [21:39:26]CAPDU: 80 11 00 00 [21:39:26]Write to MH i2c: E2 08 00 26 1B 80 11 00 00 00 00 00 00 BB [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 17 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 17 00 26 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 02 [21:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:39:26]wFMCommunicate OK [21:39:26]CreateOFDProtocolMessage done [21:39:26]OFDSenderStorePacket 50345 [21:39:26]StoreOFDPacket docnum=50345 [21:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 5E 74 1D 01 06 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5A 00 00 00 F4 03 04 00 11 6D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C4 00 00 35 04 06 00 87 27 45 D7 2C C7 A6 71 CA F4 2F 7D 52 72 [21:39:26]CheckFolder [21:39:26]dirname=/storage/ofd_packets [21:39:26]CheckFolder done [21:39:26]ProducePacketName [21:39:26]name=ofd_packets/00050345 [21:39:26]NVStorageSaveData ofd_packets/00050345 [21:39:26]File name is /storage/ofd_packets/00050345 [21:39:26]Write 323 bytes [21:39:26]NVStorageSaveData done [21:39:26]OFDSenderStorePacket done [21:39:26]KKMCreateOFDPacket done [21:39:26]NVStorageSaveData kkm_last_timestamp [21:39:26]File name is /storage/kkm_last_timestamp [21:39:26]Write 4 bytes [21:39:26]NVStorageSaveData done [21:39:26]ExternCall_PrintAddStr [21:39:26]wPrintStart [21:39:26]Write to MH i2c: 01 00 00 27 1B 42 [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 07 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 07 00 27 1B 00 00 00 00 00 FF 0F 57 [21:39:26]RasterBufferAndPrint [21:39:26]line Счет N : (3)164254 [21:39:26]line ИНН: 02508201610067 [21:39:26]line Контрольно-Кассовый Чек [21:39:26]line ПРОДАЖА [21:39:26]line Товар: 48743570 [21:39:26]line Сигареты Winston XStyle Blue [21:39:26]line 1.000 * 144.00 [21:39:26]line = 144.00 [21:39:26]line НДС 12% НСП 1% [21:39:26]line > о реализуемом товаре [21:39:26]line ИТОГО: 144.00 [21:39:26]line НСП 1% : 1.27 [21:39:26]line НДС 12% : 15.29 [21:39:26]line Наличными: 144.00 [21:39:26]line Безнал.: 0.00 [21:39:26]line Место: АЗС № 80 "Партнер Нефть" [21:39:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:39:26]line СНО: Общий режим [21:39:26]line Чек 90 23.10.2024 21:39 [21:39:26]line Смена: 491 ФФД: 1.0 [21:39:26]line ЗНМ: 0300000090 [21:39:26]line РНМ: 0000000000097022 [21:39:26]line Версия ККМ: 001 [21:39:26]line ФМ: 0000000000875000 [21:39:26]line ФД: 50345 [21:39:26]line ФПД: 148602745203911 [21:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213929&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50345&fm=148602745203911&tin=02508201610067®Number=0000000000097022&sum=14400 [21:39:26]line 0 [21:39:26]OFD Sender: Processing packet 50345 [packets to send 7, broken 6] [21:39:26]ProducePacketName [21:39:26]name=ofd_packets/00050345 [21:39:26]OFD Sender: To server: pG, [21:39:26]CommunicateWithHost lk.salyk.kg:30040 [21:39:26]ConnectInit lk.salyk.kg [21:39:26]written 0, free lines is 4095 [21:39:26]Connected sock=10 [21:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 5E 74 1D 01 06 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5A 00 00 00 F4 03 04 00 11 6D 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C4 00 00 35 04 06 00 87 27 45 D7 2C C7 A6 71 CA F4 2F 7D 52 72 [21:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 12 D4 47 00 19 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C4 00 00 F4 03 04 00 A7 18 19 67 B6 04 01 00 00 38 81 FB 34 74 2C 75 39 [21:39:27]CommunicateWithHost err = 0 [21:39:27]CheckOFDResponse [21:39:27]1017 (14) - 77093643461234 [21:39:27]1041 (16) - 0000000000875000 [21:39:27]1040 (4) - 50345 [21:39:27]1012 (4) - 23.10.2024 15:39 [21:39:27]1206 (1) - 0 [21:39:27]OFD Sender: Remove packet 50345 [21:39:27]ProducePacketName [21:39:27]name=ofd_packets/00050345 [21:39:27]NVStorageDeleteData [21:39:27]Write to MH i2c: 01 00 00 4F 1B 6A [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 07 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 19 0D 97 [21:39:27]RasterBufferAndPrint [21:39:27]line [21:39:27]line [21:39:27]line [21:39:27]line [21:39:27]line [21:39:27]written 0, free lines is 3359 [21:39:27]process_action close_receipt done [21:39:27]requested_data is exist [21:39:27]produce_requested_data [21:39:27]requested_item fm.sn is exist - process it [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 11 00 00 [21:39:27]Write to MH i2c: E2 08 00 56 1B 80 11 00 00 00 00 00 00 EB [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 56 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 32 [21:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:39:27]wFMCommunicate OK [21:39:27]requested_item fd.num is exist - process it [21:39:27]SAM_PROTO_GetFieldsCounters [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 13 00 00 [21:39:27]Write to MH i2c: E2 08 00 57 1B 80 13 00 00 00 00 00 00 EE [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 62 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 62 00 57 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A9 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A9 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_GetFieldsCounters done [21:39:27]requested_item shift.num is exist - process it [21:39:27]requested_item shift.opened is exist - process it [21:39:27]req_shift_opened [21:39:27]FM_GetShiftState [21:39:27]SAM_PROTO_GetShiftState [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 13 01 00 [21:39:27]Write to MH i2c: E2 08 00 58 1B 80 13 01 00 00 00 00 00 F0 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 58 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3C [21:39:27]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_GetShiftState done [21:39:27]FM_GetShiftState done [21:39:27]req_shift_opened done [21:39:27]requested_item shift.open_date is exist - process it [21:39:27]req_shift_open_date [21:39:27]req_shift_open_date done [21:39:27]produce_requested_data done [21:39:27]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50345,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:39:27]process_action_free close_receipt [21:39:27]json_value_free [21:39:27]json_value_free done [21:39:27]process_json_proto returns [21:39:27]Send response to host [21:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50345,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:39:27]free response buf [21:39:27]execute_script done [21:39:27]execute_script returns [21:39:27]free content buf [21:39:27]Sock 9.Close socket [21:39:27]Sock 9.Thread stoped [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:19]accept exits with 7 [21:47:19]New connection [21:47:19]New thread 3067305316 created [21:47:19]Thread 3067161956 joined [21:47:19]Waiting for new connection... [21:47:19] Sock 7.Parse request [21:47:19]Sock 7.Check first char [21:47:19]Sock 7.First char is OK [21:47:19]request: POST /json_proto HTTP/1.0 [21:47:19]Method: POST [21:47:19]URL: /json_proto [21:47:19]Method is POST - this is cgi request [21:47:19]url: /json_proto [21:47:19]query_string will be loaded in cgi processing [21:47:19]execute_cgi json_proto POST (null) [21:47:19]execute_cgi path=json_proto method=POST [21:47:19]POST find Content-Length [21:47:19]Host: 172.17.49.196:8080 [21:47:19]Content-Length: 961 [21:47:19]Content-Type: application/json [21:47:19] [21:47:19]POST finish read [21:47:19]Found Content-Length = 961 [21:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164255", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:19]execute_script... [21:47: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)164255", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:19]POST & json_proto [21:47:19]process_json_proto [21:47:19]json parsed OK: [21:47:19]protocol is kg_v1.0 [21:47:19]action value=close_receipt [21:47:19]process_action close_receipt [21:47:19]cmd_close_receipt [21:47:19]MH_GetDate [21:47:19]Write to MH i2c: F0 00 00 59 1B 63 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: F0 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: F0 09 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: F0 09 00 59 1B 00 ED 6E 19 67 BD 3B 11 67 B7 [21:47:19]GetLastDocTimeStamp 1729719569 [21:47:19]current date 1729720045 [21:47:19]FM_GetShiftState [21:47:19]SAM_PROTO_GetShiftState [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 13 01 00 [21:47:19]Write to MH i2c: E2 08 00 5A 1B 80 13 01 00 00 00 00 00 F2 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0E 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0E 00 5A 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3E [21:47:19]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:47:19]wFMCommunicate OK [21:47:19]SAM_PROTO_GetShiftState done [21:47:19]FM_GetShiftState done [21:47:19]opened in 1729642370 [21:47:19]opened+sec_in_day 1729728770 [21:47:19]quantity*price = 7000 [21:47:19]sum+1 = 7001 [21:47:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47802995 Сигареты Winston XS Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 214.00 НСП 1% : 1.89 НДС 12% : 22.72 Наличными: 214.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 91 23.10.2024 21:47 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50346 ФПД: 263579260575765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214725&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50346&fm=263579260575765&tin=02508201610067®Number=0000000000097022&sum=21400 0 [21:47:21]StoreToDocumentArchive [21:47:21]shift 491 fd 50346 [21:47:21]save to /storage/0491/doc_00050346 [21:47:21]save last doc name /storage/0491/doc_00050346 to /storage/kkm_last_doc_name [21:47:21]save OK [21:47:21]Clear old archive folders... [21:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=409 [21:47:21]tlvbuf is B6F17B10 [21:47:21]SAM_PROTO_ClearQueue [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 09 00 00 [21:47:21]Write to MH i2c: E2 08 00 67 1B 80 09 00 00 00 00 00 00 F4 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [21:47:21]RAPDU: 90 00 [21:47:21]wFMCommunicate OK [21:47:21]SAM_PROTO_ClearQueue done [21:47:21]KKMCreateOFDPacket [21:47:21]OFDProtocolAddRootSTLVToBuf [21:47:21]FM_MakeSignedData [21:47:21]FM_MakeSignedData [21:47:21]SAM_PROTO_SignData [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 0D 01 02 [21:47:21]Write to MH i2c: E2 08 00 68 1B 80 0D 01 02 00 00 00 00 FC [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [21:47:21]RAPDU: 90 00 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=255 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [21:47:21]Write to MH i2c: E2 02 01 69 1B 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 A8 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [21:47:21]RAPDU: 90 00 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=168 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 0D 02 02 A3 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 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 ED 6E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C4 00 00 35 04 06 00 EF B9 54 32 60 15 [21:47:21]Write to MH i2c: E2 AB 00 6A 1B 80 0D 02 02 A3 00 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 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 ED 6E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C4 00 00 35 04 06 00 EF B9 54 32 60 15 00 00 25 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 03 00 6A 1B 00 90 00 F9 [21:47:21]RAPDU: 90 00 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 0D 03 02 [21:47:21]Write to MH i2c: E2 08 00 6B 1B 80 0D 03 02 00 00 00 00 01 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 0B 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 0B 00 6B 1B 00 80 CA C5 03 9A BF 5E 99 90 00 64 [21:47:21]RAPDU: 80 CA C5 03 9A BF 5E 99 90 00 [21:47:21]wFMCommunicate OK [21:47:21]SAM_PROTO_SignData done [21:47:21]FM_MakeSignedData done [21:47:21]CreateOFDProtocolMessage [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 11 00 00 [21:47:21]Write to MH i2c: E2 08 00 6C 1B 80 11 00 00 00 00 00 00 01 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 17 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 17 00 6C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 48 [21:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:47:21]wFMCommunicate OK [21:47:21]CreateOFDProtocolMessage done [21:47:21]OFDSenderStorePacket 50346 [21:47:21]StoreOFDPacket docnum=50346 [21:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AD 01 00 00 F2 D2 A5 01 BF 1B 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 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 ED 6E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C4 00 00 35 04 06 00 EF B9 54 32 60 15 80 CA C5 03 9A BF 5E 99 [21:47:21]CheckFolder [21:47:21]dirname=/storage/ofd_packets [21:47:21]CheckFolder done [21:47:21]ProducePacketName [21:47:21]name=ofd_packets/00050346 [21:47:21]NVStorageSaveData ofd_packets/00050346 [21:47:21]File name is /storage/ofd_packets/00050346 [21:47:21]Write 459 bytes [21:47:21]NVStorageSaveData done [21:47:21]OFDSenderStorePacket done [21:47:21]KKMCreateOFDPacket done [21:47:21]NVStorageSaveData kkm_last_timestamp [21:47:21]File name is /storage/kkm_last_timestamp [21:47:21]Write 4 bytes [21:47:21]NVStorageSaveData done [21:47:21]ExternCall_PrintAddStr [21:47:21]wPrintStart [21:47:21]Write to MH i2c: 01 00 00 6D 1B 88 [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: 01 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: 01 07 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: 01 07 00 6D 1B 00 00 00 00 00 FF 0F 9D [21:47:22]RasterBufferAndPrint [21:47:22]line Счет N : (3)164255 [21:47:22]line ИНН: 02508201610067 [21:47:22]line Контрольно-Кассовый Чек [21:47:22]line ПРОДАЖА [21:47:22]line Товар: 4870202521179 [21:47:22]line Чай холодный MAXI черный персик ПЭТ 0,45 [21:47:22]line 1.000 * 70.00 [21:47:22]line = 70.00 [21:47:22]line НДС 12% НСП 1% [21:47:22]line > о реализуемом товаре [21:47:22]line Товар: 47802995 [21:47:22]line Сигареты Winston XS Silver [21:47:22]line 1.000 * 144.00 [21:47:22]line = 144.00 [21:47:22]line НДС 12% НСП 1% [21:47:22]line > о реализуемом товаре [21:47:22]line ИТОГО: 214.00 [21:47:22]line НСП 1% : 1.89 [21:47:22]line НДС 12% : 22.72 [21:47:22]line Наличными: 214.00 [21:47:22]line Безнал.: 0.00 [21:47:22]line Место: АЗС № 80 "Партнер Нефть" [21:47:22]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:47:22]line СНО: Общий режим [21:47:22]line Чек 91 23.10.2024 21:47 [21:47:22]line Смена: 491 ФФД: 1.0 [21:47:22]line ЗНМ: 0300000090 [21:47:22]line РНМ: 0000000000097022 [21:47:22]line Версия ККМ: 001 [21:47:22]line ФМ: 0000000000875000 [21:47:22]line ФД: 50346 [21:47:22]line ФПД: 263579260575765 [21:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214725&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50346&fm=263579260575765&tin=02508201610067®Number=0000000000097022&sum=21400 [21:47:22]line 0 [21:47:22]OFD Sender: Processing packet 50346 [packets to send 7, broken 6] [21:47:22]ProducePacketName [21:47:22]name=ofd_packets/00050346 [21:47:22]OFD Sender: To server: pG, [21:47:22]CommunicateWithHost lk.salyk.kg:30040 [21:47:22]ConnectInit lk.salyk.kg [21:47:22]written 0, free lines is 4095 [21:47:22]Connected sock=10 [21:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AD 01 00 00 F2 D2 A5 01 BF 1B 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 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 ED 6E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C4 00 00 35 04 06 00 EF B9 54 32 60 15 80 CA C5 03 9A BF 5E 99 [21:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 3E 91 47 00 AD CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C4 00 00 F4 03 04 00 83 1A 19 67 B6 04 01 00 00 BE D9 F5 5B ED 0E 39 E6 [21:47:22]CommunicateWithHost err = 0 [21:47:22]CheckOFDResponse [21:47:22]1017 (14) - 77093643461234 [21:47:22]1041 (16) - 0000000000875000 [21:47:22]1040 (4) - 50346 [21:47:22]1012 (4) - 23.10.2024 15:47 [21:47:22]1206 (1) - 0 [21:47:22]OFD Sender: Remove packet 50346 [21:47:22]ProducePacketName [21:47:22]name=ofd_packets/00050346 [21:47:22]NVStorageDeleteData [21:47:22]Write to MH i2c: 01 00 00 9C 1B B7 [21:47:22]Write i2c OK [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: 01 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: 01 07 00 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: 01 07 00 9C 1B 00 00 00 00 00 D4 0C 9E [21:47:22]RasterBufferAndPrint [21:47:22]line [21:47:22]line [21:47:22]line [21:47:22]line [21:47:22]line [21:47:22]written 0, free lines is 3291 [21:47:22]process_action close_receipt done [21:47:22]requested_data is exist [21:47:22]produce_requested_data [21:47:22]requested_item fm.sn is exist - process it [21:47:22]wFMCommunicate request_size=4 [21:47:22]MH_SAM_APDU [21:47:22]CAPDU: 80 11 00 00 [21:47:22]Write to MH i2c: E2 08 00 A3 1B 80 11 00 00 00 00 00 00 38 [21:47:22]Write i2c OK [21:47:22]MH_I2C_Read... [21:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:22]Read from MH i2c: E2 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 17 00 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 17 00 A3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7F [21:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:47:22]wFMCommunicate OK [21:47:22]requested_item fd.num is exist - process it [21:47:22]SAM_PROTO_GetFieldsCounters [21:47:22]wFMCommunicate request_size=4 [21:47:22]MH_SAM_APDU [21:47:22]CAPDU: 80 13 00 00 [21:47:22]Write to MH i2c: E2 08 00 A4 1B 80 13 00 00 00 00 00 00 3B [21:47:22]Write i2c OK [21:47:22]MH_I2C_Read... [21:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:22]Read from MH i2c: E2 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 62 00 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 62 00 A4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AA C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [21:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AA C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:22]wFMCommunicate OK [21:47:22]SAM_PROTO_GetFieldsCounters done [21:47:22]requested_item shift.num is exist - process it [21:47:22]requested_item shift.opened is exist - process it [21:47:22]req_shift_opened [21:47:22]FM_GetShiftState [21:47:22]SAM_PROTO_GetShiftState [21:47:22]wFMCommunicate request_size=4 [21:47:22]MH_SAM_APDU [21:47:22]CAPDU: 80 13 01 00 [21:47:22]Write to MH i2c: E2 08 00 A5 1B 80 13 01 00 00 00 00 00 3D [21:47:22]Write i2c OK [21:47:22]MH_I2C_Read... [21:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:22]Read from MH i2c: E2 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 0E 00 [21:47:22]MH_I2C_Read... [21:47:22]Read from MH i2c: E2 0E 00 A5 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 89 [21:47:22]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [21:47:22]wFMCommunicate OK [21:47:22]SAM_PROTO_GetShiftState done [21:47:22]FM_GetShiftState done [21:47:22]req_shift_opened done [21:47:22]requested_item shift.open_date is exist - process it [21:47:22]req_shift_open_date [21:47:22]req_shift_open_date done [21:47:22]produce_requested_data done [21:47:22]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50346,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [21:47:22]process_action_free close_receipt [21:47:22]json_value_free [21:47:22]json_value_free done [21:47:22]process_json_proto returns [21:47:22]Send response to host [21:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50346,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [21:47:22]free response buf [21:47:22]execute_script done [21:47:22]execute_script returns [21:47:22]free content buf [21:47:22]Sock 7.Close socket [21:47:22]Sock 7.Thread stoped [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:32]accept exits with 9 [22:00:32]New connection [22:00:32]New thread 3067161956 created [22:00:32]Thread 3067305316 joined [22:00:32]Waiting for new connection... [22:00:32] Sock 9.Parse request [22:00:32]Sock 9.Check first char [22:00:32]Sock 9.First char is OK [22:00:32]request: POST /json_proto HTTP/1.0 [22:00:32]Method: POST [22:00:32]URL: /json_proto [22:00:32]Method is POST - this is cgi request [22:00:32]url: /json_proto [22:00:32]query_string will be loaded in cgi processing [22:00:32]execute_cgi json_proto POST (null) [22:00:32]execute_cgi path=json_proto method=POST [22:00:32]POST find Content-Length [22:00:32]Host: 172.17.49.196:8080 [22:00:32]Content-Length: 621 [22:00:32]Content-Type: application/json [22:00:32] [22:00:32]POST finish read [22:00:32]Found Content-Length = 621 [22:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164256", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:32]execute_script... [22:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164256", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:32]POST & json_proto [22:00:32]process_json_proto [22:00:32]json parsed OK: [22:00:32]protocol is kg_v1.0 [22:00:32]action value=close_receipt [22:00:32]process_action close_receipt [22:00:32]cmd_close_receipt [22:00:32]MH_GetDate [22:00:32]Write to MH i2c: F0 00 00 A6 1B B0 [22:00:32]Write i2c OK [22:00:32]MH_I2C_Read... [22:00:32]Read from MH i2c: F0 [22:00:32]MH_I2C_Read... [22:00:32]Read from MH i2c: F0 09 00 [22:00:32]MH_I2C_Read... [22:00:32]Read from MH i2c: F0 09 00 A6 1B 00 05 72 19 67 BD 3B 11 67 20 [22:00:32]GetLastDocTimeStamp 1729720045 [22:00:32]current date 1729720837 [22:00:32]FM_GetShiftState [22:00:32]SAM_PROTO_GetShiftState [22:00:32]wFMCommunicate request_size=4 [22:00:32]MH_SAM_APDU [22:00:32]CAPDU: 80 13 01 00 [22:00:32]Write to MH i2c: E2 08 00 A7 1B 80 13 01 00 00 00 00 00 3F [22:00:32]Write i2c OK [22:00:32]MH_I2C_Read... [22:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:32]Read from MH i2c: E2 [22:00:32]MH_I2C_Read... [22:00:32]Read from MH i2c: E2 0E 00 [22:00:32]MH_I2C_Read... [22:00:32]Read from MH i2c: E2 0E 00 A7 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8B [22:00:32]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:00:32]wFMCommunicate OK [22:00:32]SAM_PROTO_GetShiftState done [22:00:32]FM_GetShiftState done [22:00:32]opened in 1729642370 [22:00:32]opened+sec_in_day 1729728770 [22:00:32]quantity*price = 14400 [22:00:32]sum+1 = 14401 [22:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 92 23.10.2024 22:00 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50347 ФПД: 278246410581170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220037&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50347&fm=278246410581170&tin=02508201610067®Number=0000000000097022&sum=14400 0 [22:00:33]StoreToDocumentArchive [22:00:33]shift 491 fd 50347 [22:00:33]save to /storage/0491/doc_00050347 [22:00:33]save last doc name /storage/0491/doc_00050347 to /storage/kkm_last_doc_name [22:00:33]save OK [22:00:33]Clear old archive folders... [22:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:00:33]tlvbuf is 00121840 [22:00:33]SAM_PROTO_ClearQueue [22:00:33]wFMCommunicate request_size=4 [22:00:33]MH_SAM_APDU [22:00:33]CAPDU: 80 09 00 00 [22:00:33]Write to MH i2c: E2 08 00 B4 1B 80 09 00 00 00 00 00 00 41 [22:00:33]Write i2c OK [22:00:33]MH_I2C_Read... [22:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:33]Read from MH i2c: E2 [22:00:33]MH_I2C_Read... [22:00:33]Read from MH i2c: E2 03 00 [22:00:33]MH_I2C_Read... [22:00:33]Read from MH i2c: E2 03 00 B4 1B 00 90 00 43 [22:00:33]RAPDU: 90 00 [22:00:33]wFMCommunicate OK [22:00:33]SAM_PROTO_ClearQueue done [22:00:33]KKMCreateOFDPacket [22:00:33]OFDProtocolAddRootSTLVToBuf [22:00:33]FM_MakeSignedData [22:00:33]FM_MakeSignedData [22:00:33]SAM_PROTO_SignData [22:00:33]wFMCommunicate request_size=4 [22:00:33]MH_SAM_APDU [22:00:33]CAPDU: 80 0D 01 02 [22:00:33]Write to MH i2c: E2 08 00 B5 1B 80 0D 01 02 00 00 00 00 49 [22:00:33]Write i2c OK [22:00:33]MH_I2C_Read... [22:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:33]Read from MH i2c: E2 [22:00:33]MH_I2C_Read... [22:00:33]Read from MH i2c: E2 03 00 [22:00:33]MH_I2C_Read... [22:00:33]Read from MH i2c: E2 03 00 B5 1B 00 90 00 44 [22:00:33]RAPDU: 90 00 [22:00:33]wFMCommunicate OK [22:00:33]wFMCommunicate request_size=255 [22:00:33]MH_SAM_APDU [22:00:33]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5C 00 00 00 F4 03 04 00 05 72 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [22:00:33]Write to MH i2c: E2 02 01 B6 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5C 00 00 00 F4 03 04 00 05 72 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 ED [22:00:33]Write i2c OK [22:00:33]MH_I2C_Read... [22:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:34]Read from MH i2c: E2 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 03 00 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 03 00 B6 1B 00 90 00 45 [22:00:34]RAPDU: 90 00 [22:00:34]wFMCommunicate OK [22:00:34]wFMCommunicate request_size=32 [22:00:34]MH_SAM_APDU [22:00:34]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C4 00 00 35 04 06 00 FD 10 4A 76 74 B2 [22:00:34]Write to MH i2c: E2 23 00 B7 1B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C4 00 00 35 04 06 00 FD 10 4A 76 74 B2 00 00 FF [22:00:34]Write i2c OK [22:00:34]MH_I2C_Read... [22:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:34]Read from MH i2c: E2 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 03 00 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 03 00 B7 1B 00 90 00 46 [22:00:34]RAPDU: 90 00 [22:00:34]wFMCommunicate OK [22:00:34]wFMCommunicate request_size=4 [22:00:34]MH_SAM_APDU [22:00:34]CAPDU: 80 0D 03 02 [22:00:34]Write to MH i2c: E2 08 00 B8 1B 80 0D 03 02 00 00 00 00 4E [22:00:34]Write i2c OK [22:00:34]MH_I2C_Read... [22:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:34]Read from MH i2c: E2 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 0B 00 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 0B 00 B8 1B 00 62 1D 7D 26 B4 79 EA FF 90 00 87 [22:00:34]RAPDU: 62 1D 7D 26 B4 79 EA FF 90 00 [22:00:34]wFMCommunicate OK [22:00:34]SAM_PROTO_SignData done [22:00:34]FM_MakeSignedData done [22:00:34]CreateOFDProtocolMessage [22:00:34]wFMCommunicate request_size=4 [22:00:34]MH_SAM_APDU [22:00:34]CAPDU: 80 11 00 00 [22:00:34]Write to MH i2c: E2 08 00 B9 1B 80 11 00 00 00 00 00 00 4E [22:00:34]Write i2c OK [22:00:34]MH_I2C_Read... [22:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:34]Read from MH i2c: E2 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 17 00 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: E2 17 00 B9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 95 [22:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:00:34]wFMCommunicate OK [22:00:34]CreateOFDProtocolMessage done [22:00:34]OFDSenderStorePacket 50347 [22:00:34]StoreOFDPacket docnum=50347 [22:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 CE 03 1D 01 46 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5C 00 00 00 F4 03 04 00 05 72 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C4 00 00 35 04 06 00 FD 10 4A 76 74 B2 62 1D 7D 26 B4 79 EA FF [22:00:34]CheckFolder [22:00:34]dirname=/storage/ofd_packets [22:00:34]CheckFolder done [22:00:34]ProducePacketName [22:00:34]name=ofd_packets/00050347 [22:00:34]NVStorageSaveData ofd_packets/00050347 [22:00:34]File name is /storage/ofd_packets/00050347 [22:00:34]Write 323 bytes [22:00:34]NVStorageSaveData done [22:00:34]OFDSenderStorePacket done [22:00:34]KKMCreateOFDPacket done [22:00:34]NVStorageSaveData kkm_last_timestamp [22:00:34]File name is /storage/kkm_last_timestamp [22:00:34]Write 4 bytes [22:00:34]NVStorageSaveData done [22:00:34]OFD Sender: Processing packet 50347 [packets to send 7, broken 6] [22:00:34]ProducePacketName [22:00:34]name=ofd_packets/00050347 [22:00:34]OFD Sender: To server: pG, [22:00:34]CommunicateWithHost lk.salyk.kg:30040 [22:00:34]ConnectInit lk.salyk.kg [22:00:34]ExternCall_PrintAddStr [22:00:34]wPrintStart [22:00:34]Write to MH i2c: 01 00 00 BA 1B D5 [22:00:34]Write i2c OK [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: 01 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: 01 07 00 [22:00:34]MH_I2C_Read... [22:00:34]Read from MH i2c: 01 07 00 BA 1B 00 00 00 00 00 FF 0F EA [22:00:34]RasterBufferAndPrint [22:00:34]line Счет N : (3)164256 [22:00:34]line ИНН: 02508201610067 [22:00:34]line Контрольно-Кассовый Чек [22:00:34]line ПРОДАЖА [22:00:34]line Товар: 48743570 [22:00:34]line Сигареты Winston XStyle Blue [22:00:34]line 1.000 * 144.00 [22:00:34]line = 144.00 [22:00:34]line НДС 12% НСП 1% [22:00:34]line > о реализуемом товаре [22:00:34]line ИТОГО: 144.00 [22:00:34]line НСП 1% : 1.27 [22:00:34]line НДС 12% : 15.29 [22:00:34]line Наличными: 144.00 [22:00:34]line Безнал.: 0.00 [22:00:34]line Место: АЗС № 80 "Партнер Нефть" [22:00:34]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:00:34]line СНО: Общий режим [22:00:34]line Чек 92 23.10.2024 22:00 [22:00:34]line Смена: 491 ФФД: 1.0 [22:00:34]line ЗНМ: 0300000090 [22:00:34]line РНМ: 0000000000097022 [22:00:34]line Версия ККМ: 001 [22:00:34]line ФМ: 0000000000875000 [22:00:34]line ФД: 50347 [22:00:34]line ФПД: 278246410581170 [22:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220037&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50347&fm=278246410581170&tin=02508201610067®Number=0000000000097022&sum=14400 [22:00:34]line 0 [22:00:34]Connected sock=11 [22:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 CE 03 1D 01 46 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5C 00 00 00 F4 03 04 00 05 72 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C4 00 00 35 04 06 00 FD 10 4A 76 74 B2 62 1D 7D 26 B4 79 EA FF [22:00:34]written 0, free lines is 4095 [22:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 34 C2 47 00 17 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C4 00 00 F4 03 04 00 9B 1D 19 67 B6 04 01 00 00 A9 D9 1B AA 09 FB 66 66 [22:00:34]CommunicateWithHost err = 0 [22:00:34]CheckOFDResponse [22:00:34]1017 (14) - 77093643461234 [22:00:34]1041 (16) - 0000000000875000 [22:00:34]1040 (4) - 50347 [22:00:34]1012 (4) - 23.10.2024 16:00 [22:00:34]1206 (1) - 0 [22:00:34]OFD Sender: Remove packet 50347 [22:00:34]ProducePacketName [22:00:34]name=ofd_packets/00050347 [22:00:34]NVStorageDeleteData [22:00:35]Write to MH i2c: 01 00 00 E2 1B FD [22:00:35]Write i2c OK [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: 01 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: 01 07 00 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: 01 07 00 E2 1B 00 00 00 00 00 16 0D 27 [22:00:35]RasterBufferAndPrint [22:00:35]line [22:00:35]line [22:00:35]line [22:00:35]line [22:00:35]line [22:00:35]written 0, free lines is 3357 [22:00:35]process_action close_receipt done [22:00:35]requested_data is exist [22:00:35]produce_requested_data [22:00:35]requested_item fm.sn is exist - process it [22:00:35]wFMCommunicate request_size=4 [22:00:35]MH_SAM_APDU [22:00:35]CAPDU: 80 11 00 00 [22:00:35]Write to MH i2c: E2 08 00 E9 1B 80 11 00 00 00 00 00 00 7E [22:00:35]Write i2c OK [22:00:35]MH_I2C_Read... [22:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:35]Read from MH i2c: E2 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 17 00 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 17 00 E9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C5 [22:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:00:35]wFMCommunicate OK [22:00:35]requested_item fd.num is exist - process it [22:00:35]SAM_PROTO_GetFieldsCounters [22:00:35]wFMCommunicate request_size=4 [22:00:35]MH_SAM_APDU [22:00:35]CAPDU: 80 13 00 00 [22:00:35]Write to MH i2c: E2 08 00 EA 1B 80 13 00 00 00 00 00 00 81 [22:00:35]Write i2c OK [22:00:35]MH_I2C_Read... [22:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:35]Read from MH i2c: E2 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 62 00 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 62 00 EA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AB C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [22:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AB C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:35]wFMCommunicate OK [22:00:35]SAM_PROTO_GetFieldsCounters done [22:00:35]requested_item shift.num is exist - process it [22:00:35]requested_item shift.opened is exist - process it [22:00:35]req_shift_opened [22:00:35]FM_GetShiftState [22:00:35]SAM_PROTO_GetShiftState [22:00:35]wFMCommunicate request_size=4 [22:00:35]MH_SAM_APDU [22:00:35]CAPDU: 80 13 01 00 [22:00:35]Write to MH i2c: E2 08 00 EB 1B 80 13 01 00 00 00 00 00 83 [22:00:35]Write i2c OK [22:00:35]MH_I2C_Read... [22:00:35]OFD Sender: No OFD packet to send [22:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:35]Read from MH i2c: E2 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 0E 00 [22:00:35]MH_I2C_Read... [22:00:35]Read from MH i2c: E2 0E 00 EB 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CF [22:00:35]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:00:35]wFMCommunicate OK [22:00:35]SAM_PROTO_GetShiftState done [22:00:35]FM_GetShiftState done [22:00:35]req_shift_opened done [22:00:35]requested_item shift.open_date is exist - process it [22:00:35]req_shift_open_date [22:00:35]req_shift_open_date done [22:00:35]produce_requested_data done [22:00:35]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50347,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [22:00:35]process_action_free close_receipt [22:00:35]json_value_free [22:00:35]json_value_free done [22:00:35]process_json_proto returns [22:00:35]Send response to host [22:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50347,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [22:00:35]free response buf [22:00:35]execute_script done [22:00:35]execute_script returns [22:00:35]free content buf [22:00:35]Sock 9.Close socket [22:00:35]Sock 9.Thread stoped [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:18]accept exits with 7 [22:11:18]New connection [22:11:18]New thread 3067305316 created [22:11:18]Thread 3067161956 joined [22:11:18]Waiting for new connection... [22:11:18] Sock 7.Parse request [22:11:18]Sock 7.Check first char [22:11:18]Sock 7.First char is OK [22:11:18]request: POST /json_proto HTTP/1.0 [22:11:18]Method: POST [22:11:18]URL: /json_proto [22:11:18]Method is POST - this is cgi request [22:11:18]url: /json_proto [22:11:18]query_string will be loaded in cgi processing [22:11:18]execute_cgi json_proto POST (null) [22:11:18]execute_cgi path=json_proto method=POST [22:11:18]POST find Content-Length [22:11:18]Host: 172.17.49.196:8080 [22:11:18]Content-Length: 1007 [22:11:18]Content-Type: application/json [22:11:18] [22:11:18]POST finish read [22:11:18]Found Content-Length = 1007 [22:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164257", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: Mbank", "payments": [ { "type": 1, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:18]execute_script... [22:11: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)164257", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: Mbank", "payments": [ { "type": 1, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:18]POST & json_proto [22:11:18]process_json_proto [22:11:18]json parsed OK: [22:11:18]protocol is kg_v1.0 [22:11:18]action value=close_receipt [22:11:18]process_action close_receipt [22:11:18]cmd_close_receipt [22:11:18]MH_GetDate [22:11:18]Write to MH i2c: F0 00 00 EC 1B F6 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: F0 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: F0 09 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: F0 09 00 EC 1B 00 8C 74 19 67 BD 3B 11 67 EF [22:11:18]GetLastDocTimeStamp 1729720837 [22:11:18]current date 1729721484 [22:11:18]FM_GetShiftState [22:11:18]SAM_PROTO_GetShiftState [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 13 01 00 [22:11:18]Write to MH i2c: E2 08 00 ED 1B 80 13 01 00 00 00 00 00 85 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 0E 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 0E 00 ED 1B 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 D1 [22:11:18]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:11:18]wFMCommunicate OK [22:11:18]SAM_PROTO_GetShiftState done [22:11:18]FM_GetShiftState done [22:11:18]opened in 1729642370 [22:11:18]opened+sec_in_day 1729728770 [22:11:18]quantity*price = 14400 [22:11:18]sum+1 = 14401 [22:11:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 203.00 НСП 1% : 1.79 НДС 12% : 21.55 Наличными: 0.00 Безнал.: 203.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 93 23.10.2024 22:11 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50348 ФПД: 163994272456378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221124&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50348&fm=163994272456378&tin=02508201610067®Number=0000000000097022&sum=20300 0 [22:11:19]StoreToDocumentArchive [22:11:19]shift 491 fd 50348 [22:11:19]save to /storage/0491/doc_00050348 [22:11:19]save last doc name /storage/0491/doc_00050348 to /storage/kkm_last_doc_name [22:11:19]save OK [22:11:19]Clear old archive folders... [22:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=384 [22:11:19]tlvbuf is 00165830 [22:11:19]SAM_PROTO_ClearQueue [22:11:19]wFMCommunicate request_size=4 [22:11:19]MH_SAM_APDU [22:11:19]CAPDU: 80 09 00 00 [22:11:19]Write to MH i2c: E2 08 00 FA 1B 80 09 00 00 00 00 00 00 87 [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:19]Read from MH i2c: E2 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 FA 1B 00 90 00 89 [22:11:19]RAPDU: 90 00 [22:11:19]wFMCommunicate OK [22:11:19]SAM_PROTO_ClearQueue done [22:11:19]KKMCreateOFDPacket [22:11:19]OFDProtocolAddRootSTLVToBuf [22:11:19]FM_MakeSignedData [22:11:19]FM_MakeSignedData [22:11:19]SAM_PROTO_SignData [22:11:19]wFMCommunicate request_size=4 [22:11:19]MH_SAM_APDU [22:11:19]CAPDU: 80 0D 01 02 [22:11:19]Write to MH i2c: E2 08 00 FB 1B 80 0D 01 02 00 00 00 00 8F [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:20]Read from MH i2c: E2 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 FB 1B 00 90 00 8A [22:11:20]RAPDU: 90 00 [22:11:20]wFMCommunicate OK [22:11:20]wFMCommunicate request_size=255 [22:11:20]MH_SAM_APDU [22:11:20]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 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 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [22:11:20]Write to MH i2c: E2 02 01 FC 1B 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 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 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 2C [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:20]Read from MH i2c: E2 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [22:11:20]RAPDU: 90 00 [22:11:20]wFMCommunicate OK [22:11:20]wFMCommunicate request_size=143 [22:11:20]MH_SAM_APDU [22:11:20]CAPDU: 80 0D 02 02 8A B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 74 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C4 00 00 35 04 06 00 95 26 E4 5A DE BA [22:11:20]Write to MH i2c: E2 92 00 FD 1B 80 0D 02 02 8A 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 74 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C4 00 00 35 04 06 00 95 26 E4 5A DE BA 00 00 4D [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:20]Read from MH i2c: E2 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 03 00 FD 1B 00 90 00 8C [22:11:20]RAPDU: 90 00 [22:11:20]wFMCommunicate OK [22:11:20]wFMCommunicate request_size=4 [22:11:20]MH_SAM_APDU [22:11:20]CAPDU: 80 0D 03 02 [22:11:20]Write to MH i2c: E2 08 00 FE 1B 80 0D 03 02 00 00 00 00 94 [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:20]Read from MH i2c: E2 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 0B 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 0B 00 FE 1B 00 CE CD D1 95 27 11 E7 7E 90 00 33 [22:11:20]RAPDU: CE CD D1 95 27 11 E7 7E 90 00 [22:11:20]wFMCommunicate OK [22:11:20]SAM_PROTO_SignData done [22:11:20]FM_MakeSignedData done [22:11:20]CreateOFDProtocolMessage [22:11:20]wFMCommunicate request_size=4 [22:11:20]MH_SAM_APDU [22:11:20]CAPDU: 80 11 00 00 [22:11:20]Write to MH i2c: E2 08 00 FF 1B 80 11 00 00 00 00 00 00 94 [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:20]Read from MH i2c: E2 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 17 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: E2 17 00 FF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DB [22:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:11:20]wFMCommunicate OK [22:11:20]CreateOFDProtocolMessage done [22:11:20]OFDSenderStorePacket 50348 [22:11:20]StoreOFDPacket docnum=50348 [22:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 94 01 00 00 84 C4 8C 01 29 CE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 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 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 74 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C4 00 00 35 04 06 00 95 26 E4 5A DE BA CE CD D1 95 27 11 E7 7E [22:11:20]CheckFolder [22:11:20]dirname=/storage/ofd_packets [22:11:20]CheckFolder done [22:11:20]ProducePacketName [22:11:20]name=ofd_packets/00050348 [22:11:20]NVStorageSaveData ofd_packets/00050348 [22:11:20]File name is /storage/ofd_packets/00050348 [22:11:20]Write 434 bytes [22:11:20]NVStorageSaveData done [22:11:20]OFDSenderStorePacket done [22:11:20]KKMCreateOFDPacket done [22:11:20]NVStorageSaveData kkm_last_timestamp [22:11:20]File name is /storage/kkm_last_timestamp [22:11:20]Write 4 bytes [22:11:20]NVStorageSaveData done [22:11:20]ExternCall_PrintAddStr [22:11:20]wPrintStart [22:11:20]Write to MH i2c: 01 00 00 00 1C 1C [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 07 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 FF 0F 31 [22:11:20]RasterBufferAndPrint [22:11:20]line Счет N : (3)164257 [22:11:20]line ИНН: 02508201610067 [22:11:20]line Контрольно-Кассовый Чек [22:11:20]line ПРОДАЖА [22:11:20]line Товар: 48743570 [22:11:20]line Сигареты Winston XStyle Blue [22:11:20]line 1.000 * 144.00 [22:11:20]line = 144.00 [22:11:20]line НДС 12% НСП 1% [22:11:20]line > о реализуемом товаре [22:11:20]line Товар: 4607065001445 [22:11:20]line Шок батончик Snickers 50,5г [22:11:20]line 1.000 * 59.00 [22:11:20]line = 59.00 [22:11:20]line НДС 12% НСП 1% [22:11:20]line > о реализуемом товаре [22:11:20]line ИТОГО: 203.00 [22:11:20]line НСП 1% : 1.79 [22:11:20]line НДС 12% : 21.55 [22:11:20]line Наличными: 0.00 [22:11:20]line Безнал.: 203.00 [22:11:20]line Место: АЗС № 80 "Партнер Нефть" [22:11:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:11:20]line СНО: Общий режим [22:11:20]line Чек 93 23.10.2024 22:11 [22:11:20]line Смена: 491 ФФД: 1.0 [22:11:20]line ЗНМ: 0300000090 [22:11:20]line РНМ: 0000000000097022 [22:11:20]line Версия ККМ: 001 [22:11:20]line Платежная система: Mbank [22:11:20]line ФМ: 0000000000875000 [22:11:20]line ФД: 50348 [22:11:20]line ФПД: 163994272456378 [22:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221124&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50348&fm=163994272456378&tin=02508201610067®Number=0000000000097022&sum=20300 [22:11:20]line 0 [22:11:20]OFD Sender: Processing packet 50348 [packets to send 7, broken 6] [22:11:20]ProducePacketName [22:11:20]name=ofd_packets/00050348 [22:11:20]OFD Sender: To server: pG, [22:11:20]CommunicateWithHost lk.salyk.kg:30040 [22:11:20]ConnectInit lk.salyk.kg [22:11:20]written 0, free lines is 4095 [22:11:21]Connected sock=10 [22:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 94 01 00 00 84 C4 8C 01 29 CE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 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 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 74 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C4 00 00 35 04 06 00 95 26 E4 5A DE BA CE CD D1 95 27 11 E7 7E [22:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 33 C9 47 00 F9 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C4 00 00 F4 03 04 00 22 20 19 67 B6 04 01 00 00 97 11 34 5E B0 B4 C9 03 [22:11:21]CommunicateWithHost err = 0 [22:11:21]CheckOFDResponse [22:11:21]1017 (14) - 77093643461234 [22:11:21]1041 (16) - 0000000000875000 [22:11:21]1040 (4) - 50348 [22:11:21]1012 (4) - 23.10.2024 16:11 [22:11:21]1206 (1) - 0 [22:11:21]OFD Sender: Remove packet 50348 [22:11:21]ProducePacketName [22:11:21]name=ofd_packets/00050348 [22:11:21]NVStorageDeleteData [22:11:21]Write to MH i2c: 01 00 00 2F 1C 4B [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: 01 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: 01 07 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: 01 07 00 2F 1C 00 00 00 00 00 CB 0C 29 [22:11:21]RasterBufferAndPrint [22:11:21]line [22:11:21]line [22:11:21]line [22:11:21]line [22:11:21]line [22:11:21]written 0, free lines is 3281 [22:11:21]process_action close_receipt done [22:11:21]requested_data is exist [22:11:21]produce_requested_data [22:11:21]requested_item fm.sn is exist - process it [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 11 00 00 [22:11:21]Write to MH i2c: E2 08 00 36 1C 80 11 00 00 00 00 00 00 CC [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 17 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 17 00 36 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 13 [22:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:11:21]wFMCommunicate OK [22:11:21]requested_item fd.num is exist - process it [22:11:21]SAM_PROTO_GetFieldsCounters [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 00 00 [22:11:21]Write to MH i2c: E2 08 00 37 1C 80 13 00 00 00 00 00 00 CF [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 37 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AC C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AC C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetFieldsCounters done [22:11:21]requested_item shift.num is exist - process it [22:11:21]requested_item shift.opened is exist - process it [22:11:21]req_shift_opened [22:11:21]FM_GetShiftState [22:11:21]SAM_PROTO_GetShiftState [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 01 00 [22:11:21]Write to MH i2c: E2 08 00 38 1C 80 13 01 00 00 00 00 00 D1 [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 38 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1D [22:11:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetShiftState done [22:11:21]FM_GetShiftState done [22:11:21]req_shift_opened done [22:11:21]requested_item shift.open_date is exist - process it [22:11:21]req_shift_open_date [22:11:21]req_shift_open_date done [22:11:21]produce_requested_data done [22:11:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50348,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [22:11:21]process_action_free close_receipt [22:11:21]json_value_free [22:11:21]json_value_free done [22:11:21]process_json_proto returns [22:11:21]Send response to host [22:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50348,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [22:11:21]free response buf [22:11:21]execute_script done [22:11:21]execute_script returns [22:11:21]free content buf [22:11:21]Sock 7.Close socket [22:11:21]Sock 7.Thread stoped [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:33]accept exits with 9 [22:40:33]New connection [22:40:33]New thread 3067161956 created [22:40:33]Thread 3067305316 joined [22:40:33]Waiting for new connection... [22:40:33] Sock 9.Parse request [22:40:33]Sock 9.Check first char [22:40:33]Sock 9.First char is OK [22:40:33]request: POST /json_proto HTTP/1.0 [22:40:33]Method: POST [22:40:33]URL: /json_proto [22:40:33]Method is POST - this is cgi request [22:40:33]url: /json_proto [22:40:33]query_string will be loaded in cgi processing [22:40:33]execute_cgi json_proto POST (null) [22:40:33]execute_cgi path=json_proto method=POST [22:40:33]POST find Content-Length [22:40:33]Host: 172.17.49.196:8080 [22:40:33]Content-Length: 749 [22:40:33]Content-Type: application/json [22:40:33] [22:40:33]POST finish read [22:40:33]Found Content-Length = 749 [22:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164258", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:33]execute_script... [22:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164258", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:33]POST & json_proto [22:40:33]process_json_proto [22:40:33]json parsed OK: [22:40:33]protocol is kg_v1.0 [22:40:33]action value=close_receipt [22:40:33]process_action close_receipt [22:40:33]cmd_close_receipt [22:40:33]MH_GetDate [22:40:33]Write to MH i2c: F0 00 00 39 1C 44 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 09 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 09 00 39 1C 00 66 7B 19 67 BD 3B 11 67 1E [22:40:33]GetLastDocTimeStamp 1729721484 [22:40:33]current date 1729723238 [22:40:33]FM_GetShiftState [22:40:33]SAM_PROTO_GetShiftState [22:40:33]wFMCommunicate request_size=4 [22:40:33]MH_SAM_APDU [22:40:33]CAPDU: 80 13 01 00 [22:40:33]Write to MH i2c: E2 08 00 3A 1C 80 13 01 00 00 00 00 00 D3 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:33]Read from MH i2c: E2 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 0E 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 0E 00 3A 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 1F [22:40:33]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:40:33]wFMCommunicate OK [22:40:33]SAM_PROTO_GetShiftState done [22:40:33]FM_GetShiftState done [22:40:33]opened in 1729642370 [22:40:33]opened+sec_in_day 1729728770 [22:40:33]quantity*price = 15900 [22:40:33]sum+1 = 15901 [22:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 94 23.10.2024 22:40 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50349 ФПД: 255425924199280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224039&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50349&fm=255425924199280&tin=02508201610067®Number=0000000000097022&sum=15900 0 [22:40:34]StoreToDocumentArchive [22:40:34]shift 491 fd 50349 [22:40:34]save to /storage/0491/doc_00050349 [22:40:34]save last doc name /storage/0491/doc_00050349 to /storage/kkm_last_doc_name [22:40:34]save OK [22:40:34]Clear old archive folders... [22:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:40:34]tlvbuf is B6F170E0 [22:40:34]SAM_PROTO_ClearQueue [22:40:34]wFMCommunicate request_size=4 [22:40:34]MH_SAM_APDU [22:40:34]CAPDU: 80 09 00 00 [22:40:34]Write to MH i2c: E2 08 00 47 1C 80 09 00 00 00 00 00 00 D5 [22:40:34]Write i2c OK [22:40:34]MH_I2C_Read... [22:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:34]Read from MH i2c: E2 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 03 00 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [22:40:34]RAPDU: 90 00 [22:40:34]wFMCommunicate OK [22:40:34]SAM_PROTO_ClearQueue done [22:40:34]KKMCreateOFDPacket [22:40:34]OFDProtocolAddRootSTLVToBuf [22:40:34]FM_MakeSignedData [22:40:34]FM_MakeSignedData [22:40:34]SAM_PROTO_SignData [22:40:34]wFMCommunicate request_size=4 [22:40:34]MH_SAM_APDU [22:40:34]CAPDU: 80 0D 01 02 [22:40:34]Write to MH i2c: E2 08 00 48 1C 80 0D 01 02 00 00 00 00 DD [22:40:34]Write i2c OK [22:40:34]MH_I2C_Read... [22:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:34]Read from MH i2c: E2 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 03 00 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 03 00 48 1C 00 90 00 D8 [22:40:34]RAPDU: 90 00 [22:40:34]wFMCommunicate OK [22:40:34]wFMCommunicate request_size=255 [22:40:34]MH_SAM_APDU [22:40:34]CAPDU: 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 67 7B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [22:40:34]Write to MH i2c: E2 02 01 49 1C 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 67 7B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 A8 [22:40:34]Write i2c OK [22:40:34]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]wFMCommunicate request_size=33 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C4 00 00 35 04 06 00 E8 4E FB 7A 73 70 [22:40:35]Write to MH i2c: E2 24 00 4A 1C 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C4 00 00 35 04 06 00 E8 4E FB 7A 73 70 00 00 62 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 4A 1C 00 90 00 DA [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 0D 03 02 [22:40:35]Write to MH i2c: E2 08 00 4B 1C 80 0D 03 02 00 00 00 00 E2 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0B 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0B 00 4B 1C 00 7E 10 84 DD 1B 3C 5B B3 90 00 37 [22:40:35]RAPDU: 7E 10 84 DD 1B 3C 5B B3 90 00 [22:40:35]wFMCommunicate OK [22:40:35]SAM_PROTO_SignData done [22:40:35]FM_MakeSignedData done [22:40:35]CreateOFDProtocolMessage [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 11 00 00 [22:40:35]Write to MH i2c: E2 08 00 4C 1C 80 11 00 00 00 00 00 00 E2 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 4C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 29 [22:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:40:35]wFMCommunicate OK [22:40:35]CreateOFDProtocolMessage done [22:40:35]OFDSenderStorePacket 50349 [22:40:35]StoreOFDPacket docnum=50349 [22:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 8E 43 1E 01 8F 8B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 67 7B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C4 00 00 35 04 06 00 E8 4E FB 7A 73 70 7E 10 84 DD 1B 3C 5B B3 [22:40:35]CheckFolder [22:40:35]dirname=/storage/ofd_packets [22:40:35]CheckFolder done [22:40:35]ProducePacketName [22:40:35]name=ofd_packets/00050349 [22:40:35]NVStorageSaveData ofd_packets/00050349 [22:40:35]File name is /storage/ofd_packets/00050349 [22:40:35]Write 324 bytes [22:40:35]NVStorageSaveData done [22:40:35]OFDSenderStorePacket done [22:40:35]KKMCreateOFDPacket done [22:40:35]NVStorageSaveData kkm_last_timestamp [22:40:35]File name is /storage/kkm_last_timestamp [22:40:35]Write 4 bytes [22:40:35]NVStorageSaveData done [22:40:35]ExternCall_PrintAddStr [22:40:35]wPrintStart [22:40:35]Write to MH i2c: 01 00 00 4D 1C 69 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 07 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 07 00 4D 1C 00 00 00 00 00 FF 0F 7E [22:40:35]RasterBufferAndPrint [22:40:35]line Счет N : (3)164258 [22:40:35]line ИНН: 02508201610067 [22:40:35]line Контрольно-Кассовый Чек [22:40:35]line ПРОДАЖА [22:40:35]line Товар: 4640030091645 [22:40:35]line Сигареты ESSE Exchange M [22:40:35]line 1.000 * 159.00 [22:40:35]line = 159.00 [22:40:35]line НДС 12% НСП 1% [22:40:35]line > о реализуемом товаре [22:40:35]line ИТОГО: 159.00 [22:40:35]line НСП 1% : 1.41 [22:40:35]line НДС 12% : 16.88 [22:40:35]line Наличными: 0.00 [22:40:35]line Безнал.: 159.00 [22:40:35]line Место: АЗС № 80 "Партнер Нефть" [22:40:35]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:40:35]line СНО: Общий режим [22:40:35]line Чек 94 23.10.2024 22:40 [22:40:35]line Смена: 491 ФФД: 1.0 [22:40:35]line ЗНМ: 0300000090 [22:40:35]line РНМ: 0000000000097022 [22:40:35]line Версия ККМ: 001 [22:40:35]line Платежная система: Mbank [22:40:35]line ФМ: 0000000000875000 [22:40:35]line ФД: 50349 [22:40:35]line ФПД: 255425924199280 [22:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224039&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50349&fm=255425924199280&tin=02508201610067®Number=0000000000097022&sum=15900 [22:40:35]line 0 [22:40:35]OFD Sender: Processing packet 50349 [packets to send 7, broken 6] [22:40:35]ProducePacketName [22:40:35]name=ofd_packets/00050349 [22:40:35]OFD Sender: To server: pG, [22:40:35]CommunicateWithHost lk.salyk.kg:30040 [22:40:35]ConnectInit lk.salyk.kg [22:40:35]written 0, free lines is 4095 [22:40:35]Connected sock=10 [22:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 8E 43 1E 01 8F 8B 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 67 7B 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C4 00 00 35 04 06 00 E8 4E FB 7A 73 70 7E 10 84 DD 1B 3C 5B B3 [22:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A4 23 47 00 24 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C4 00 00 F4 03 04 00 FC 26 19 67 B6 04 01 00 00 8E 17 CE 78 62 EE 6A 79 [22:40:36]CommunicateWithHost err = 0 [22:40:36]CheckOFDResponse [22:40:36]1017 (14) - 77093643461234 [22:40:36]1041 (16) - 0000000000875000 [22:40:36]1040 (4) - 50349 [22:40:36]1012 (4) - 23.10.2024 16:40 [22:40:36]1206 (1) - 0 [22:40:36]OFD Sender: Remove packet 50349 [22:40:36]ProducePacketName [22:40:36]name=ofd_packets/00050349 [22:40:36]NVStorageDeleteData [22:40:36]Write to MH i2c: 01 00 00 76 1C 92 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 07 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 16 0D BC [22:40:36]RasterBufferAndPrint [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]written 0, free lines is 3357 [22:40:36]process_action close_receipt done [22:40:36]requested_data is exist [22:40:36]produce_requested_data [22:40:36]requested_item fm.sn is exist - process it [22:40:36]wFMCommunicate request_size=4 [22:40:36]MH_SAM_APDU [22:40:36]CAPDU: 80 11 00 00 [22:40:36]Write to MH i2c: E2 08 00 7D 1C 80 11 00 00 00 00 00 00 13 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:36]Read from MH i2c: E2 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 17 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 17 00 7D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5A [22:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:40:36]wFMCommunicate OK [22:40:36]requested_item fd.num is exist - process it [22:40:36]SAM_PROTO_GetFieldsCounters [22:40:36]wFMCommunicate request_size=4 [22:40:36]MH_SAM_APDU [22:40:36]CAPDU: 80 13 00 00 [22:40:36]Write to MH i2c: E2 08 00 7E 1C 80 13 00 00 00 00 00 00 16 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:36]Read from MH i2c: E2 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 62 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 62 00 7E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AD C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [22:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AD C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:36]wFMCommunicate OK [22:40:36]SAM_PROTO_GetFieldsCounters done [22:40:36]requested_item shift.num is exist - process it [22:40:36]requested_item shift.opened is exist - process it [22:40:36]req_shift_opened [22:40:36]FM_GetShiftState [22:40:36]SAM_PROTO_GetShiftState [22:40:36]wFMCommunicate request_size=4 [22:40:36]MH_SAM_APDU [22:40:36]CAPDU: 80 13 01 00 [22:40:36]Write to MH i2c: E2 08 00 7F 1C 80 13 01 00 00 00 00 00 18 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 [22:40:36]MH_I2C_Read... [22:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:36]Read from MH i2c: E2 0E 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 0E 00 7F 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 64 [22:40:36]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:40:36]wFMCommunicate OK [22:40:36]SAM_PROTO_GetShiftState done [22:40:36]FM_GetShiftState done [22:40:36]req_shift_opened done [22:40:36]requested_item shift.open_date is exist - process it [22:40:36]req_shift_open_date [22:40:36]req_shift_open_date done [22:40:36]produce_requested_data done [22:40:36]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50349,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [22:40:36]process_action_free close_receipt [22:40:36]json_value_free [22:40:36]json_value_free done [22:40:36]process_json_proto returns [22:40:36]Send response to host [22:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50349,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [22:40:36]free response buf [22:40:36]execute_script done [22:40:36]execute_script returns [22:40:36]free content buf [22:40:36]Sock 9.Close socket [22:40:36]Sock 9.Thread stoped [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:01]accept exits with 7 [22:53:01]New connection [22:53:01]New thread 3067305316 created [22:53:01]Thread 3067161956 joined [22:53:01]Waiting for new connection... [22:53:01] Sock 7.Parse request [22:53:01]Sock 7.Check first char [22:53:01]Sock 7.First char is OK [22:53:01]request: POST /json_proto HTTP/1.0 [22:53:01]Method: POST [22:53:01]URL: /json_proto [22:53:01]Method is POST - this is cgi request [22:53:01]url: /json_proto [22:53:01]query_string will be loaded in cgi processing [22:53:01]execute_cgi json_proto POST (null) [22:53:01]execute_cgi path=json_proto method=POST [22:53:01]POST find Content-Length [22:53:01]Host: 172.17.49.196:8080 [22:53:01]Content-Length: 623 [22:53:01]Content-Type: application/json [22:53:01] [22:53:01]POST finish read [22:53:01]Found Content-Length = 623 [22:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164259", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:01]execute_script... [22:53: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)164259", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:01]POST & json_proto [22:53:01]process_json_proto [22:53:01]json parsed OK: [22:53:01]protocol is kg_v1.0 [22:53:01]action value=close_receipt [22:53:01]process_action close_receipt [22:53:01]cmd_close_receipt [22:53:01]MH_GetDate [22:53:01]Write to MH i2c: F0 00 00 80 1C 8B [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: F0 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: F0 09 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: F0 09 00 80 1C 00 53 7E 19 67 BD 3B 11 67 55 [22:53:01]GetLastDocTimeStamp 1729723239 [22:53:01]current date 1729723987 [22:53:01]FM_GetShiftState [22:53:01]SAM_PROTO_GetShiftState [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 13 01 00 [22:53:01]Write to MH i2c: E2 08 00 81 1C 80 13 01 00 00 00 00 00 1A [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 0E 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 0E 00 81 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 66 [22:53:01]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:53:01]wFMCommunicate OK [22:53:01]SAM_PROTO_GetShiftState done [22:53:01]FM_GetShiftState done [22:53:01]opened in 1729642370 [22:53:01]opened+sec_in_day 1729728770 [22:53:01]quantity*price = 14400 [22:53:01]sum+1 = 14401 [22:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 95 23.10.2024 22:53 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50350 ФПД: 156512361310997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225307&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50350&fm=156512361310997&tin=02508201610067®Number=0000000000097022&sum=14400 0 [22:53:02]StoreToDocumentArchive [22:53:02]shift 491 fd 50350 [22:53:02]save to /storage/0491/doc_00050350 [22:53:02]save last doc name /storage/0491/doc_00050350 to /storage/kkm_last_doc_name [22:53:02]save OK [22:53:02]Clear old archive folders... [22:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:53:02]tlvbuf is B6EFE640 [22:53:02]SAM_PROTO_ClearQueue [22:53:02]wFMCommunicate request_size=4 [22:53:02]MH_SAM_APDU [22:53:02]CAPDU: 80 09 00 00 [22:53:02]Write to MH i2c: E2 08 00 8E 1C 80 09 00 00 00 00 00 00 1C [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 03 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 03 00 8E 1C 00 90 00 1E [22:53:02]RAPDU: 90 00 [22:53:02]wFMCommunicate OK [22:53:02]SAM_PROTO_ClearQueue done [22:53:02]KKMCreateOFDPacket [22:53:02]OFDProtocolAddRootSTLVToBuf [22:53:02]FM_MakeSignedData [22:53:02]FM_MakeSignedData [22:53:02]SAM_PROTO_SignData [22:53:02]wFMCommunicate request_size=4 [22:53:02]MH_SAM_APDU [22:53:02]CAPDU: 80 0D 01 02 [22:53:02]Write to MH i2c: E2 08 00 8F 1C 80 0D 01 02 00 00 00 00 24 [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 03 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [22:53:02]RAPDU: 90 00 [22:53:02]wFMCommunicate OK [22:53:02]wFMCommunicate request_size=255 [22:53:02]MH_SAM_APDU [22:53:02]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5F 00 00 00 F4 03 04 00 53 7E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [22:53:02]Write to MH i2c: E2 02 01 90 1C 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5F 00 00 00 F4 03 04 00 53 7E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 C0 [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:03]Read from MH i2c: E2 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 03 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [22:53:03]RAPDU: 90 00 [22:53:03]wFMCommunicate OK [22:53:03]wFMCommunicate request_size=34 [22:53:03]MH_SAM_APDU [22:53:03]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C4 00 00 35 04 06 00 8E 58 DF B2 EB 15 [22:53:03]Write to MH i2c: E2 25 00 91 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C4 00 00 35 04 06 00 8E 58 DF B2 EB 15 00 00 C5 [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:03]Read from MH i2c: E2 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 03 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [22:53:03]RAPDU: 90 00 [22:53:03]wFMCommunicate OK [22:53:03]wFMCommunicate request_size=4 [22:53:03]MH_SAM_APDU [22:53:03]CAPDU: 80 0D 03 02 [22:53:03]Write to MH i2c: E2 08 00 92 1C 80 0D 03 02 00 00 00 00 29 [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:03]Read from MH i2c: E2 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 0B 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 0B 00 92 1C 00 E4 1C 49 39 14 F5 45 75 90 00 6F [22:53:03]RAPDU: E4 1C 49 39 14 F5 45 75 90 00 [22:53:03]wFMCommunicate OK [22:53:03]SAM_PROTO_SignData done [22:53:03]FM_MakeSignedData done [22:53:03]CreateOFDProtocolMessage [22:53:03]wFMCommunicate request_size=4 [22:53:03]MH_SAM_APDU [22:53:03]CAPDU: 80 11 00 00 [22:53:03]Write to MH i2c: E2 08 00 93 1C 80 11 00 00 00 00 00 00 29 [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:03]Read from MH i2c: E2 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 17 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 17 00 93 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 70 [22:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:53:03]wFMCommunicate OK [22:53:03]CreateOFDProtocolMessage done [22:53:03]OFDSenderStorePacket 50350 [22:53:03]StoreOFDPacket docnum=50350 [22:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 47 33 1F 01 DB 41 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5F 00 00 00 F4 03 04 00 53 7E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C4 00 00 35 04 06 00 8E 58 DF B2 EB 15 E4 1C 49 39 14 F5 45 75 [22:53:03]CheckFolder [22:53:03]dirname=/storage/ofd_packets [22:53:03]CheckFolder done [22:53:03]ProducePacketName [22:53:03]name=ofd_packets/00050350 [22:53:03]NVStorageSaveData ofd_packets/00050350 [22:53:03]File name is /storage/ofd_packets/00050350 [22:53:03]Write 325 bytes [22:53:03]NVStorageSaveData done [22:53:03]OFDSenderStorePacket done [22:53:03]KKMCreateOFDPacket done [22:53:03]NVStorageSaveData kkm_last_timestamp [22:53:03]File name is /storage/kkm_last_timestamp [22:53:03]Write 4 bytes [22:53:03]NVStorageSaveData done [22:53:03]ExternCall_PrintAddStr [22:53:03]wPrintStart [22:53:03]Write to MH i2c: 01 00 00 94 1C B0 [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: 01 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: 01 07 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [22:53:03]RasterBufferAndPrint [22:53:03]line Счет N : (3)164259 [22:53:03]line ИНН: 02508201610067 [22:53:03]line Контрольно-Кассовый Чек [22:53:03]line ПРОДАЖА [22:53:03]line Товар: 48743587 [22:53:03]line Сигареты Winston XStyle Silver [22:53:03]line 1.000 * 144.00 [22:53:03]line = 144.00 [22:53:03]line НДС 12% НСП 1% [22:53:03]line > о реализуемом товаре [22:53:03]line ИТОГО: 144.00 [22:53:03]line НСП 1% : 1.27 [22:53:03]line НДС 12% : 15.29 [22:53:03]line Наличными: 144.00 [22:53:03]line Безнал.: 0.00 [22:53:03]line Место: АЗС № 80 "Партнер Нефть" [22:53:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:53:03]line СНО: Общий режим [22:53:03]line Чек 95 23.10.2024 22:53 [22:53:03]line Смена: 491 ФФД: 1.0 [22:53:03]line ЗНМ: 0300000090 [22:53:03]line РНМ: 0000000000097022 [22:53:03]line Версия ККМ: 001 [22:53:03]line ФМ: 0000000000875000 [22:53:03]line ФД: 50350 [22:53:03]line ФПД: 156512361310997 [22:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225307&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50350&fm=156512361310997&tin=02508201610067®Number=0000000000097022&sum=14400 [22:53:03]line 0 [22:53:03]OFD Sender: Processing packet 50350 [packets to send 7, broken 6] [22:53:03]ProducePacketName [22:53:03]name=ofd_packets/00050350 [22:53:03]OFD Sender: To server: pG, [22:53:03]CommunicateWithHost lk.salyk.kg:30040 [22:53:03]ConnectInit lk.salyk.kg [22:53:03]written 0, free lines is 4095 [22:53:03]Connected sock=9 [22:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 47 33 1F 01 DB 41 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 5F 00 00 00 F4 03 04 00 53 7E 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C4 00 00 35 04 06 00 8E 58 DF B2 EB 15 E4 1C 49 39 14 F5 45 75 [22:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A9 7B 47 00 53 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C4 00 00 F4 03 04 00 E8 29 19 67 B6 04 01 00 00 33 E7 2E 6D 1B FD D5 11 [22:53:03]CommunicateWithHost err = 0 [22:53:03]CheckOFDResponse [22:53:03]1017 (14) - 77093643461234 [22:53:03]1041 (16) - 0000000000875000 [22:53:03]1040 (4) - 50350 [22:53:03]1012 (4) - 23.10.2024 16:52 [22:53:03]1206 (1) - 0 [22:53:03]OFD Sender: Remove packet 50350 [22:53:03]ProducePacketName [22:53:03]name=ofd_packets/00050350 [22:53:03]NVStorageDeleteData [22:53:04]Write to MH i2c: 01 00 00 BD 1C D9 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 07 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 02 0D EF [22:53:04]RasterBufferAndPrint [22:53:04]line [22:53:04]line [22:53:04]line [22:53:04]line [22:53:04]line [22:53:04]written 0, free lines is 3336 [22:53:04]process_action close_receipt done [22:53:04]requested_data is exist [22:53:04]produce_requested_data [22:53:04]requested_item fm.sn is exist - process it [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 11 00 00 [22:53:04]Write to MH i2c: E2 08 00 C4 1C 80 11 00 00 00 00 00 00 5A [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 17 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 17 00 C4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A1 [22:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:53:04]wFMCommunicate OK [22:53:04]requested_item fd.num is exist - process it [22:53:04]SAM_PROTO_GetFieldsCounters [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 13 00 00 [22:53:04]Write to MH i2c: E2 08 00 C5 1C 80 13 00 00 00 00 00 00 5D [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 62 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 62 00 C5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AE C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [22:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AE C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:04]wFMCommunicate OK [22:53:04]SAM_PROTO_GetFieldsCounters done [22:53:04]requested_item shift.num is exist - process it [22:53:04]requested_item shift.opened is exist - process it [22:53:04]req_shift_opened [22:53:04]FM_GetShiftState [22:53:04]SAM_PROTO_GetShiftState [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 13 01 00 [22:53:04]Write to MH i2c: E2 08 00 C6 1C 80 13 01 00 00 00 00 00 5F [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0E 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0E 00 C6 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AB [22:53:04]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [22:53:04]wFMCommunicate OK [22:53:04]SAM_PROTO_GetShiftState done [22:53:04]FM_GetShiftState done [22:53:04]req_shift_opened done [22:53:04]requested_item shift.open_date is exist - process it [22:53:04]req_shift_open_date [22:53:04]req_shift_open_date done [22:53:04]produce_requested_data done [22:53:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50350,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [22:53:04]process_action_free close_receipt [22:53:04]json_value_free [22:53:04]json_value_free done [22:53:04]process_json_proto returns [22:53:04]Send response to host [22:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50350,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [22:53:04]free response buf [22:53:04]execute_script done [22:53:04]execute_script returns [22:53:04]free content buf [22:53:04]Sock 7.Close socket [22:53:04]Sock 7.Thread stoped [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:28]accept exits with 10 [23:17:28]New connection [23:17:28]New thread 3067161956 created [23:17:28]Thread 3067305316 joined [23:17:28]Waiting for new connection... [23:17:28] Sock 10.Parse request [23:17:28]Sock 10.Check first char [23:17:28]Sock 10.First char is OK [23:17:28]request: POST /json_proto HTTP/1.0 [23:17:28]Method: POST [23:17:28]URL: /json_proto [23:17:28]Method is POST - this is cgi request [23:17:28]url: /json_proto [23:17:28]query_string will be loaded in cgi processing [23:17:28]execute_cgi json_proto POST (null) [23:17:28]execute_cgi path=json_proto method=POST [23:17:28]POST find Content-Length [23:17:28]Host: 172.17.49.196:8080 [23:17:28]Content-Length: 623 [23:17:28]Content-Type: application/json [23:17:28] [23:17:28]POST finish read [23:17:28]Found Content-Length = 623 [23:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164262", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:28]execute_script... [23:17: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 : (3)164262", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:28]POST & json_proto [23:17:28]process_json_proto [23:17:28]json parsed OK: [23:17:28]protocol is kg_v1.0 [23:17:28]action value=close_receipt [23:17:28]process_action close_receipt [23:17:28]cmd_close_receipt [23:17:28]MH_GetDate [23:17:28]Write to MH i2c: F0 00 00 C7 1C D2 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: F0 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: F0 09 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: F0 09 00 C7 1C 00 0E 84 19 67 BD 3B 11 67 5D [23:17:28]GetLastDocTimeStamp 1729723987 [23:17:28]current date 1729725454 [23:17:28]FM_GetShiftState [23:17:28]SAM_PROTO_GetShiftState [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 13 01 00 [23:17:28]Write to MH i2c: E2 08 00 C8 1C 80 13 01 00 00 00 00 00 61 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0E 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0E 00 C8 1C 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 AD [23:17:28]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:17:28]wFMCommunicate OK [23:17:28]SAM_PROTO_GetShiftState done [23:17:28]FM_GetShiftState done [23:17:28]opened in 1729642370 [23:17:28]opened+sec_in_day 1729728770 [23:17:28]quantity*price = 14400 [23:17:28]sum+1 = 14401 [23:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 96 23.10.2024 23:17 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50351 ФПД: 216909213128510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231734&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50351&fm=216909213128510&tin=02508201610067®Number=0000000000097022&sum=14400 0 [23:17:29]StoreToDocumentArchive [23:17:29]shift 491 fd 50351 [23:17:29]save to /storage/0491/doc_00050351 [23:17:29]save last doc name /storage/0491/doc_00050351 to /storage/kkm_last_doc_name [23:17:29]save OK [23:17:29]Clear old archive folders... [23:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:17:29]tlvbuf is B6F17730 [23:17:29]SAM_PROTO_ClearQueue [23:17:29]wFMCommunicate request_size=4 [23:17:29]MH_SAM_APDU [23:17:29]CAPDU: 80 09 00 00 [23:17:29]Write to MH i2c: E2 08 00 D5 1C 80 09 00 00 00 00 00 00 63 [23:17:29]Write i2c OK [23:17:29]MH_I2C_Read... [23:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:29]Read from MH i2c: E2 [23:17:29]MH_I2C_Read... [23:17:29]Read from MH i2c: E2 03 00 [23:17:29]MH_I2C_Read... [23:17:29]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [23:17:29]RAPDU: 90 00 [23:17:29]wFMCommunicate OK [23:17:29]SAM_PROTO_ClearQueue done [23:17:29]KKMCreateOFDPacket [23:17:29]OFDProtocolAddRootSTLVToBuf [23:17:29]FM_MakeSignedData [23:17:29]FM_MakeSignedData [23:17:29]SAM_PROTO_SignData [23:17:29]wFMCommunicate request_size=4 [23:17:29]MH_SAM_APDU [23:17:29]CAPDU: 80 0D 01 02 [23:17:29]Write to MH i2c: E2 08 00 D6 1C 80 0D 01 02 00 00 00 00 6B [23:17:29]Write i2c OK [23:17:29]MH_I2C_Read... [23:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:29]Read from MH i2c: E2 [23:17:29]MH_I2C_Read... [23:17:29]Read from MH i2c: E2 03 00 [23:17:29]MH_I2C_Read... [23:17:29]Read from MH i2c: E2 03 00 D6 1C 00 90 00 66 [23:17:29]RAPDU: 90 00 [23:17:29]wFMCommunicate OK [23:17:29]wFMCommunicate request_size=255 [23:17:29]MH_SAM_APDU [23:17:29]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 60 00 00 00 F4 03 04 00 0E 84 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [23:17:29]Write to MH i2c: E2 02 01 D7 1C 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 60 00 00 00 F4 03 04 00 0E 84 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 C9 [23:17:29]Write i2c OK [23:17:29]MH_I2C_Read... [23:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:30]Read from MH i2c: E2 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 03 00 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 03 00 D7 1C 00 90 00 67 [23:17:30]RAPDU: 90 00 [23:17:30]wFMCommunicate OK [23:17:30]wFMCommunicate request_size=34 [23:17:30]MH_SAM_APDU [23:17:30]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C4 00 00 35 04 06 00 C5 47 1C 98 D7 3E [23:17:30]Write to MH i2c: E2 25 00 D8 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C4 00 00 35 04 06 00 C5 47 1C 98 D7 3E 00 00 6B [23:17:30]Write i2c OK [23:17:30]MH_I2C_Read... [23:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:30]Read from MH i2c: E2 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 03 00 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 03 00 D8 1C 00 90 00 68 [23:17:30]RAPDU: 90 00 [23:17:30]wFMCommunicate OK [23:17:30]wFMCommunicate request_size=4 [23:17:30]MH_SAM_APDU [23:17:30]CAPDU: 80 0D 03 02 [23:17:30]Write to MH i2c: E2 08 00 D9 1C 80 0D 03 02 00 00 00 00 70 [23:17:30]Write i2c OK [23:17:30]MH_I2C_Read... [23:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:30]Read from MH i2c: E2 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 0B 00 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 0B 00 D9 1C 00 91 7E EB DE F8 F0 A4 8B 90 00 60 [23:17:30]RAPDU: 91 7E EB DE F8 F0 A4 8B 90 00 [23:17:30]wFMCommunicate OK [23:17:30]SAM_PROTO_SignData done [23:17:30]FM_MakeSignedData done [23:17:30]CreateOFDProtocolMessage [23:17:30]wFMCommunicate request_size=4 [23:17:30]MH_SAM_APDU [23:17:30]CAPDU: 80 11 00 00 [23:17:30]Write to MH i2c: E2 08 00 DA 1C 80 11 00 00 00 00 00 00 70 [23:17:30]Write i2c OK [23:17:30]MH_I2C_Read... [23:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:30]Read from MH i2c: E2 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 17 00 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: E2 17 00 DA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B7 [23:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:17:30]wFMCommunicate OK [23:17:30]CreateOFDProtocolMessage done [23:17:30]OFDSenderStorePacket 50351 [23:17:30]StoreOFDPacket docnum=50351 [23:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 0D D6 1F 01 3C 57 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 60 00 00 00 F4 03 04 00 0E 84 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C4 00 00 35 04 06 00 C5 47 1C 98 D7 3E 91 7E EB DE F8 F0 A4 8B [23:17:30]CheckFolder [23:17:30]dirname=/storage/ofd_packets [23:17:30]CheckFolder done [23:17:30]ProducePacketName [23:17:30]name=ofd_packets/00050351 [23:17:30]NVStorageSaveData ofd_packets/00050351 [23:17:30]File name is /storage/ofd_packets/00050351 [23:17:30]Write 325 bytes [23:17:30]NVStorageSaveData done [23:17:30]OFDSenderStorePacket done [23:17:30]KKMCreateOFDPacket done [23:17:30]NVStorageSaveData kkm_last_timestamp [23:17:30]File name is /storage/kkm_last_timestamp [23:17:30]Write 4 bytes [23:17:30]NVStorageSaveData done [23:17:30]ExternCall_PrintAddStr [23:17:30]wPrintStart [23:17:30]Write to MH i2c: 01 00 00 DB 1C F7 [23:17:30]Write i2c OK [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: 01 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: 01 07 00 [23:17:30]MH_I2C_Read... [23:17:30]Read from MH i2c: 01 07 00 DB 1C 00 00 00 00 00 FF 0F 0C [23:17:30]RasterBufferAndPrint [23:17:30]line Счет N : (3)164262 [23:17:30]line ИНН: 02508201610067 [23:17:30]line Контрольно-Кассовый Чек [23:17:30]line ПРОДАЖА [23:17:30]line Товар: 48743587 [23:17:30]line Сигареты Winston XStyle Silver [23:17:30]line 1.000 * 144.00 [23:17:30]line = 144.00 [23:17:30]line НДС 12% НСП 1% [23:17:30]line > о реализуемом товаре [23:17:30]line ИТОГО: 144.00 [23:17:30]line НСП 1% : 1.27 [23:17:30]line НДС 12% : 15.29 [23:17:30]line Наличными: 144.00 [23:17:30]line Безнал.: 0.00 [23:17:30]line Место: АЗС № 80 "Партнер Нефть" [23:17:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:17:30]line СНО: Общий режим [23:17:30]line Чек 96 23.10.2024 23:17 [23:17:30]line Смена: 491 ФФД: 1.0 [23:17:30]line ЗНМ: 0300000090 [23:17:30]line РНМ: 0000000000097022 [23:17:30]line Версия ККМ: 001 [23:17:30]line ФМ: 0000000000875000 [23:17:30]line ФД: 50351 [23:17:30]line ФПД: 216909213128510 [23:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231734&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50351&fm=216909213128510&tin=02508201610067®Number=0000000000097022&sum=14400 [23:17:30]OFD Sender: Processing packet 50351 [packets to send 7, broken 6] [23:17:30]ProducePacketName [23:17:30]name=ofd_packets/00050351 [23:17:30]OFD Sender: To server: pG, [23:17:30]CommunicateWithHost lk.salyk.kg:30040 [23:17:30]ConnectInit lk.salyk.kg [23:17:30]line 0 [23:17:30]written 0, free lines is 4095 [23:17:30]Connected sock=9 [23:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 0D D6 1F 01 3C 57 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 60 00 00 00 F4 03 04 00 0E 84 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C4 00 00 35 04 06 00 C5 47 1C 98 D7 3E 91 7E EB DE F8 F0 A4 8B [23:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 8D 0C 47 00 32 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C4 00 00 F4 03 04 00 A3 2F 19 67 B6 04 01 00 00 52 B7 37 84 52 1B 40 8A [23:17:30]CommunicateWithHost err = 0 [23:17:30]CheckOFDResponse [23:17:30]1017 (14) - 77093643461234 [23:17:30]1041 (16) - 0000000000875000 [23:17:30]1040 (4) - 50351 [23:17:30]1012 (4) - 23.10.2024 17:17 [23:17:30]1206 (1) - 0 [23:17:30]OFD Sender: Remove packet 50351 [23:17:30]ProducePacketName [23:17:30]name=ofd_packets/00050351 [23:17:30]NVStorageDeleteData [23:17:31]Write to MH i2c: 01 00 00 04 1D 21 [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: 01 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: 01 07 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: 01 07 00 04 1D 00 00 00 00 00 02 0D 37 [23:17:31]RasterBufferAndPrint [23:17:31]line [23:17:31]line [23:17:31]line [23:17:31]line [23:17:31]line [23:17:31]written 0, free lines is 3336 [23:17:31]process_action close_receipt done [23:17:31]requested_data is exist [23:17:31]produce_requested_data [23:17:31]requested_item fm.sn is exist - process it [23:17:31]wFMCommunicate request_size=4 [23:17:31]MH_SAM_APDU [23:17:31]CAPDU: 80 11 00 00 [23:17:31]Write to MH i2c: E2 08 00 0B 1D 80 11 00 00 00 00 00 00 A2 [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:31]Read from MH i2c: E2 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 17 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 17 00 0B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E9 [23:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:17:31]wFMCommunicate OK [23:17:31]requested_item fd.num is exist - process it [23:17:31]SAM_PROTO_GetFieldsCounters [23:17:31]wFMCommunicate request_size=4 [23:17:31]MH_SAM_APDU [23:17:31]CAPDU: 80 13 00 00 [23:17:31]Write to MH i2c: E2 08 00 0C 1D 80 13 00 00 00 00 00 00 A5 [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:31]Read from MH i2c: E2 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 62 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 62 00 0C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AF C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [23:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AF C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:31]wFMCommunicate OK [23:17:31]SAM_PROTO_GetFieldsCounters done [23:17:31]requested_item shift.num is exist - process it [23:17:31]requested_item shift.opened is exist - process it [23:17:31]req_shift_opened [23:17:31]FM_GetShiftState [23:17:31]SAM_PROTO_GetShiftState [23:17:31]wFMCommunicate request_size=4 [23:17:31]MH_SAM_APDU [23:17:31]CAPDU: 80 13 01 00 [23:17:31]Write to MH i2c: E2 08 00 0D 1D 80 13 01 00 00 00 00 00 A7 [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:31]Read from MH i2c: E2 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 0E 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 0E 00 0D 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F3 [23:17:31]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:17:31]wFMCommunicate OK [23:17:31]SAM_PROTO_GetShiftState done [23:17:31]FM_GetShiftState done [23:17:31]req_shift_opened done [23:17:31]requested_item shift.open_date is exist - process it [23:17:31]req_shift_open_date [23:17:31]req_shift_open_date done [23:17:31]produce_requested_data done [23:17:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50351,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [23:17:31]process_action_free close_receipt [23:17:31]json_value_free [23:17:31]json_value_free done [23:17:31]process_json_proto returns [23:17:31]Send response to host [23:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50351,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [23:17:31]free response buf [23:17:31]execute_script done [23:17:31]execute_script returns [23:17:31]free content buf [23:17:31]Sock 10.Close socket [23:17:31]Sock 10.Thread stoped [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:40]accept exits with 7 [23:26:40]New connection [23:26:40]New thread 3067305316 created [23:26:40]Thread 3067161956 joined [23:26:40]Waiting for new connection... [23:26:40] Sock 7.Parse request [23:26:40]Sock 7.Check first char [23:26:40]Sock 7.First char is OK [23:26:40]request: POST /json_proto HTTP/1.0 [23:26:40]Method: POST [23:26:40]URL: /json_proto [23:26:40]Method is POST - this is cgi request [23:26:40]url: /json_proto [23:26:40]query_string will be loaded in cgi processing [23:26:40]execute_cgi json_proto POST (null) [23:26:40]execute_cgi path=json_proto method=POST [23:26:40]POST find Content-Length [23:26:40]Host: 172.17.49.196:8080 [23:26:40]Content-Length: 748 [23:26:40]Content-Type: application/json [23:26:40] [23:26:40]POST finish read [23:26:40]Found Content-Length = 748 [23:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164263", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.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: Mbank", "payments": [ { "type": 1, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:40]execute_script... [23:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164263", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.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: Mbank", "payments": [ { "type": 1, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:40]POST & json_proto [23:26:40]process_json_proto [23:26:40]json parsed OK: [23:26:40]protocol is kg_v1.0 [23:26:40]action value=close_receipt [23:26:40]process_action close_receipt [23:26:40]cmd_close_receipt [23:26:40]MH_GetDate [23:26:40]Write to MH i2c: F0 00 00 0E 1D 1A [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 09 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 09 00 0E 1D 00 36 86 19 67 BD 3B 11 67 CF [23:26:40]GetLastDocTimeStamp 1729725454 [23:26:40]current date 1729726006 [23:26:40]FM_GetShiftState [23:26:40]SAM_PROTO_GetShiftState [23:26:40]wFMCommunicate request_size=4 [23:26:40]MH_SAM_APDU [23:26:40]CAPDU: 80 13 01 00 [23:26:40]Write to MH i2c: E2 08 00 0F 1D 80 13 01 00 00 00 00 00 A9 [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:40]Read from MH i2c: E2 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: E2 0E 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: E2 0E 00 0F 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 F5 [23:26:40]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:26:40]wFMCommunicate OK [23:26:40]SAM_PROTO_GetShiftState done [23:26:40]FM_GetShiftState done [23:26:40]opened in 1729642370 [23:26:40]opened+sec_in_day 1729728770 [23:26:40]quantity*price = 14900 [23:26:40]sum+1 = 14901 [23:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 0.00 Безнал.: 149.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 97 23.10.2024 23:26 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50352 ФПД: 243795454033996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232646&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50352&fm=243795454033996&tin=02508201610067®Number=0000000000097022&sum=14900 0 [23:26:41]StoreToDocumentArchive [23:26:41]shift 491 fd 50352 [23:26:41]save to /storage/0491/doc_00050352 [23:26:41]save last doc name /storage/0491/doc_00050352 to /storage/kkm_last_doc_name [23:26:41]save OK [23:26:41]Clear old archive folders... [23:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:26:41]tlvbuf is B6F30920 [23:26:41]SAM_PROTO_ClearQueue [23:26:41]wFMCommunicate request_size=4 [23:26:41]MH_SAM_APDU [23:26:41]CAPDU: 80 09 00 00 [23:26:41]Write to MH i2c: E2 08 00 1C 1D 80 09 00 00 00 00 00 00 AB [23:26:41]Write i2c OK [23:26:41]MH_I2C_Read... [23:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:41]Read from MH i2c: E2 [23:26:41]MH_I2C_Read... [23:26:41]Read from MH i2c: E2 03 00 [23:26:41]MH_I2C_Read... [23:26:41]Read from MH i2c: E2 03 00 1C 1D 00 90 00 AD [23:26:41]RAPDU: 90 00 [23:26:41]wFMCommunicate OK [23:26:41]SAM_PROTO_ClearQueue done [23:26:41]KKMCreateOFDPacket [23:26:41]OFDProtocolAddRootSTLVToBuf [23:26:41]FM_MakeSignedData [23:26:41]FM_MakeSignedData [23:26:41]SAM_PROTO_SignData [23:26:41]wFMCommunicate request_size=4 [23:26:41]MH_SAM_APDU [23:26:41]CAPDU: 80 0D 01 02 [23:26:41]Write to MH i2c: E2 08 00 1D 1D 80 0D 01 02 00 00 00 00 B3 [23:26:41]Write i2c OK [23:26:41]MH_I2C_Read... [23:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:41]Read from MH i2c: E2 [23:26:41]MH_I2C_Read... [23:26:41]Read from MH i2c: E2 03 00 [23:26:41]MH_I2C_Read... [23:26:41]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [23:26:41]RAPDU: 90 00 [23:26:41]wFMCommunicate OK [23:26:41]wFMCommunicate request_size=255 [23:26:41]MH_SAM_APDU [23:26:41]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 36 86 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [23:26:41]Write to MH i2c: E2 02 01 1E 1D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 36 86 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 D2 [23:26:41]Write i2c OK [23:26:41]MH_I2C_Read... [23:26:41]OFD Sender: No OFD packet to send [23:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]wFMCommunicate request_size=32 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C4 00 00 35 04 06 00 DD BB 0D 6F 80 4C [23:26:42]Write to MH i2c: E2 23 00 1F 1D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C4 00 00 35 04 06 00 DD BB 0D 6F 80 4C 00 00 5B [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 03 02 [23:26:42]Write to MH i2c: E2 08 00 20 1D 80 0D 03 02 00 00 00 00 B8 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0B 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0B 00 20 1D 00 95 C9 34 03 CE 21 26 C9 90 00 2C [23:26:42]RAPDU: 95 C9 34 03 CE 21 26 C9 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_SignData done [23:26:42]FM_MakeSignedData done [23:26:42]CreateOFDProtocolMessage [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 11 00 00 [23:26:42]Write to MH i2c: E2 08 00 21 1D 80 11 00 00 00 00 00 00 B8 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 21 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FF [23:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:26:42]wFMCommunicate OK [23:26:42]CreateOFDProtocolMessage done [23:26:42]OFDSenderStorePacket 50352 [23:26:42]StoreOFDPacket docnum=50352 [23:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 92 FC 1D 01 FD 31 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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 36 86 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C4 00 00 35 04 06 00 DD BB 0D 6F 80 4C 95 C9 34 03 CE 21 26 C9 [23:26:42]CheckFolder [23:26:42]dirname=/storage/ofd_packets [23:26:42]CheckFolder done [23:26:42]ProducePacketName [23:26:42]name=ofd_packets/00050352 [23:26:42]NVStorageSaveData ofd_packets/00050352 [23:26:42]File name is /storage/ofd_packets/00050352 [23:26:42]Write 323 bytes [23:26:42]NVStorageSaveData done [23:26:42]OFDSenderStorePacket done [23:26:42]KKMCreateOFDPacket done [23:26:42]NVStorageSaveData kkm_last_timestamp [23:26:42]File name is /storage/kkm_last_timestamp [23:26:42]Write 4 bytes [23:26:42]NVStorageSaveData done [23:26:42]ExternCall_PrintAddStr [23:26:42]wPrintStart [23:26:42]Write to MH i2c: 01 00 00 22 1D 3F [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [23:26:42]RasterBufferAndPrint [23:26:42]line Счет N : (3)164263 [23:26:42]line ИНН: 02508201610067 [23:26:42]line Контрольно-Кассовый Чек [23:26:42]line ПРОДАЖА [23:26:42]line Товар: 48744119 [23:26:42]line Сигареты Winston Xstyle Dual [23:26:42]line 1.000 * 149.00 [23:26:42]line = 149.00 [23:26:42]line НДС 12% НСП 1% [23:26:42]line > о реализуемом товаре [23:26:42]line ИТОГО: 149.00 [23:26:42]line НСП 1% : 1.32 [23:26:42]line НДС 12% : 15.82 [23:26:42]line Наличными: 0.00 [23:26:42]line Безнал.: 149.00 [23:26:42]line Место: АЗС № 80 "Партнер Нефть" [23:26:42]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:26:42]line СНО: Общий режим [23:26:42]line Чек 97 23.10.2024 23:26 [23:26:42]line Смена: 491 ФФД: 1.0 [23:26:42]line ЗНМ: 0300000090 [23:26:42]line РНМ: 0000000000097022 [23:26:42]line Версия ККМ: 001 [23:26:42]line Платежная система: Mbank [23:26:42]line ФМ: 0000000000875000 [23:26:42]line ФД: 50352 [23:26:42]line ФПД: 243795454033996 [23:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232646&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50352&fm=243795454033996&tin=02508201610067®Number=0000000000097022&sum=14900 [23:26:42]line 0 [23:26:42]written 0, free lines is 4095 [23:26:42]OFD Sender: Processing packet 50352 [packets to send 7, broken 6] [23:26:42]ProducePacketName [23:26:42]name=ofd_packets/00050352 [23:26:42]OFD Sender: To server: pG, [23:26:42]CommunicateWithHost lk.salyk.kg:30040 [23:26:42]ConnectInit lk.salyk.kg [23:26:42]Connected sock=10 [23:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 92 FC 1D 01 FD 31 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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 36 86 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C4 00 00 35 04 06 00 DD BB 0D 6F 80 4C 95 C9 34 03 CE 21 26 C9 [23:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 21 63 47 00 14 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C4 00 00 F4 03 04 00 CB 31 19 67 B6 04 01 00 00 64 36 82 BF D3 FF 89 A5 [23:26:42]CommunicateWithHost err = 0 [23:26:42]CheckOFDResponse [23:26:42]1017 (14) - 77093643461234 [23:26:42]1041 (16) - 0000000000875000 [23:26:42]1040 (4) - 50352 [23:26:42]1012 (4) - 23.10.2024 17:26 [23:26:42]1206 (1) - 0 [23:26:42]OFD Sender: Remove packet 50352 [23:26:42]ProducePacketName [23:26:42]name=ofd_packets/00050352 [23:26:42]NVStorageDeleteData [23:26:42]Write to MH i2c: 01 00 00 4B 1D 68 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 4B 1D 00 00 00 00 00 13 0D 8F [23:26:42]RasterBufferAndPrint [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]written 0, free lines is 3354 [23:26:42]process_action close_receipt done [23:26:42]requested_data is exist [23:26:42]produce_requested_data [23:26:42]requested_item fm.sn is exist - process it [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 11 00 00 [23:26:42]Write to MH i2c: E2 08 00 52 1D 80 11 00 00 00 00 00 00 E9 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 52 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [23:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:26:42]wFMCommunicate OK [23:26:42]requested_item fd.num is exist - process it [23:26:42]SAM_PROTO_GetFieldsCounters [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 13 00 00 [23:26:42]Write to MH i2c: E2 08 00 53 1D 80 13 00 00 00 00 00 00 EC [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 62 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 62 00 53 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B0 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [23:26:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B0 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_GetFieldsCounters done [23:26:42]requested_item shift.num is exist - process it [23:26:42]requested_item shift.opened is exist - process it [23:26:42]req_shift_opened [23:26:42]FM_GetShiftState [23:26:42]SAM_PROTO_GetShiftState [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 13 01 00 [23:26:42]Write to MH i2c: E2 08 00 54 1D 80 13 01 00 00 00 00 00 EE [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0E 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0E 00 54 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3A [23:26:42]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_GetShiftState done [23:26:42]FM_GetShiftState done [23:26:42]req_shift_opened done [23:26:42]requested_item shift.open_date is exist - process it [23:26:42]req_shift_open_date [23:26:42]req_shift_open_date done [23:26:42]produce_requested_data done [23:26:42]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50352,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [23:26:42]process_action_free close_receipt [23:26:42]json_value_free [23:26:42]json_value_free done [23:26:42]process_json_proto returns [23:26:42]Send response to host [23:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50352,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [23:26:42]free response buf [23:26:42]execute_script done [23:26:42]execute_script returns [23:26:42]free content buf [23:26:42]Sock 7.Close socket [23:26:42]Sock 7.Thread stoped [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]accept exits with 9 [23:31:03]New connection [23:31:03]New thread 3067161956 created [23:31:03] Sock 9.Parse request [23:31:03]Sock 9.Check first char [23:31:03]Sock 9.First char is OK [23:31:03]request: POST /json_proto HTTP/1.0 [23:31:03]Method: POST [23:31:03]URL: /json_proto [23:31:03]Method is POST - this is cgi request [23:31:03]url: /json_proto [23:31:03]query_string will be loaded in cgi processing [23:31:03]execute_cgi json_proto POST (null) [23:31:03]execute_cgi path=json_proto method=POST [23:31:03]POST find Content-Length [23:31:03]Host: 172.17.49.196:8080 [23:31:03]Content-Length: 958 [23:31:03]Content-Type: application/json [23:31:03] [23:31:03]POST finish read [23:31:03]Found Content-Length = 958 [23:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164264", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:03]execute_script... [23:31:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164264", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:03]POST & json_proto [23:31:03]process_json_proto [23:31:03]json parsed OK: [23:31:03]protocol is kg_v1.0 [23:31:03]action value=close_receipt [23:31:03]process_action close_receipt [23:31:03]cmd_close_receipt [23:31:03]MH_GetDate [23:31:03]Write to MH i2c: F0 00 00 55 1D 61 [23:31:03]Thread 3067305316 joined [23:31:03]Waiting for new connection... [23:31:03]Write i2c OK [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 09 00 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 09 00 55 1D 00 3C 87 19 67 BD 3B 11 67 1D [23:31:03]GetLastDocTimeStamp 1729726006 [23:31:03]current date 1729726268 [23:31:03]FM_GetShiftState [23:31:03]SAM_PROTO_GetShiftState [23:31:03]wFMCommunicate request_size=4 [23:31:03]MH_SAM_APDU [23:31:03]CAPDU: 80 13 01 00 [23:31:03]Write to MH i2c: E2 08 00 56 1D 80 13 01 00 00 00 00 00 F0 [23:31:03]Write i2c OK [23:31:03]MH_I2C_Read... [23:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:03]Read from MH i2c: E2 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: E2 0E 00 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: E2 0E 00 56 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 3C [23:31:03]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:31:03]wFMCommunicate OK [23:31:03]SAM_PROTO_GetShiftState done [23:31:03]FM_GetShiftState done [23:31:03]opened in 1729642370 [23:31:03]opened+sec_in_day 1729728770 [23:31:03]quantity*price = 9500 [23:31:03]sum+1 = 9501 [23:31:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743389 Сигареты BOND STREET compact blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.03 НДС 12% : 24.32 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 98 23.10.2024 23:31 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50353 ФПД: 143921306601592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233108&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50353&fm=143921306601592&tin=02508201610067®Number=0000000000097022&sum=22900 0 [23:31:04]StoreToDocumentArchive [23:31:04]shift 491 fd 50353 [23:31:04]save to /storage/0491/doc_00050353 [23:31:04]save last doc name /storage/0491/doc_00050353 to /storage/kkm_last_doc_name [23:31:04]save OK [23:31:04]Clear old archive folders... [23:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=414 [23:31:04]tlvbuf is 00255250 [23:31:04]SAM_PROTO_ClearQueue [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 09 00 00 [23:31:04]Write to MH i2c: E2 08 00 63 1D 80 09 00 00 00 00 00 00 F2 [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 63 1D 00 90 00 F4 [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]SAM_PROTO_ClearQueue done [23:31:04]KKMCreateOFDPacket [23:31:04]OFDProtocolAddRootSTLVToBuf [23:31:04]FM_MakeSignedData [23:31:04]FM_MakeSignedData [23:31:04]SAM_PROTO_SignData [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 01 02 [23:31:04]Write to MH i2c: E2 08 00 64 1D 80 0D 01 02 00 00 00 00 FA [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 64 1D 00 90 00 F5 [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]wFMCommunicate request_size=255 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [23:31:04]Write to MH i2c: E2 02 01 65 1D 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 8D [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 65 1D 00 90 00 F6 [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]wFMCommunicate request_size=173 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 62 00 00 00 F4 03 04 00 3C 87 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C4 00 00 35 04 06 00 82 E5 4A 5B 08 78 [23:31:04]Write to MH i2c: E2 B0 00 66 1D 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 62 00 00 00 F4 03 04 00 3C 87 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C4 00 00 35 04 06 00 82 E5 4A 5B 08 78 00 00 00 [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 03 02 [23:31:04]Write to MH i2c: E2 08 00 67 1D 80 0D 03 02 00 00 00 00 FF [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 0B 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 0B 00 67 1D 00 41 59 2E AB 45 93 86 E9 90 00 BA [23:31:04]RAPDU: 41 59 2E AB 45 93 86 E9 90 00 [23:31:04]wFMCommunicate OK [23:31:04]SAM_PROTO_SignData done [23:31:04]FM_MakeSignedData done [23:31:04]CreateOFDProtocolMessage [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 11 00 00 [23:31:04]Write to MH i2c: E2 08 00 68 1D 80 11 00 00 00 00 00 00 FF [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 68 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 46 [23:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:31:05]wFMCommunicate OK [23:31:05]CreateOFDProtocolMessage done [23:31:05]OFDSenderStorePacket 50353 [23:31:05]StoreOFDPacket docnum=50353 [23:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B2 01 00 00 E7 FF AA 01 09 A0 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 62 00 00 00 F4 03 04 00 3C 87 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C4 00 00 35 04 06 00 82 E5 4A 5B 08 78 41 59 2E AB 45 93 86 E9 [23:31:05]CheckFolder [23:31:05]dirname=/storage/ofd_packets [23:31:05]CheckFolder done [23:31:05]ProducePacketName [23:31:05]name=ofd_packets/00050353 [23:31:05]NVStorageSaveData ofd_packets/00050353 [23:31:05]File name is /storage/ofd_packets/00050353 [23:31:05]Write 464 bytes [23:31:05]NVStorageSaveData done [23:31:05]OFDSenderStorePacket done [23:31:05]KKMCreateOFDPacket done [23:31:05]NVStorageSaveData kkm_last_timestamp [23:31:05]File name is /storage/kkm_last_timestamp [23:31:05]Write 4 bytes [23:31:05]NVStorageSaveData done [23:31:05]ExternCall_PrintAddStr [23:31:05]wPrintStart [23:31:05]Write to MH i2c: 01 00 00 69 1D 86 [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 FF 0F 9B [23:31:05]RasterBufferAndPrint [23:31:05]line Счет N : (3)164264 [23:31:05]line ИНН: 02508201610067 [23:31:05]line Контрольно-Кассовый Чек [23:31:05]line ПРОДАЖА [23:31:05]line Товар: 4700000481965 [23:31:05]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [23:31:05]line 1.000 * 95.00 [23:31:05]line = 95.00 [23:31:05]line НДС 12% НСП 1% [23:31:05]line > о реализуемом товаре [23:31:05]line Товар: 48743389 [23:31:05]line Сигареты BOND STREET compact blue [23:31:05]line 1.000 * 134.00 [23:31:05]line = 134.00 [23:31:05]line НДС 12% НСП 1% [23:31:05]line > о реализуемом товаре [23:31:05]line ИТОГО: 229.00 [23:31:05]line НСП 1% : 2.03 [23:31:05]line НДС 12% : 24.32 [23:31:05]line Наличными: 229.00 [23:31:05]line Безнал.: 0.00 [23:31:05]line Место: АЗС № 80 "Партнер Нефть" [23:31:05]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:31:05]line СНО: Общий режим [23:31:05]line Чек 98 23.10.2024 23:31 [23:31:05]line Смена: 491 ФФД: 1.0 [23:31:05]line ЗНМ: 0300000090 [23:31:05]line РНМ: 0000000000097022 [23:31:05]line Версия ККМ: 001 [23:31:05]line ФМ: 0000000000875000 [23:31:05]line ФД: 50353 [23:31:05]line ФПД: 143921306601592 [23:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233108&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50353&fm=143921306601592&tin=02508201610067®Number=0000000000097022&sum=22900 [23:31:05]line 0 [23:31:05]OFD Sender: Processing packet 50353 [packets to send 7, broken 6] [23:31:05]ProducePacketName [23:31:05]name=ofd_packets/00050353 [23:31:05]OFD Sender: To server: pG, [23:31:05]CommunicateWithHost lk.salyk.kg:30040 [23:31:05]ConnectInit lk.salyk.kg [23:31:05]written 0, free lines is 4095 [23:31:05]Connected sock=10 [23:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B2 01 00 00 E7 FF AA 01 09 A0 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 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 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 62 00 00 00 F4 03 04 00 3C 87 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C4 00 00 35 04 06 00 82 E5 4A 5B 08 78 41 59 2E AB 45 93 86 E9 [23:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 11 22 47 00 EC 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C4 00 00 F4 03 04 00 D2 32 19 67 B6 04 01 00 00 A4 D6 6A 4D AB 6E 91 63 [23:31:05]CommunicateWithHost err = 0 [23:31:05]CheckOFDResponse [23:31:05]1017 (14) - 77093643461234 [23:31:05]1041 (16) - 0000000000875000 [23:31:05]1040 (4) - 50353 [23:31:05]1012 (4) - 23.10.2024 17:30 [23:31:05]1206 (1) - 0 [23:31:05]OFD Sender: Remove packet 50353 [23:31:05]ProducePacketName [23:31:05]name=ofd_packets/00050353 [23:31:05]NVStorageDeleteData [23:31:05]Write to MH i2c: 01 00 00 99 1D B6 [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 AE 0C 77 [23:31:05]RasterBufferAndPrint [23:31:05]line [23:31:05]line [23:31:05]line [23:31:05]line [23:31:05]line [23:31:05]written 0, free lines is 3255 [23:31:05]process_action close_receipt done [23:31:05]requested_data is exist [23:31:05]produce_requested_data [23:31:05]requested_item fm.sn is exist - process it [23:31:05]wFMCommunicate request_size=4 [23:31:05]MH_SAM_APDU [23:31:05]CAPDU: 80 11 00 00 [23:31:05]Write to MH i2c: E2 08 00 A0 1D 80 11 00 00 00 00 00 00 37 [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 A0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7E [23:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:31:05]wFMCommunicate OK [23:31:05]requested_item fd.num is exist - process it [23:31:05]SAM_PROTO_GetFieldsCounters [23:31:05]wFMCommunicate request_size=4 [23:31:05]MH_SAM_APDU [23:31:05]CAPDU: 80 13 00 00 [23:31:05]Write to MH i2c: E2 08 00 A1 1D 80 13 00 00 00 00 00 00 3A [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:06]Read from MH i2c: E2 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: E2 62 00 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: E2 62 00 A1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B1 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B1 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:06]wFMCommunicate OK [23:31:06]SAM_PROTO_GetFieldsCounters done [23:31:06]requested_item shift.num is exist - process it [23:31:06]requested_item shift.opened is exist - process it [23:31:06]req_shift_opened [23:31:06]FM_GetShiftState [23:31:06]SAM_PROTO_GetShiftState [23:31:06]wFMCommunicate request_size=4 [23:31:06]MH_SAM_APDU [23:31:06]CAPDU: 80 13 01 00 [23:31:06]Write to MH i2c: E2 08 00 A2 1D 80 13 01 00 00 00 00 00 3C [23:31:06]OFD Sender: No OFD packet to send [23:31:06]Write i2c OK [23:31:06]MH_I2C_Read... [23:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:06]Read from MH i2c: E2 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: E2 0E 00 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: E2 0E 00 A2 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 88 [23:31:06]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:31:06]wFMCommunicate OK [23:31:06]SAM_PROTO_GetShiftState done [23:31:06]FM_GetShiftState done [23:31:06]req_shift_opened done [23:31:06]requested_item shift.open_date is exist - process it [23:31:06]req_shift_open_date [23:31:06]req_shift_open_date done [23:31:06]produce_requested_data done [23:31:06]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50353,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [23:31:06]process_action_free close_receipt [23:31:06]json_value_free [23:31:06]json_value_free done [23:31:06]process_json_proto returns [23:31:06]Send response to host [23:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50353,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [23:31:06]free response buf [23:31:06]execute_script done [23:31:06]execute_script returns [23:31:06]free content buf [23:31:06]Sock 9.Close socket [23:31:06]Sock 9.Thread stoped [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:21]accept exits with 7 [23:35:21]New connection [23:35:21]New thread 3067305316 created [23:35:21]Thread 3067161956 joined [23:35:21]Waiting for new connection... [23:35:21] Sock 7.Parse request [23:35:21]Sock 7.Check first char [23:35:21]Sock 7.First char is OK [23:35:21]request: POST /json_proto HTTP/1.0 [23:35:21]Method: POST [23:35:21]URL: /json_proto [23:35:21]Method is POST - this is cgi request [23:35:21]url: /json_proto [23:35:21]query_string will be loaded in cgi processing [23:35:21]execute_cgi json_proto POST (null) [23:35:21]execute_cgi path=json_proto method=POST [23:35:21]POST find Content-Length [23:35:21]Host: 172.17.49.196:8080 [23:35:21]Content-Length: 670 [23:35:21]Content-Type: application/json [23:35:21] [23:35:21]POST finish read [23:35:21]Found Content-Length = 670 [23:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164265", "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 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:21]execute_script... [23:35: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)164265", "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 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:21]POST & json_proto [23:35:21]process_json_proto [23:35:21]json parsed OK: [23:35:21]protocol is kg_v1.0 [23:35:21]action value=close_receipt [23:35:21]process_action close_receipt [23:35:21]cmd_close_receipt [23:35:21]MH_GetDate [23:35:21]Write to MH i2c: F0 00 00 A3 1D AF [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: F0 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: F0 09 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: F0 09 00 A3 1D 00 3F 88 19 67 BD 3B 11 67 6F [23:35:21]GetLastDocTimeStamp 1729726268 [23:35:21]current date 1729726527 [23:35:21]FM_GetShiftState [23:35:21]SAM_PROTO_GetShiftState [23:35:21]wFMCommunicate request_size=4 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 13 01 00 [23:35:21]Write to MH i2c: E2 08 00 A4 1D 80 13 01 00 00 00 00 00 3E [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 0E 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 0E 00 A4 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 8A [23:35:21]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:35:21]wFMCommunicate OK [23:35:21]SAM_PROTO_GetShiftState done [23:35:21]FM_GetShiftState done [23:35:21]opened in 1729642370 [23:35:21]opened+sec_in_day 1729728770 [23:35:21]quantity*price = 34000 [23:35:21]sum+1 = 34001 [23:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 99 23.10.2024 23:35 Смена: 491 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50354 ФПД: 2581289888543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233527&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50354&fm=2581289888543&tin=02508201610067®Number=0000000000097022&sum=34000 0 [23:35:22]StoreToDocumentArchive [23:35:22]shift 491 fd 50354 [23:35:22]save to /storage/0491/doc_00050354 [23:35:22]save last doc name /storage/0491/doc_00050354 to /storage/kkm_last_doc_name [23:35:22]save OK [23:35:22]Clear old archive folders... [23:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=282 [23:35:22]tlvbuf is 0020EAD0 [23:35:22]SAM_PROTO_ClearQueue [23:35:22]wFMCommunicate request_size=4 [23:35:22]MH_SAM_APDU [23:35:22]CAPDU: 80 09 00 00 [23:35:22]Write to MH i2c: E2 08 00 B1 1D 80 09 00 00 00 00 00 00 40 [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:22]Read from MH i2c: E2 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: E2 03 00 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [23:35:22]RAPDU: 90 00 [23:35:22]wFMCommunicate OK [23:35:22]SAM_PROTO_ClearQueue done [23:35:22]KKMCreateOFDPacket [23:35:22]OFDProtocolAddRootSTLVToBuf [23:35:22]FM_MakeSignedData [23:35:22]FM_MakeSignedData [23:35:22]SAM_PROTO_SignData [23:35:22]wFMCommunicate request_size=4 [23:35:22]MH_SAM_APDU [23:35:22]CAPDU: 80 0D 01 02 [23:35:22]Write to MH i2c: E2 08 00 B2 1D 80 0D 01 02 00 00 00 00 48 [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:22]Read from MH i2c: E2 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: E2 03 00 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [23:35:22]RAPDU: 90 00 [23:35:22]wFMCommunicate OK [23:35:22]wFMCommunicate request_size=255 [23:35:22]MH_SAM_APDU [23:35:22]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 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 88 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [23:35:22]Write to MH i2c: E2 02 01 B3 1D 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 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 88 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 7E [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:23]Read from MH i2c: E2 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 03 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [23:35:23]RAPDU: 90 00 [23:35:23]wFMCommunicate OK [23:35:23]wFMCommunicate request_size=41 [23:35:23]MH_SAM_APDU [23:35:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C4 00 00 35 04 06 00 02 59 00 DD EB 1F [23:35:23]Write to MH i2c: E2 2C 00 B4 1D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C4 00 00 35 04 06 00 02 59 00 DD EB 1F 00 00 C6 [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:23]Read from MH i2c: E2 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 03 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 03 00 B4 1D 00 90 00 45 [23:35:23]RAPDU: 90 00 [23:35:23]wFMCommunicate OK [23:35:23]wFMCommunicate request_size=4 [23:35:23]MH_SAM_APDU [23:35:23]CAPDU: 80 0D 03 02 [23:35:23]Write to MH i2c: E2 08 00 B5 1D 80 0D 03 02 00 00 00 00 4D [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:23]Read from MH i2c: E2 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 0B 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 0B 00 B5 1D 00 EC 40 59 5F 6C 2E FC 7C 90 00 44 [23:35:23]RAPDU: EC 40 59 5F 6C 2E FC 7C 90 00 [23:35:23]wFMCommunicate OK [23:35:23]SAM_PROTO_SignData done [23:35:23]FM_MakeSignedData done [23:35:23]CreateOFDProtocolMessage [23:35:23]wFMCommunicate request_size=4 [23:35:23]MH_SAM_APDU [23:35:23]CAPDU: 80 11 00 00 [23:35:23]Write to MH i2c: E2 08 00 B6 1D 80 11 00 00 00 00 00 00 4D [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:23]Read from MH i2c: E2 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 17 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: E2 17 00 B6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 94 [23:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:35:23]wFMCommunicate OK [23:35:23]CreateOFDProtocolMessage done [23:35:23]OFDSenderStorePacket 50354 [23:35:23]StoreOFDPacket docnum=50354 [23:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 76 98 26 01 37 6C 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 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 88 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C4 00 00 35 04 06 00 02 59 00 DD EB 1F EC 40 59 5F 6C 2E FC 7C [23:35:23]CheckFolder [23:35:23]dirname=/storage/ofd_packets [23:35:23]CheckFolder done [23:35:23]ProducePacketName [23:35:23]name=ofd_packets/00050354 [23:35:23]NVStorageSaveData ofd_packets/00050354 [23:35:23]File name is /storage/ofd_packets/00050354 [23:35:23]Write 332 bytes [23:35:23]NVStorageSaveData done [23:35:23]OFDSenderStorePacket done [23:35:23]KKMCreateOFDPacket done [23:35:23]NVStorageSaveData kkm_last_timestamp [23:35:23]File name is /storage/kkm_last_timestamp [23:35:23]Write 4 bytes [23:35:23]NVStorageSaveData done [23:35:23]ExternCall_PrintAddStr [23:35:23]wPrintStart [23:35:23]Write to MH i2c: 01 00 00 B7 1D D4 [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 07 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 FF 0F E9 [23:35:23]RasterBufferAndPrint [23:35:23]line Счет N : (3)164265 [23:35:23]line ИНН: 02508201610067 [23:35:23]line Контрольно-Кассовый Чек [23:35:23]line ПРОДАЖА [23:35:23]line Товар: 4700000480357 [23:35:23]line Пиво шахтерское 1л ПЭТ [23:35:23]line 2.000 * 170.00 [23:35:23]line = 340.00 [23:35:23]line НДС 12% НСП 1% [23:35:23]line > о реализуемом товаре [23:35:23]line ИТОГО: 340.00 [23:35:23]line НСП 1% : 3.01 [23:35:23]line НДС 12% : 36.11 [23:35:23]line Наличными: 340.00 [23:35:23]line Безнал.: 0.00 [23:35:23]line Место: АЗС № 80 "Партнер Нефть" [23:35:23]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:35:23]line СНО: Общий режим [23:35:23]line Чек 99 23.10.2024 23:35 [23:35:23]line Смена: 491 ФФД: 1.0 [23:35:23]line ЗНМ: 0300000090 [23:35:23]line РНМ: 0000000000097022 [23:35:23]line Версия ККМ: 001 [23:35:23]line ФМ: 0000000000875000 [23:35:23]line ФД: 50354 [23:35:23]line ФПД: 2581289888543 [23:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233527&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50354&fm=2581289888543&tin=02508201610067®Number=0000000000097022&sum=34000 [23:35:23]OFD Sender: Processing packet 50354 [packets to send 7, broken 6] [23:35:23]ProducePacketName [23:35:23]name=ofd_packets/00050354 [23:35:23]OFD Sender: To server: pG, [23:35:23]CommunicateWithHost lk.salyk.kg:30040 [23:35:23]ConnectInit lk.salyk.kg [23:35:23]line 0 [23:35:23]written 0, free lines is 4095 [23:35:23]Connected sock=10 [23:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 76 98 26 01 37 6C 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 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 88 19 67 0E 04 04 00 EB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C4 00 00 35 04 06 00 02 59 00 DD EB 1F EC 40 59 5F 6C 2E FC 7C [23:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C0 EB 47 00 B4 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C4 00 00 F4 03 04 00 D4 33 19 67 B6 04 01 00 00 77 7D 23 22 BA 9B BA 8B [23:35:23]CommunicateWithHost err = 0 [23:35:23]CheckOFDResponse [23:35:23]1017 (14) - 77093643461234 [23:35:23]1041 (16) - 0000000000875000 [23:35:23]1040 (4) - 50354 [23:35:23]1012 (4) - 23.10.2024 17:35 [23:35:23]1206 (1) - 0 [23:35:23]OFD Sender: Remove packet 50354 [23:35:23]ProducePacketName [23:35:23]name=ofd_packets/00050354 [23:35:23]NVStorageDeleteData [23:35:23]Write to MH i2c: 01 00 00 DF 1D FC [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 07 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 24 0D 34 [23:35:23]RasterBufferAndPrint [23:35:23]line [23:35:23]line [23:35:23]line [23:35:23]line [23:35:23]line [23:35:23]written 0, free lines is 3370 [23:35:24]process_action close_receipt done [23:35:24]requested_data is exist [23:35:24]produce_requested_data [23:35:24]requested_item fm.sn is exist - process it [23:35:24]wFMCommunicate request_size=4 [23:35:24]MH_SAM_APDU [23:35:24]CAPDU: 80 11 00 00 [23:35:24]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [23:35:24]Write i2c OK [23:35:24]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 17 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C4 [23:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:35:24]wFMCommunicate OK [23:35:24]requested_item fd.num is exist - process it [23:35:24]SAM_PROTO_GetFieldsCounters [23:35:24]wFMCommunicate request_size=4 [23:35:24]MH_SAM_APDU [23:35:24]CAPDU: 80 13 00 00 [23:35:24]Write to MH i2c: E2 08 00 E7 1D 80 13 00 00 00 00 00 00 80 [23:35:24]Write i2c OK [23:35:24]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 62 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 62 00 E7 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B2 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [23:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B2 C4 00 00 0E 04 04 00 EB 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:24]wFMCommunicate OK [23:35:24]SAM_PROTO_GetFieldsCounters done [23:35:24]requested_item shift.num is exist - process it [23:35:24]requested_item shift.opened is exist - process it [23:35:24]req_shift_opened [23:35:24]FM_GetShiftState [23:35:24]SAM_PROTO_GetShiftState [23:35:24]wFMCommunicate request_size=4 [23:35:24]MH_SAM_APDU [23:35:24]CAPDU: 80 13 01 00 [23:35:24]Write to MH i2c: E2 08 00 E8 1D 80 13 01 00 00 00 00 00 82 [23:35:24]Write i2c OK [23:35:24]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 0E 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 0E 00 E8 1D 00 09 00 01 82 3F 18 67 00 00 00 00 90 00 CE [23:35:24]RAPDU: 09 00 01 82 3F 18 67 00 00 00 00 90 00 [23:35:24]wFMCommunicate OK [23:35:24]SAM_PROTO_GetShiftState done [23:35:24]FM_GetShiftState done [23:35:24]req_shift_opened done [23:35:24]requested_item shift.open_date is exist - process it [23:35:24]req_shift_open_date [23:35:24]req_shift_open_date done [23:35:24]produce_requested_data done [23:35:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50354,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370} [23:35:24]process_action_free close_receipt [23:35:24]json_value_free [23:35:24]json_value_free done [23:35:24]process_json_proto returns [23:35:24]Send response to host [23:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50354,"shift.num":491,"shift.opened":1,"shift.open_date":1729642370}}} [23:35:24]free response buf [23:35:24]execute_script done [23:35:24]execute_script returns [23:35:24]free content buf [23:35:24]Sock 7.Close socket [23:35:24]Sock 7.Thread stoped [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send